public abstract class AppendableIndexBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
concurrentEventAdd |
protected boolean |
deserializeComplexMetrics |
protected IncrementalIndexSchema |
incrementalIndexSchema |
protected Logger |
log |
protected long |
maxBytesInMemory |
protected int |
maxRowCount |
protected boolean |
preserveExistingMetrics |
protected boolean |
sortFacts |
protected boolean |
useMaxMemoryEstimates |
| Constructor and Description |
|---|
AppendableIndexBuilder() |
| Modifier and Type | Method and Description |
|---|---|
IncrementalIndex |
build() |
protected abstract IncrementalIndex |
buildInner() |
AppendableIndexBuilder |
setConcurrentEventAdd(boolean concurrentEventAdd) |
AppendableIndexBuilder |
setDeserializeComplexMetrics(boolean deserializeComplexMetrics) |
AppendableIndexBuilder |
setIndexSchema(IncrementalIndexSchema incrementalIndexSchema) |
AppendableIndexBuilder |
setMaxBytesInMemory(long maxBytesInMemory) |
AppendableIndexBuilder |
setMaxRowCount(int maxRowCount) |
AppendableIndexBuilder |
setPreserveExistingMetrics(boolean preserveExistingMetrics) |
AppendableIndexBuilder |
setSimpleTestingIndexSchema(AggregatorFactory... metrics)
A helper method to set a simple index schema with only metrics and default values for the other parameters.
|
AppendableIndexBuilder |
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.
|
AppendableIndexBuilder |
setSortFacts(boolean sortFacts) |
AppendableIndexBuilder |
setUseMaxMemoryEstimates(boolean useMaxMemoryEstimates) |
void |
validate() |
@Nullable protected IncrementalIndexSchema incrementalIndexSchema
protected boolean deserializeComplexMetrics
protected boolean concurrentEventAdd
protected boolean sortFacts
protected int maxRowCount
protected long maxBytesInMemory
protected boolean preserveExistingMetrics
protected boolean useMaxMemoryEstimates
protected final Logger log
public AppendableIndexBuilder setIndexSchema(IncrementalIndexSchema incrementalIndexSchema)
public AppendableIndexBuilder setSimpleTestingIndexSchema(AggregatorFactory... metrics)
metrics - variable array of AggregatorFactory metricspublic AppendableIndexBuilder setSimpleTestingIndexSchema(@Nullable Boolean rollup, @Nullable Boolean preserveExistingMetrics, AggregatorFactory... metrics)
metrics - variable array of AggregatorFactory metricspublic AppendableIndexBuilder setDeserializeComplexMetrics(boolean deserializeComplexMetrics)
public AppendableIndexBuilder setConcurrentEventAdd(boolean concurrentEventAdd)
public AppendableIndexBuilder setSortFacts(boolean sortFacts)
public AppendableIndexBuilder setMaxRowCount(int maxRowCount)
public AppendableIndexBuilder setMaxBytesInMemory(long maxBytesInMemory)
public AppendableIndexBuilder setPreserveExistingMetrics(boolean preserveExistingMetrics)
public AppendableIndexBuilder setUseMaxMemoryEstimates(boolean useMaxMemoryEstimates)
public void validate()
public final IncrementalIndex build()
protected abstract IncrementalIndex buildInner()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.