Package org.apache.druid.frame.field
Class SettableFieldPointer
java.lang.Object
org.apache.druid.frame.field.SettableFieldPointer
- All Implemented Interfaces:
ReadableFieldPointer
A simple
ReadableFieldPointer that returns the position and the length that was set on its object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglength()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.
-
Constructor Details
-
SettableFieldPointer
public SettableFieldPointer()
-
-
Method Details
-
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
-