Package org.apache.druid.segment
Class QueryableIndexPhysicalSegmentInspector
- java.lang.Object
-
- org.apache.druid.segment.QueryableIndexPhysicalSegmentInspector
-
- All Implemented Interfaces:
Expr.InputBindingInspector,ColumnInspector,PhysicalSegmentInspector
public class QueryableIndexPhysicalSegmentInspector extends Object implements PhysicalSegmentInspector
-
-
Constructor Summary
Constructors Constructor Description QueryableIndexPhysicalSegmentInspector(QueryableIndex index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnCapabilitiesgetColumnCapabilities(String column)Returns capabilities of a particular column.intgetDimensionCardinality(String column)Returns the number of distinct values in a column, if known, orDimensionDictionarySelector.CARDINALITY_UNKNOWNif not.}ComparablegetMaxValue(String dimension)Returns the minimum value of the provided column, if known through an index, dictionary, or cache.MetadatagetMetadata()ReturnsMetadatawhich contains details about how the segment was createdComparablegetMinValue(String dimension)Returns the minimum value of the provided column, if known through an index, dictionary, or cache.intgetNumRows()Returns the number of rows in the segment-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.segment.ColumnInspector
getType
-
Methods inherited from interface org.apache.druid.math.expr.Expr.InputBindingInspector
areNumeric, areNumeric, areSameTypes, areSameTypes, areScalar, areScalar, canVectorize, canVectorize
-
-
-
-
Constructor Detail
-
QueryableIndexPhysicalSegmentInspector
public QueryableIndexPhysicalSegmentInspector(QueryableIndex index)
-
-
Method Detail
-
getMetadata
public Metadata getMetadata()
Description copied from interface:PhysicalSegmentInspectorReturnsMetadatawhich contains details about how the segment was created- Specified by:
getMetadatain interfacePhysicalSegmentInspector
-
getMinValue
@Nullable public Comparable getMinValue(String dimension)
Description copied from interface:PhysicalSegmentInspectorReturns 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.- Specified by:
getMinValuein interfacePhysicalSegmentInspector
-
getMaxValue
@Nullable public Comparable getMaxValue(String dimension)
Description copied from interface:PhysicalSegmentInspectorReturns 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.- Specified by:
getMaxValuein interfacePhysicalSegmentInspector
-
getDimensionCardinality
public int getDimensionCardinality(String column)
Description copied from interface:PhysicalSegmentInspectorReturns the number of distinct values in a column, if known, orDimensionDictionarySelector.CARDINALITY_UNKNOWNif not.}- Specified by:
getDimensionCardinalityin interfacePhysicalSegmentInspector
-
getColumnCapabilities
@Nullable public ColumnCapabilities getColumnCapabilities(String column)
Description copied from interface:ColumnInspectorReturns capabilities of a particular column.- Specified by:
getColumnCapabilitiesin interfaceColumnInspector- Parameters:
column- column name- Returns:
- capabilities, or null
-
getNumRows
public int getNumRows()
Description copied from interface:PhysicalSegmentInspectorReturns the number of rows in the segment- Specified by:
getNumRowsin interfacePhysicalSegmentInspector
-
-