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
AReadableFieldPointer
that 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 long
length()
Length of the field.long
position()
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: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
-
-