Package org.apache.druid.segment
Class Metadata
java.lang.Object
org.apache.druid.segment.Metadata
-
Constructor Summary
ConstructorsConstructorDescriptionMetadata(Map<String, Object> container, AggregatorFactory[] aggregators, TimestampSpec timestampSpec, Granularity queryGranularity, Boolean rollup, List<OrderBy> ordering, List<AggregateProjectionMetadata> projections) -
Method Summary
Modifier and TypeMethodDescriptionbooleanOrdering for the segment associated with this object.inthashCode()isRollup()static Metadatamerge(List<Metadata> toBeMerged, AggregatorFactory[] overrideMergedAggregators) mergeOrderings(List<List<OrderBy>> orderingsToMerge) MergegetOrdering()from different metadatas.toString()static voidvalidateProjections(List<List<AggregateProjectionMetadata>> projectionsToMerge) withDimensionOrder(List<OrderBy> ordering) withProjections(List<AggregateProjectionMetadata> projections)
-
Constructor Details
-
Metadata
public Metadata(@Nullable Map<String, Object> container, @Nullable AggregatorFactory[] aggregators, @Nullable TimestampSpec timestampSpec, @Nullable Granularity queryGranularity, @Nullable Boolean rollup, @Nullable List<OrderBy> ordering, @Nullable List<AggregateProjectionMetadata> projections)
-
-
Method Details
-
getContainer
-
getAggregators
-
getTimestampSpec
-
getQueryGranularity
-
isRollup
-
getOrdering
Ordering for the segment associated with this object. Nonnull for segments written in current versions of Druid, but would null for older segments. Null may be interpreted asCursors.ascendingTimeOrder(), since prior to this field being added, segments were always time-ordered. When dealing withQueryableIndex, it is generally better to useQueryableIndex.getOrdering(), since that method never returns null. -
getProjections
-
withDimensionOrder
-
withProjections
-
putAll
-
merge
@Nullable public static Metadata merge(@Nullable List<Metadata> toBeMerged, @Nullable AggregatorFactory[] overrideMergedAggregators) -
equals
-
hashCode
public int hashCode() -
toString
-
mergeOrderings
MergegetOrdering()from different metadatas. When an input sort order is null, we assume it isCursors.ascendingTimeOrder(), as this was the only sort order possible prior to the introduction of the "ordering" field. -
validateProjections
-