Package org.apache.druid.segment.vector
Interface VectorSizeInspector
-
- All Known Subinterfaces:
MultiValueDimensionVectorSelector
,ReadableVectorInspector
,ReadableVectorOffset
,SingleValueDimensionVectorSelector
,VectorCursor
,VectorObjectSelector
,VectorOffset
,VectorValueMatcher
,VectorValueSelector
- All Known Implementing Classes:
BaseDoubleVectorValueSelector
,BaseFloatVectorValueSelector
,BaseLongVectorValueSelector
,BaseVectorValueMatcher
,BitmapVectorOffset
,BooleanVectorValueMatcher
,ExpressionVectorObjectSelector
,ExpressionVectorValueSelector
,FilteredVectorOffset
,FrameVectorCursor
,NestedFieldVirtualColumn.RawFieldVectorObjectSelector
,NilVectorSelector
,NoFilterVectorOffset
,SingleStringInputDeferredEvaluationExpressionDimensionVectorSelector
,StringUtf8DictionaryEncodedColumn.MultiValueStringVectorObjectSelector
,StringUtf8DictionaryEncodedColumn.StringMultiValueDimensionVectorSelector
,StringUtf8DictionaryEncodedColumn.StringSingleValueDimensionVectorSelector
,StringUtf8DictionaryEncodedColumn.StringVectorObjectSelector
,VariantColumn.VariantVectorObjectSelector
public interface VectorSizeInspector
Common interface for vectorized column selectors, matchers, etc, where callers are given the ability to inspect current and maximum vector sizes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCurrentVectorSize()
Returns the current vector size for this cursor.int
getMaxVectorSize()
Returns the maximum vector size for this cursor.
-
-
-
Method Detail
-
getMaxVectorSize
int getMaxVectorSize()
Returns the maximum vector size for this cursor. It will not change for the lifetime of this cursor, and is generally used to allocate scratch arrays for later processing. Will always be greater than zero.
-
getCurrentVectorSize
int getCurrentVectorSize()
Returns the current vector size for this cursor. Will never be larger than the max size returned bygetMaxVectorSize()
.
-
-