Class 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 Detail

      • RowMemoryFieldPointer

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

      • 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