Package org.apache.druid.frame.field
Class RowMemoryFieldPointer
- java.lang.Object
-
- org.apache.druid.frame.field.RowMemoryFieldPointer
-
- All Implemented Interfaces:
ReadableFieldPointer
public class RowMemoryFieldPointer extends Object implements ReadableFieldPointer
AReadableFieldPointerthat is derived from a row-based frame. Returns the position and the length of a field at a particular position for the row that the rowPointer is pointing to at the time. It caches the values of the position and the length based on position of the rowPointer. This method is not thread-safe
-
-
Constructor Summary
Constructors Constructor Description RowMemoryFieldPointer(org.apache.datasketches.memory.Memory memory, ReadableFrameRowPointer rowPointer, int fieldNumber, int fieldCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longlength()Length of the field.longposition()Starting position of the field.
-
-
-
Constructor Detail
-
RowMemoryFieldPointer
public RowMemoryFieldPointer(org.apache.datasketches.memory.Memory memory, ReadableFrameRowPointer rowPointer, int fieldNumber, int fieldCount)
-
-
Method Detail
-
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
-
-