Class RowMemoryFieldPointer

java.lang.Object
org.apache.druid.frame.field.RowMemoryFieldPointer
All Implemented Interfaces:
ReadableFieldPointer

public class RowMemoryFieldPointer extends Object implements ReadableFieldPointer
A ReadableFieldPointer 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 Details

    • RowMemoryFieldPointer

      public RowMemoryFieldPointer(org.apache.datasketches.memory.Memory memory, ReadableFrameRowPointer rowPointer, int fieldNumber, int fieldCount)
  • Method Details

    • position

      public long position()
      Description copied from interface: ReadableFieldPointer
      Starting position of the field.
      Specified by:
      position in interface ReadableFieldPointer
    • length

      public long length()
      Description copied from interface: ReadableFieldPointer
      Length 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:
      length in interface ReadableFieldPointer