Class AppendableIndexBuilder
java.lang.Object
org.apache.druid.segment.incremental.AppendableIndexBuilder
- Direct Known Subclasses:
OnheapIncrementalIndex.Builder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IncrementalIndexSchemaprotected final Loggerprotected longprotected intprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IncrementalIndexbuild()protected abstract IncrementalIndexsetIndexSchema(IncrementalIndexSchema incrementalIndexSchema) setMaxBytesInMemory(long maxBytesInMemory) setMaxRowCount(int maxRowCount) setPreserveExistingMetrics(boolean preserveExistingMetrics) setSimpleTestingIndexSchema(Boolean rollup, Boolean preserveExistingMetrics, AggregatorFactory... metrics) A helper method to set a simple index schema with controllable metrics and rollup, and default values for the other parameters.setSimpleTestingIndexSchema(AggregatorFactory... metrics) A helper method to set a simple index schema with only metrics and default values for the other parameters.voidvalidate()
-
Field Details
-
incrementalIndexSchema
-
maxRowCount
protected int maxRowCount -
maxBytesInMemory
protected long maxBytesInMemory -
preserveExistingMetrics
protected boolean preserveExistingMetrics -
log
-
-
Constructor Details
-
AppendableIndexBuilder
public AppendableIndexBuilder()
-
-
Method Details
-
setIndexSchema
-
setSimpleTestingIndexSchema
A helper method to set a simple index schema with only metrics and default values for the other parameters. Note that this method is normally used for testing and benchmarking; it is unlikely that you would use it in production settings.- Parameters:
metrics- variable array ofAggregatorFactorymetrics- Returns:
- this
-
setSimpleTestingIndexSchema
public AppendableIndexBuilder setSimpleTestingIndexSchema(@Nullable Boolean rollup, @Nullable Boolean preserveExistingMetrics, AggregatorFactory... metrics) A helper method to set a simple index schema with controllable metrics and rollup, and default values for the other parameters. Note that this method is normally used for testing and benchmarking; it is unlikely that you would use it in production settings.- Parameters:
metrics- variable array ofAggregatorFactorymetrics- Returns:
- this
-
setMaxRowCount
-
setMaxBytesInMemory
-
setPreserveExistingMetrics
-
validate
public void validate() -
build
-
buildInner
-