Package org.apache.druid.segment.vector
Interface ReadableVectorInspector
- All Superinterfaces:
VectorSizeInspector
- All Known Subinterfaces:
ReadableVectorOffset,VectorOffset
- All Known Implementing Classes:
BitmapVectorOffset,FilteredVectorOffset,NoFilterVectorOffset
Vector inspector that can supply a unique identifier of the vector to use with caching in addition to
sizing information
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA marker value that will never be returned by "getId". -
Method Summary
Modifier and TypeMethodDescriptionintgetId()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_IDA 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.
-