Uses of Class
org.apache.druid.segment.IndexSpec
Packages that use IndexSpec
Package
Description
-
Uses of IndexSpec in org.apache.druid.data.input.impl
Methods in org.apache.druid.data.input.impl with parameters of type IndexSpecModifier and TypeMethodDescriptionDimensionSchema.getEffectiveSchema(IndexSpec indexSpec) Computes the 'effective'DimensionSchema, allowing columns which provide mechanisms for customizing storage format to fill in values from the segment levelIndexSpecdefaults.StringDimensionSchema.getEffectiveSchema(IndexSpec indexSpec) -
Uses of IndexSpec in org.apache.druid.guice
Methods in org.apache.druid.guice that return IndexSpec -
Uses of IndexSpec in org.apache.druid.query.aggregation
Methods in org.apache.druid.query.aggregation with parameters of type IndexSpecModifier and TypeMethodDescriptionSerializablePairLongDoubleComplexMetricSerde.getSerializer(SegmentWriteOutMedium segmentWriteOutMedium, String column, IndexSpec indexSpec) SerializablePairLongFloatComplexMetricSerde.getSerializer(SegmentWriteOutMedium segmentWriteOutMedium, String column, IndexSpec indexSpec) SerializablePairLongLongComplexMetricSerde.getSerializer(SegmentWriteOutMedium segmentWriteOutMedium, String column, IndexSpec indexSpec) SerializablePairLongStringComplexMetricSerde.getSerializer(SegmentWriteOutMedium segmentWriteOutMedium, String column, IndexSpec indexSpec) -
Uses of IndexSpec in org.apache.druid.segment
Fields in org.apache.druid.segment declared as IndexSpecModifier and TypeFieldDescriptionprotected final IndexSpecDictionaryEncodedColumnMerger.indexSpecprotected final IndexSpecNumericDimensionMergerV9.indexSpecMethods in org.apache.druid.segment that return IndexSpecModifier and TypeMethodDescriptionIndexSpec.Builder.build()static IndexSpecIndexSpec.getDefault()IndexSpec.getEffectiveSpec()Populate all null fields ofIndexSpec, first fromgetDefault()and finally falling back to hard coded defaults if no overrides are defined.DefaultColumnFormatConfig.getIndexSpec()Methods in org.apache.druid.segment with parameters of type IndexSpecModifier and TypeMethodDescriptionstatic StringColumnFormatSpecStringColumnFormatSpec.getEffectiveFormatSpec(StringColumnFormatSpec columnFormatSpec, IndexSpec indexSpec) AutoTypeColumnSchema.getEffectiveSchema(IndexSpec indexSpec) protected abstract FileIndexMergerBase.makeIndexFiles(List<IndexableAdapter> adapters, Metadata segmentMetadata, File outDir, ProgressIndicator progress, List<String> mergedDimensionsWithTime, IndexMergerBase.DimensionsSpecInspector dimensionsSpecInspector, List<String> mergedMetrics, Function<List<TransformableRowIterator>, TimeAndDimsIterator> rowMergerFn, IndexSpec indexSpec, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) MergeIndexableAdapterand build the segment fileprotected FileIndexMergerV10.makeIndexFiles(List<IndexableAdapter> adapters, Metadata segmentMetadata, File outDir, ProgressIndicator progress, List<String> mergedDimensionsWithTime, IndexMergerBase.DimensionsSpecInspector dimensionsSpecInspector, List<String> mergedMetrics, Function<List<TransformableRowIterator>, TimeAndDimsIterator> rowMergerFn, IndexSpec indexSpec, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) protected FileIndexMergerV9.makeIndexFiles(List<IndexableAdapter> adapters, Metadata segmentMetadata, File outDir, ProgressIndicator progress, List<String> mergedDimensionsWithTime, IndexMergerBase.DimensionsSpecInspector dimensionsSpecInspector, List<String> mergedMetrics, Function<List<TransformableRowIterator>, TimeAndDimsIterator> rowMergerFn, IndexSpec indexSpec, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) default DimensionMergerV9DimensionHandler.makeMerger(String outputName, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, ColumnCapabilities capabilities, ProgressIndicator progress, File segmentBaseDir, Closer closer) Creates a new DimensionMergerV9, a per-dimension object responsible for merging indexes/row data across segments and building the on-disk representation of a dimension.default DimensionMergerV9DimensionHandler.makeMerger(String outputName, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, ColumnCapabilities capabilities, ProgressIndicator progress, Closer closer) Deprecated.DoubleDimensionHandler.makeMerger(String outputName, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, ColumnCapabilities capabilities, ProgressIndicator progress, File segmentBaseDir, Closer closer) FloatDimensionHandler.makeMerger(String outputName, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, ColumnCapabilities capabilities, ProgressIndicator progress, File segmentBaseDir, Closer closer) LongDimensionHandler.makeMerger(String outputName, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, ColumnCapabilities capabilities, ProgressIndicator progress, File segmentBaseDir, Closer closer) NestedCommonFormatColumnHandler.makeMerger(String outputName, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, ColumnCapabilities capabilities, ProgressIndicator progress, File segmentBaseDir, Closer closer) StringDimensionHandler.makeMerger(String outputName, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, ColumnCapabilities capabilities, ProgressIndicator progress, File segmentBaseDir, Closer closer) protected voidIndexMergerBase.makeMetricsColumns(SegmentFileBuilder segmentFileBuilder, ProgressIndicator progress, List<String> mergedMetrics, Map<String, ColumnFormat> metricsTypes, List<GenericColumnSerializer> metWriters, IndexSpec indexSpec, String namePrefix) protected MetadataIndexMergerBase.makeProjections(SegmentFileBuilder segmentFileBuilder, List<AggregateProjectionMetadata> projections, List<IndexableAdapter> adapters, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, ProgressIndicator progress, File segmentBaseDir, Closer closer, Map<String, DimensionMergerV9> parentMergers, Metadata segmentMetadata) protected voidIndexMergerBase.makeTimeColumn(SegmentFileBuilder segmentFileBuilder, ProgressIndicator progress, GenericColumnSerializer timeWriter, IndexSpec indexSpec, String name) IndexMerger.merge(List<IndexableAdapter> indexes, boolean rollup, AggregatorFactory[] metricAggs, File outDir, DimensionsSpec dimensionsSpec, IndexSpec indexSpec, int maxColumnsToMerge) Only used as a convenience method in tests.IndexMergerBase.merge(List<IndexableAdapter> indexes, boolean rollup, AggregatorFactory[] metricAggs, File outDir, DimensionsSpec dimensionsSpec, IndexSpec indexSpec, int maxColumnsToMerge) The indexes here must have the sameMetadata, otherwise an error would be thrown.protected FileIndexMergerBase.merge(List<IndexableAdapter> indexes, boolean rollup, AggregatorFactory[] metricAggs, DimensionsSpec dimensionsSpec, File outDir, IndexSpec indexSpec, ProgressIndicator progress, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) default FileIndexMerger.mergeQueryableIndex(List<QueryableIndex> indexes, boolean rollup, AggregatorFactory[] metricAggs, File outDir, IndexSpec indexSpec, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory, int maxColumnsToMerge) Merge a collection ofQueryableIndex.IndexMerger.mergeQueryableIndex(List<QueryableIndex> indexes, boolean rollup, AggregatorFactory[] metricAggs, DimensionsSpec dimensionsSpec, File outDir, IndexSpec indexSpec, IndexSpec indexSpecForIntermediatePersists, ProgressIndicator progress, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory, int maxColumnsToMerge) Merge a collection ofQueryableIndex.default FileIndexMerger.mergeQueryableIndex(List<QueryableIndex> indexes, boolean rollup, AggregatorFactory[] metricAggs, DimensionsSpec dimensionsSpec, File outDir, IndexSpec indexSpec, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory, int maxColumnsToMerge) Merge a collection ofQueryableIndex.IndexMergerBase.mergeQueryableIndex(List<QueryableIndex> indexes, boolean rollup, AggregatorFactory[] metricAggs, DimensionsSpec dimensionsSpec, File outDir, IndexSpec indexSpec, IndexSpec indexSpecForIntermediatePersists, ProgressIndicator progress, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory, int maxColumnsToMerge) protected FileIndexMergerBase.multiphaseMerge(List<IndexableAdapter> indexes, boolean rollup, AggregatorFactory[] metricAggs, DimensionsSpec dimensionsSpec, File outDir, IndexSpec indexSpec, IndexSpec indexSpecForIntermediatePersists, ProgressIndicator progress, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory, int maxColumnsToMerge) default FileIndexMerger.persist(IncrementalIndex index, File outDir, IndexSpec indexSpec, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) Equivalent toIndexMerger.persist(IncrementalIndex, Interval, File, IndexSpec, ProgressIndicator, SegmentWriteOutMediumFactory)without a progress indicator and with interval set toIncrementalIndex.getInterval().IndexMerger.persist(IncrementalIndex index, org.joda.time.Interval dataInterval, File outDir, IndexSpec indexSpec, ProgressIndicator progress, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) Persist an IncrementalIndex to disk in such a way that it can be loaded back up as aQueryableIndex.default FileIndexMerger.persist(IncrementalIndex index, org.joda.time.Interval dataInterval, File outDir, IndexSpec indexSpec, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) Equivalent toIndexMerger.persist(IncrementalIndex, Interval, File, IndexSpec, ProgressIndicator, SegmentWriteOutMediumFactory)without a progress indicator.IndexMergerBase.persist(IncrementalIndex index, org.joda.time.Interval dataInterval, File outDir, IndexSpec indexSpec, ProgressIndicator progress, SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) protected ArrayList<GenericColumnSerializer>IndexMergerBase.setupMetricsWriters(SegmentWriteOutMedium segmentWriteOutMedium, List<String> mergedMetrics, Map<String, ColumnFormat> metricsTypes, IndexSpec indexSpec, String prefix) protected GenericColumnSerializerIndexMergerBase.setupTimeWriter(SegmentWriteOutMedium segmentWriteOutMedium, IndexSpec indexSpec) Constructors in org.apache.druid.segment with parameters of type IndexSpecModifierConstructorDescriptionDefaultColumnFormatConfig(String stringMultiValueHandlingMode, Integer nestedColumnFormatVersion, IndexSpec indexSpec, Integer maxStringLength) DictionaryEncodedColumnMerger(String dimensionName, String outputName, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, ColumnCapabilities capabilities, ProgressIndicator progress, File segmentBaseDir, Closer closer) StringDimensionMergerV9(String dimensionName, String outputName, IndexSpec indexSpec, SegmentWriteOutMedium segmentWriteOutMedium, ColumnCapabilities capabilities, ProgressIndicator progress, File segmentBaseDir, Closer closer) -
Uses of IndexSpec in org.apache.druid.segment.nested
Methods in org.apache.druid.segment.nested with parameters of type IndexSpecModifier and TypeMethodDescriptionNestedCommonFormatColumnFormatSpec.getEffectiveFormatSpec(NestedCommonFormatColumnFormatSpec columnFormatSpec, IndexSpec indexSpec) Create aNestedCommonFormatColumnFormatSpecwith all fields fully populated. -
Uses of IndexSpec in org.apache.druid.segment.serde
Methods in org.apache.druid.segment.serde with parameters of type IndexSpecModifier and TypeMethodDescriptionstatic GenericColumnSerializerCompressedComplexColumnSerializer.create(SegmentWriteOutMedium segmentWriteOutMedium, String column, IndexSpec indexSpec, ObjectStrategy objectStrategy) ComplexMetricSerde.getSerializer(SegmentWriteOutMedium segmentWriteOutMedium, String column, IndexSpec indexSpec) This method provides the ability for a ComplexMetricSerde to control its own serialization.Constructors in org.apache.druid.segment.serde with parameters of type IndexSpecModifierConstructorDescriptionCompressedComplexColumnSerializer(String name, SegmentWriteOutMedium segmentWriteOutMedium, IndexSpec indexSpec, ObjectStrategy<T> strategy) -
Uses of IndexSpec in org.apache.druid.timeline
Methods in org.apache.druid.timeline that return IndexSpecMethods in org.apache.druid.timeline with parameters of type IndexSpecModifier and TypeMethodDescriptionstatic Function<Set<DataSegment>,Set<DataSegment>> CompactionState.addCompactionStateToSegments(PartitionsSpec partitionsSpec, DimensionsSpec dimensionsSpec, List<AggregatorFactory> metricsSpec, CompactionTransformSpec transformSpec, IndexSpec indexSpec, GranularitySpec granularitySpec, List<AggregateProjectionSpec> projections) Constructors in org.apache.druid.timeline with parameters of type IndexSpecModifierConstructorDescriptionCompactionState(PartitionsSpec partitionsSpec, DimensionsSpec dimensionsSpec, List<AggregatorFactory> metricsSpec, CompactionTransformSpec transformSpec, IndexSpec indexSpec, GranularitySpec granularitySpec, List<AggregateProjectionSpec> projections)
DimensionHandler.makeMerger(String, IndexSpec, SegmentWriteOutMedium, ColumnCapabilities, ProgressIndicator, File, Closer)This method exists for backwards compatiblity with older versions of Druid since this is an unofficial extension point that must be implemented to create custom dimension types, and will be removed in a future release.