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 |
sortFacts |
| 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 |
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,
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) |
void |
validate() |
@Nullable protected IncrementalIndexSchema incrementalIndexSchema
protected boolean deserializeComplexMetrics
protected boolean concurrentEventAdd
protected boolean sortFacts
protected int maxRowCount
protected long maxBytesInMemory
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, 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 void validate()
public final IncrementalIndex build()
protected abstract IncrementalIndex buildInner()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.