Interface PhysicalSegmentInspector

All Superinterfaces:
ColumnInspector, Expr.InputBindingInspector
All Known Implementing Classes:
IncrementalIndexPhysicalSegmentInspector, QueryableIndexPhysicalSegmentInspector

public interface PhysicalSegmentInspector extends ColumnInspector
Interface for methods describing physical segments such as QueryableIndexSegment and IncrementalIndexSegment that is not typically used at query time (outside of metadata queries).
  • Method Details

    • getMetadata

      @Nullable Metadata getMetadata()
      Returns Metadata which contains details about how the segment was created
    • getMinValue

      @Nullable Comparable getMinValue(String column)
      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

      @Nullable Comparable getMaxValue(String column)
      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

      int getDimensionCardinality(String column)
      Returns the number of distinct values in a column, if known, or DimensionDictionarySelector.CARDINALITY_UNKNOWN if not.}
    • getNumRows

      int getNumRows()
      Returns the number of rows in the segment