Class SettableDoubleColumnValueSelector
- java.lang.Object
-
- org.apache.druid.segment.selector.settable.SettableDoubleColumnValueSelector
-
- All Implemented Interfaces:
HotLoopCallee
,BaseDoubleColumnValueSelector
,BaseFloatColumnValueSelector
,BaseLongColumnValueSelector
,BaseNullableColumnValueSelector
,BaseObjectColumnValueSelector<Double>
,ColumnValueSelector<Double>
,DoubleColumnSelector
,SettableColumnValueSelector<Double>
public class SettableDoubleColumnValueSelector extends Object implements SettableColumnValueSelector<Double>, DoubleColumnSelector
-
-
Field Summary
-
Fields inherited from interface org.apache.druid.segment.ColumnValueSelector
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description SettableDoubleColumnValueSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDouble()
boolean
isNull()
Returns true if the primitive long, double, or float value returned by this selector should be treated as null.void
setValueFrom(ColumnValueSelector<?> selector)
-
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.DoubleColumnSelector
classOfObject, getFloat, getLong, getObject
-
Methods inherited from interface org.apache.druid.segment.selector.settable.SettableColumnValueSelector
inspectRuntimeShape
-
-
-
-
Method Detail
-
setValueFrom
public void setValueFrom(ColumnValueSelector<?> selector)
- Specified by:
setValueFrom
in interfaceSettableColumnValueSelector<Double>
-
getDouble
public double getDouble()
- Specified by:
getDouble
in interfaceBaseDoubleColumnValueSelector
-
isNull
public boolean isNull()
Description copied from interface:BaseNullableColumnValueSelector
Returns 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:
isNull
in interfaceBaseNullableColumnValueSelector
-
-