Package org.apache.druid.segment
Interface PhysicalSegmentInspector
- All Superinterfaces:
ColumnInspector,Expr.InputBindingInspector
- All Known Implementing Classes:
IncrementalIndexPhysicalSegmentInspector,QueryableIndexPhysicalSegmentInspector
Interface for methods describing physical segments such as
QueryableIndexSegment and
IncrementalIndexSegment that is not typically used at query time (outside of metadata queries).-
Method Summary
Modifier and TypeMethodDescriptionintgetDimensionCardinality(String column) Returns the number of distinct values in a column, if known, orDimensionDictionarySelector.CARDINALITY_UNKNOWNif not.}getMaxValue(String column) Returns the minimum value of the provided column, if known through an index, dictionary, or cache.ReturnsMetadatawhich contains details about how the segment was createdgetMinValue(String column) Returns the minimum value of the provided column, if known through an index, dictionary, or cache.intReturns the number of rows in the segmentMethods inherited from interface org.apache.druid.segment.ColumnInspector
getColumnCapabilities, getTypeMethods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize
-
Method Details
-
getMetadata
ReturnsMetadatawhich contains details about how the segment was created -
getMinValue
Returns the minimum value of the provided column, if known through an index, dictionary, or cache. Returns null if not known. Does not scan the column to find the minimum value. -
getMaxValue
Returns the minimum value of the provided column, if known through an index, dictionary, or cache. Returns null if not known. Does not scan the column to find the maximum value. -
getDimensionCardinality
Returns the number of distinct values in a column, if known, orDimensionDictionarySelector.CARDINALITY_UNKNOWNif not.} -
getNumRows
int getNumRows()Returns the number of rows in the segment
-