Class SettableLongColumnValueSelector
- java.lang.Object
-
- org.apache.druid.segment.selector.settable.SettableLongColumnValueSelector
-
- All Implemented Interfaces:
HotLoopCallee
,BaseDoubleColumnValueSelector
,BaseFloatColumnValueSelector
,BaseLongColumnValueSelector
,BaseNullableColumnValueSelector
,BaseObjectColumnValueSelector<Long>
,ColumnValueSelector<Long>
,LongColumnSelector
,SettableColumnValueSelector<Long>
public class SettableLongColumnValueSelector extends Object implements SettableColumnValueSelector<Long>, LongColumnSelector
-
-
Field Summary
-
Fields inherited from interface org.apache.druid.segment.ColumnValueSelector
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description SettableLongColumnValueSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLong()
boolean
isNull()
Returns true if the primitive long, double, or float value returned by this selector should be treated as null.void
setValue(long value)
Optimized method for assigning timestamps, that are known to never be nullvoid
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.LongColumnSelector
classOfObject, getDouble, getFloat, 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<Long>
-
setValue
public void setValue(long value)
Optimized method for assigning timestamps, that are known to never be null
-
getLong
public long getLong()
- Specified by:
getLong
in interfaceBaseLongColumnValueSelector
-
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
-
-