public class IndexSpec extends Object
| Constructor and Description |
|---|
IndexSpec()
Creates an IndexSpec with default parameters
|
IndexSpec(BitmapSerdeFactory bitmapSerdeFactory,
CompressionStrategy dimensionCompression,
CompressionStrategy metricCompression,
CompressionFactory.LongEncodingStrategy longEncoding) |
IndexSpec(BitmapSerdeFactory bitmapSerdeFactory,
CompressionStrategy dimensionCompression,
CompressionStrategy metricCompression,
CompressionFactory.LongEncodingStrategy longEncoding,
SegmentizerFactory segmentLoader) |
IndexSpec(BitmapSerdeFactory bitmapSerdeFactory,
CompressionStrategy dimensionCompression,
StringEncodingStrategy stringDictionaryEncoding,
CompressionStrategy metricCompression,
CompressionFactory.LongEncodingStrategy longEncoding,
CompressionStrategy jsonCompression,
SegmentizerFactory segmentLoader)
Creates an IndexSpec with the given storage format settings.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asMap(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
boolean |
equals(Object o) |
BitmapSerdeFactory |
getBitmapSerdeFactory() |
CompressionStrategy |
getDimensionCompression() |
CompressionStrategy |
getJsonCompression() |
CompressionFactory.LongEncodingStrategy |
getLongEncoding() |
CompressionStrategy |
getMetricCompression() |
SegmentizerFactory |
getSegmentLoader() |
StringEncodingStrategy |
getStringDictionaryEncoding() |
int |
hashCode() |
String |
toString() |
public IndexSpec()
public IndexSpec(@Nullable BitmapSerdeFactory bitmapSerdeFactory, @Nullable CompressionStrategy dimensionCompression, @Nullable CompressionStrategy metricCompression, @Nullable CompressionFactory.LongEncodingStrategy longEncoding)
public IndexSpec(@Nullable BitmapSerdeFactory bitmapSerdeFactory, @Nullable CompressionStrategy dimensionCompression, @Nullable CompressionStrategy metricCompression, @Nullable CompressionFactory.LongEncodingStrategy longEncoding, @Nullable SegmentizerFactory segmentLoader)
public IndexSpec(@Nullable BitmapSerdeFactory bitmapSerdeFactory, @Nullable CompressionStrategy dimensionCompression, @Nullable StringEncodingStrategy stringDictionaryEncoding, @Nullable CompressionStrategy metricCompression, @Nullable CompressionFactory.LongEncodingStrategy longEncoding, @Nullable CompressionStrategy jsonCompression, @Nullable SegmentizerFactory segmentLoader)
bitmapSerdeFactory - type of bitmap to use (e.g. roaring or concise), null to use the default.
Defaults to the bitmap type specified by the (deprecated) "druid.processing.bitmap.type"
setting, or, if none was set, uses the default defined in BitmapSerdedimensionCompression - compression format for dimension columns, null to use the default.
Defaults to CompressionStrategy.DEFAULT_COMPRESSION_STRATEGYstringDictionaryEncoding - encoding strategy for string dictionaries of dictionary encoded string columnsmetricCompression - compression format for primitive type metric columns, null to use the default.
Defaults to CompressionStrategy.DEFAULT_COMPRESSION_STRATEGYlongEncoding - encoding strategy for metric and dimension columns with type long, null to use the default.
Defaults to CompressionFactory.DEFAULT_LONG_ENCODING_STRATEGYsegmentLoader - specify a SegmentizerFactory which will be written to 'factory.json' and used to load
the written segmentpublic BitmapSerdeFactory getBitmapSerdeFactory()
public CompressionStrategy getDimensionCompression()
public StringEncodingStrategy getStringDictionaryEncoding()
public CompressionStrategy getMetricCompression()
public CompressionFactory.LongEncodingStrategy getLongEncoding()
@Nullable public SegmentizerFactory getSegmentLoader()
@Nullable public CompressionStrategy getJsonCompression()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.