Interface ReadableVectorInspector

All Superinterfaces:
VectorSizeInspector
All Known Subinterfaces:
ReadableVectorOffset, VectorOffset
All Known Implementing Classes:
BitmapVectorOffset, FilteredVectorOffset, NoFilterVectorOffset

public interface ReadableVectorInspector extends VectorSizeInspector
Vector inspector that can supply a unique identifier of the vector to use with caching in addition to sizing information
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    A marker value that will never be returned by "getId".
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an integer that uniquely identifies the current vector.

    Methods inherited from interface org.apache.druid.segment.vector.VectorSizeInspector

    getCurrentVectorSize, getMaxVectorSize
  • Field Details

    • NULL_ID

      static final int NULL_ID
      A marker value that will never be returned by "getId".
      See Also:
  • Method Details

    • getId

      int getId()
      Returns an integer that uniquely identifies the current vector. This is useful for caching: it is safe to assume nothing has changed in the vector so long as the id remains the same.