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 simpleReadableFieldPointerthat 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 longlength()Length of the field.longposition()Starting position of the field.voidsetPositionAndLength(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:ReadableFieldPointerStarting position of the field.- Specified by:
positionin interfaceReadableFieldPointer
-
length
public long length()
Description copied from interface:ReadableFieldPointerLength of the field. Never necessary to read a field, since all fields can be read without knowing their entire length. Provided because it may be useful for reading in a more optimal manner.- Specified by:
lengthin interfaceReadableFieldPointer
-
-