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>
public abstract class ObjectBasedColumnSelector<T> extends Object implements ColumnValueSelector<T>
Object based column selector. This abstract class provides aColumnValueSelectorbased on the methods ofBaseObjectColumnValueSelector.
-
-
Field Summary
-
Fields inherited from interface org.apache.druid.segment.ColumnValueSelector
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description ObjectBasedColumnSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDouble()floatgetFloat()longgetLong()booleanisNull()Returns true if the primitive long, double, or float value returned by this selector should be treated as null.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.segment.BaseObjectColumnValueSelector
classOfObject, getObject
-
Methods inherited from interface org.apache.druid.query.monomorphicprocessing.HotLoopCallee
inspectRuntimeShape
-
-
-
-
Method Detail
-
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
-
-