Class SettableFieldPointer

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

public class SettableFieldPointer extends Object implements ReadableFieldPointer
A simple ReadableFieldPointer that returns the position and the length that was set on its object.
  • 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: 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