Package org.apache.druid.segment
Class ObjectBasedColumnSelector<T>
java.lang.Object
org.apache.druid.segment.ObjectBasedColumnSelector<T>
- All Implemented Interfaces:
HotLoopCallee,BaseDoubleColumnValueSelector,BaseFloatColumnValueSelector,BaseLongColumnValueSelector,BaseNullableColumnValueSelector,BaseObjectColumnValueSelector<T>,ColumnValueSelector<T>
Object based column selector.
This abstract class provides a
ColumnValueSelector based on the methods of BaseObjectColumnValueSelector.-
Field Summary
Fields inherited from interface org.apache.druid.segment.ColumnValueSelector
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.segment.BaseObjectColumnValueSelector
classOfObject, getObjectMethods inherited from interface org.apache.druid.query.monomorphicprocessing.HotLoopCallee
inspectRuntimeShape
-
Constructor Details
-
ObjectBasedColumnSelector
public ObjectBasedColumnSelector()
-
-
Method Details
-
getFloat
public final float getFloat()- Specified by:
getFloatin interfaceBaseFloatColumnValueSelector
-
getDouble
public final double getDouble()- Specified by:
getDoublein interfaceBaseDoubleColumnValueSelector
-
getLong
public final long getLong()- Specified by:
getLongin interfaceBaseLongColumnValueSelector
-
isNull
public final boolean isNull()Description copied from interface:BaseNullableColumnValueSelectorReturns true if the primitive long, double, or float value returned by this selector should be treated as null. Users ofBaseLongColumnValueSelector.getLong(),BaseDoubleColumnValueSelector.getDouble()andBaseFloatColumnValueSelector.getFloat()must check this method first, or else they may improperly use placeholder values returned by the primitive get methods. Users ofBaseObjectColumnValueSelector.getObject()should not call this method. Instead, call "getObject" and check if it is null.- Specified by:
isNullin interfaceBaseNullableColumnValueSelector
-