public class OnheapIncrementalIndex extends IncrementalIndex
| Modifier and Type | Class and Description |
|---|---|
static class |
OnheapIncrementalIndex.Builder |
static class |
OnheapIncrementalIndex.Spec |
IncrementalIndex.DimensionDesc, IncrementalIndex.MetricDesc| Modifier and Type | Field and Description |
|---|---|
protected long |
maxBytesInMemory |
protected int |
maxRowCount |
preserveExistingMetrics| Modifier and Type | Method and Description |
|---|---|
protected org.apache.druid.segment.incremental.IncrementalIndex.AddToFactsResult |
addToFacts(InputRow row,
IncrementalIndexRow key,
ThreadLocal<InputRow> rowContainer,
com.google.common.base.Supplier<InputRow> rowSupplier,
boolean skipMaxRowsInMemoryCheck) |
boolean |
canAppendRow() |
void |
close()
Clear out maps to allow GC
NOTE: This is NOT thread-safe with add...
|
protected Aggregator[] |
concurrentGet(int offset) |
protected void |
concurrentRemove(int offset) |
protected void |
concurrentSet(int offset,
Aggregator[] value) |
protected Aggregator[] |
getAggsForRow(int rowOffset) |
org.apache.druid.segment.incremental.IncrementalIndex.FactsHolder |
getFacts() |
int |
getLastRowIndex() |
protected double |
getMetricDoubleValue(int rowOffset,
int aggOffset) |
float |
getMetricFloatValue(int rowOffset,
int aggOffset) |
long |
getMetricLongValue(int rowOffset,
int aggOffset) |
Object |
getMetricObjectValue(int rowOffset,
int aggOffset) |
String |
getOutOfRowsReason() |
protected void |
initAggs(AggregatorFactory[] metrics,
com.google.common.base.Supplier<InputRow> rowSupplier,
boolean deserializeComplexMetrics,
boolean concurrentEventAdd) |
boolean |
isNull(int rowOffset,
int aggOffset) |
Iterable<Row> |
iterableWithPostAggregations(List<PostAggregator> postAggs,
boolean descending) |
add, add, dimsComparator, formatRow, getBytesInMemory, getColumnCapabilities, getColumnCapabilities, getColumnNames, getCombinedParseException, getDimension, getDimensionIndex, getDimensionNames, getDimensionOrder, getDimensions, getDimensionsSpec, getInterval, getMaxIngestedEventTime, getMaxTime, getMetadata, getMetricAggs, getMetricNames, getMetricType, getMinTime, isEmpty, isRollup, iterator, loadDimensionIterable, makeColumnSelectorFactory, makeColumnSelectorFactory, makeMetricColumnValueSelector, size, toStorageAdaptertoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorgetColumnCapabilitiesWithDefault, getTypeareNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorizeprotected final int maxRowCount
protected final long maxBytesInMemory
public org.apache.druid.segment.incremental.IncrementalIndex.FactsHolder getFacts()
getFacts in class IncrementalIndexprotected void initAggs(AggregatorFactory[] metrics, com.google.common.base.Supplier<InputRow> rowSupplier, boolean deserializeComplexMetrics, boolean concurrentEventAdd)
initAggs in class IncrementalIndexprotected org.apache.druid.segment.incremental.IncrementalIndex.AddToFactsResult addToFacts(InputRow row, IncrementalIndexRow key, ThreadLocal<InputRow> rowContainer, com.google.common.base.Supplier<InputRow> rowSupplier, boolean skipMaxRowsInMemoryCheck) throws IndexSizeExceededException
addToFacts in class IncrementalIndexIndexSizeExceededExceptionpublic int getLastRowIndex()
getLastRowIndex in class IncrementalIndexprotected Aggregator[] concurrentGet(int offset)
protected void concurrentSet(int offset,
Aggregator[] value)
protected void concurrentRemove(int offset)
public boolean canAppendRow()
canAppendRow in class IncrementalIndexpublic String getOutOfRowsReason()
getOutOfRowsReason in class IncrementalIndexprotected Aggregator[] getAggsForRow(int rowOffset)
public float getMetricFloatValue(int rowOffset,
int aggOffset)
getMetricFloatValue in class IncrementalIndexpublic long getMetricLongValue(int rowOffset,
int aggOffset)
getMetricLongValue in class IncrementalIndexpublic Object getMetricObjectValue(int rowOffset, int aggOffset)
getMetricObjectValue in class IncrementalIndexprotected double getMetricDoubleValue(int rowOffset,
int aggOffset)
getMetricDoubleValue in class IncrementalIndexpublic boolean isNull(int rowOffset,
int aggOffset)
isNull in class IncrementalIndexpublic Iterable<Row> iterableWithPostAggregations(@Nullable List<PostAggregator> postAggs, boolean descending)
iterableWithPostAggregations in class IncrementalIndexpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class IncrementalIndexCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.