Record Class HoldInput.FlowFileSession

java.lang.Object
java.lang.Record
org.apache.nifi.processors.tests.system.HoldInput.FlowFileSession
Enclosing class:
HoldInput

private static record HoldInput.FlowFileSession(org.apache.nifi.processor.ProcessSession session, List<org.apache.nifi.flowfile.FlowFile> flowFiles) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final List<org.apache.nifi.flowfile.FlowFile>
    The field for the flowFiles record component.
    private final org.apache.nifi.processor.ProcessSession
    The field for the session record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    FlowFileSession(org.apache.nifi.processor.ProcessSession session, List<org.apache.nifi.flowfile.FlowFile> flowFiles)
    Creates an instance of a FlowFileSession record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    List<org.apache.nifi.flowfile.FlowFile>
    Returns the value of the flowFiles record component.
    final int
    Returns a hash code value for this object.
    org.apache.nifi.processor.ProcessSession
    Returns the value of the session record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • session

      private final org.apache.nifi.processor.ProcessSession session
      The field for the session record component.
    • flowFiles

      private final List<org.apache.nifi.flowfile.FlowFile> flowFiles
      The field for the flowFiles record component.
  • Constructor Details

    • FlowFileSession

      private FlowFileSession(org.apache.nifi.processor.ProcessSession session, List<org.apache.nifi.flowfile.FlowFile> flowFiles)
      Creates an instance of a FlowFileSession record class.
      Parameters:
      session - the value for the session record component
      flowFiles - the value for the flowFiles record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • session

      public org.apache.nifi.processor.ProcessSession session()
      Returns the value of the session record component.
      Returns:
      the value of the session record component
    • flowFiles

      public List<org.apache.nifi.flowfile.FlowFile> flowFiles()
      Returns the value of the flowFiles record component.
      Returns:
      the value of the flowFiles record component