Interface RecordSettable

All Superinterfaces:
RecordTyped, TokenSettable, TokenTyped
All Known Subinterfaces:
RecordOutput
All Known Implementing Classes:
MutableComposite, RecordRegister, RecordSettableFilter, SparseRecordRegister

public interface RecordSettable extends TokenSettable, RecordTyped
A TokenSettable object containing record data. RecordSettable objects are composed of one or more ScalarSettable objects, each corresponding the fields of the record schema. Fields are identified both by name and position, as defined in the schema.
  • Method Details

    • getType

      RecordTokenType getType()
      Description copied from interface: TokenTyped
      Gets the type of data tokens handled by the implementor.
      Specified by:
      getType in interface RecordTyped
      Specified by:
      getType in interface TokenTyped
      Returns:
      the type of tokens associated with the class.
    • size

      int size()
      Gets the number of fields in the record schema.
      Returns:
      the number of fields
    • getFields

      ScalarSettable[] getFields()
      Gets the settables for all fields in the record
      Returns:
      an array containing the settable fields
    • getField

      ScalarSettable getField(String fieldName)
      Gets the settable for the field with the given name.
      Parameters:
      fieldName - the field name
      Returns:
      the settable field
    • getField

      ScalarSettable getField(int index)
      Get the field at the given index within the list of fields.
      Parameters:
      index - zero-based index into the field list
      Returns:
      the settable field