public class OnheapIncrementalIndex extends IncrementalIndex<Aggregator>
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxRowCount |
dimensions| Constructor and Description |
|---|
OnheapIncrementalIndex(IncrementalIndexSchema incrementalIndexSchema,
boolean deserializeComplexMetrics,
int maxRowCount) |
OnheapIncrementalIndex(IncrementalIndexSchema incrementalIndexSchema,
int maxRowCount) |
OnheapIncrementalIndex(long minTimestamp,
QueryGranularity gran,
AggregatorFactory[] metrics,
boolean deserializeComplexMetrics,
int maxRowCount) |
OnheapIncrementalIndex(long minTimestamp,
QueryGranularity gran,
AggregatorFactory[] metrics,
int maxRowCount) |
| Modifier and Type | Method and Description |
|---|---|
protected Integer |
addToFacts(AggregatorFactory[] metrics,
boolean deserializeComplexMetrics,
io.druid.data.input.InputRow row,
AtomicInteger numEntries,
io.druid.segment.incremental.IncrementalIndex.TimeAndDims key,
ThreadLocal<io.druid.data.input.InputRow> in) |
boolean |
canAppendRow() |
protected Aggregator[] |
concurrentGet(int offset) |
protected void |
concurrentRemove(int offset) |
protected void |
concurrentSet(int offset,
Aggregator[] value) |
protected Aggregator[] |
getAggsForRow(int rowOffset) |
protected Object |
getAggVal(Aggregator agg,
int rowOffset,
int aggPosition) |
ConcurrentNavigableMap<io.druid.segment.incremental.IncrementalIndex.TimeAndDims,Integer> |
getFacts() |
float |
getMetricFloatValue(int rowOffset,
int aggOffset) |
long |
getMetricLongValue(int rowOffset,
int aggOffset) |
Object |
getMetricObjectValue(int rowOffset,
int aggOffset) |
String |
getOutOfRowsReason() |
protected Aggregator[] |
initAggs(AggregatorFactory[] metrics,
ThreadLocal<io.druid.data.input.InputRow> in,
boolean deserializeComplexMetrics) |
protected io.druid.segment.incremental.IncrementalIndex.DimDim |
makeDimDim(String dimension) |
add, close, formatRow, getAggs, getCapabilities, getDimension, getDimensionIndex, getDimensions, getDimValues, getInterval, getMaxIngestedEventTime, getMaxTime, getMetricAggs, getMetricIndex, getMetricNames, getMetricType, getMinTime, getSubMap, isEmpty, iterableWithPostAggregations, iterator, makeColumnSelectorFactory, size, updateMaxIngestedTimepublic OnheapIncrementalIndex(IncrementalIndexSchema incrementalIndexSchema, boolean deserializeComplexMetrics, int maxRowCount)
public OnheapIncrementalIndex(long minTimestamp,
QueryGranularity gran,
AggregatorFactory[] metrics,
boolean deserializeComplexMetrics,
int maxRowCount)
public OnheapIncrementalIndex(long minTimestamp,
QueryGranularity gran,
AggregatorFactory[] metrics,
int maxRowCount)
public OnheapIncrementalIndex(IncrementalIndexSchema incrementalIndexSchema, int maxRowCount)
public ConcurrentNavigableMap<io.druid.segment.incremental.IncrementalIndex.TimeAndDims,Integer> getFacts()
getFacts in class IncrementalIndex<Aggregator>protected io.druid.segment.incremental.IncrementalIndex.DimDim makeDimDim(String dimension)
makeDimDim in class IncrementalIndex<Aggregator>protected Aggregator[] initAggs(AggregatorFactory[] metrics, ThreadLocal<io.druid.data.input.InputRow> in, boolean deserializeComplexMetrics)
initAggs in class IncrementalIndex<Aggregator>protected Integer addToFacts(AggregatorFactory[] metrics, boolean deserializeComplexMetrics, io.druid.data.input.InputRow row, AtomicInteger numEntries, io.druid.segment.incremental.IncrementalIndex.TimeAndDims key, ThreadLocal<io.druid.data.input.InputRow> in) throws IndexSizeExceededException
addToFacts in class IncrementalIndex<Aggregator>IndexSizeExceededExceptionprotected Aggregator[] concurrentGet(int offset)
protected void concurrentSet(int offset,
Aggregator[] value)
protected void concurrentRemove(int offset)
public boolean canAppendRow()
canAppendRow in class IncrementalIndex<Aggregator>public String getOutOfRowsReason()
getOutOfRowsReason in class IncrementalIndex<Aggregator>protected Aggregator[] getAggsForRow(int rowOffset)
getAggsForRow in class IncrementalIndex<Aggregator>protected Object getAggVal(Aggregator agg, int rowOffset, int aggPosition)
getAggVal in class IncrementalIndex<Aggregator>public float getMetricFloatValue(int rowOffset,
int aggOffset)
getMetricFloatValue in class IncrementalIndex<Aggregator>public long getMetricLongValue(int rowOffset,
int aggOffset)
getMetricLongValue in class IncrementalIndex<Aggregator>public Object getMetricObjectValue(int rowOffset, int aggOffset)
getMetricObjectValue in class IncrementalIndex<Aggregator>Copyright © 2015. All rights reserved.