Package org.apache.druid.frame.field
Class SettableFieldPointer
- java.lang.Object
-
- org.apache.druid.frame.field.SettableFieldPointer
-
- All Implemented Interfaces:
ReadableFieldPointer
public class SettableFieldPointer extends Object implements ReadableFieldPointer
A simpleReadableFieldPointer
that returns the position and the length that was set on its object.
-
-
Constructor Summary
Constructors Constructor Description SettableFieldPointer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
length()
Length of the field.long
position()
Starting position of the field.void
setPositionAndLength(long position, long length)
Sets the position and the length to be returned when interface's methods are called.
-
-
-
Method Detail
-
setPositionAndLength
public void setPositionAndLength(long position, long length)
Sets the position and the length to be returned when interface's methods are called.
-
position
public long position()
Description copied from interface:ReadableFieldPointer
Starting position of the field.- Specified by:
position
in interfaceReadableFieldPointer
-
length
public long length()
Description copied from interface:ReadableFieldPointer
Length of the field.- Specified by:
length
in interfaceReadableFieldPointer
-
-