Tabnine Logo
IncrementalIndex$IncrementalIndexRowResult
Code IndexAdd Tabnine to your IDE (free)

How to use
IncrementalIndex$IncrementalIndexRowResult
in
org.apache.druid.segment.incremental

Best Java code snippets using org.apache.druid.segment.incremental.IncrementalIndex$IncrementalIndexRowResult (Showing top 8 results out of 315)

origin: apache/incubator-druid

IncrementalIndexRow ir1 = index.toIncrementalIndexRow(toMapRow(time, "billy", "A", "joe", "B")).getIncrementalIndexRow();
IncrementalIndexRow ir2 = index.toIncrementalIndexRow(toMapRow(time, "billy", "A", "joe", "A")).getIncrementalIndexRow();
IncrementalIndexRow ir3 = index.toIncrementalIndexRow(toMapRow(time, "billy", "A")).getIncrementalIndexRow();
IncrementalIndexRow ir4 = index.toIncrementalIndexRow(toMapRow(time + 1, "billy", "A", "joe", "B")).getIncrementalIndexRow();
IncrementalIndexRow ir5 = index.toIncrementalIndexRow(toMapRow(time + 1, "billy", "A", "joe", Arrays.asList("A", "B"))).getIncrementalIndexRow();
IncrementalIndexRow ir6 = index.toIncrementalIndexRow(toMapRow(time + 1)).getIncrementalIndexRow();
origin: apache/incubator-druid

  dimsKeySize
);
return new IncrementalIndexRowResult(incrementalIndexRow, parseExceptionMessages);
origin: org.apache.druid/druid-processing

  dimsKeySize
);
return new IncrementalIndexRowResult(incrementalIndexRow, parseExceptionMessages);
origin: org.apache.druid/druid-processing

public IncrementalIndexAddResult add(InputRow row, boolean skipMaxRowsInMemoryCheck) throws IndexSizeExceededException
{
 IncrementalIndexRowResult incrementalIndexRowResult = toIncrementalIndexRow(row);
 final AddToFactsResult addToFactsResult = addToFacts(
   metrics,
   deserializeComplexMetrics,
   reportParseExceptions,
   row,
   numEntries,
   bytesInMemory,
   incrementalIndexRowResult.getIncrementalIndexRow(),
   in,
   rowSupplier,
   skipMaxRowsInMemoryCheck
 );
 updateMaxIngestedTime(row.getTimestamp());
 ParseException parseException = getCombinedParseException(
   row,
   incrementalIndexRowResult.getParseExceptionMessages(),
   addToFactsResult.getParseExceptionMessages()
 );
 return new IncrementalIndexAddResult(addToFactsResult.getRowCount(), addToFactsResult.getBytesInMemory(), parseException);
}
origin: apache/incubator-druid

public IncrementalIndexAddResult add(InputRow row, boolean skipMaxRowsInMemoryCheck) throws IndexSizeExceededException
{
 IncrementalIndexRowResult incrementalIndexRowResult = toIncrementalIndexRow(row);
 final AddToFactsResult addToFactsResult = addToFacts(
   metrics,
   deserializeComplexMetrics,
   reportParseExceptions,
   row,
   numEntries,
   bytesInMemory,
   incrementalIndexRowResult.getIncrementalIndexRow(),
   in,
   rowSupplier,
   skipMaxRowsInMemoryCheck
 );
 updateMaxIngestedTime(row.getTimestamp());
 ParseException parseException = getCombinedParseException(
   row,
   incrementalIndexRowResult.getParseExceptionMessages(),
   addToFactsResult.getParseExceptionMessages()
 );
 return new IncrementalIndexAddResult(addToFactsResult.getRowCount(), addToFactsResult.getBytesInMemory(), parseException);
}
origin: apache/incubator-druid

@Test
public void testIncrementalIndexRowSizeComplex()
{
 IncrementalIndex index = new IncrementalIndex.Builder()
   .setSimpleTestingIndexSchema(new CountAggregatorFactory("cnt"))
   .setMaxRowCount(10000)
   .setMaxBytesInMemory(1000)
   .buildOnheap();
 long time = System.currentTimeMillis();
 IncrementalIndex.IncrementalIndexRowResult tndResult = index.toIncrementalIndexRow(toMapRow(
   time + 1,
   "billy",
   "nelson",
   "joe",
   Arrays.asList("123", "abcdef")
 ));
 IncrementalIndexRow td1 = tndResult.getIncrementalIndexRow();
 Assert.assertEquals(74, td1.estimateBytesInMemory());
}
origin: apache/incubator-druid

@Test
public void testIncrementalIndexRowSizeArr()
{
 IncrementalIndex index = new IncrementalIndex.Builder()
   .setSimpleTestingIndexSchema(new CountAggregatorFactory("cnt"))
   .setMaxRowCount(10000)
   .setMaxBytesInMemory(1000)
   .buildOnheap();
 long time = System.currentTimeMillis();
 IncrementalIndex.IncrementalIndexRowResult tndResult = index.toIncrementalIndexRow(toMapRow(
   time + 1,
   "billy",
   "A",
   "joe",
   Arrays.asList("A", "B")
 ));
 IncrementalIndexRow td1 = tndResult.getIncrementalIndexRow();
 Assert.assertEquals(50, td1.estimateBytesInMemory());
}
origin: apache/incubator-druid

@Test
public void testIncrementalIndexRowSizeBasic()
{
 IncrementalIndex index = new IncrementalIndex.Builder()
   .setSimpleTestingIndexSchema(new CountAggregatorFactory("cnt"))
   .setMaxRowCount(10000)
   .setMaxBytesInMemory(1000)
   .buildOnheap();
 long time = System.currentTimeMillis();
 IncrementalIndex.IncrementalIndexRowResult tndResult = index.toIncrementalIndexRow(toMapRow(time, "billy", "A", "joe", "B"));
 IncrementalIndexRow td1 = tndResult.getIncrementalIndexRow();
 Assert.assertEquals(44, td1.estimateBytesInMemory());
}
org.apache.druid.segment.incrementalIncrementalIndex$IncrementalIndexRowResult

Most used methods

  • getIncrementalIndexRow
  • <init>
  • getParseExceptionMessages

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now