Record Class TaskUpdateRequest

java.lang.Object
java.lang.Record
io.trino.server.TaskUpdateRequest
Record Components:
extraCredentials - extraCredentials is stored separately from SessionRepresentation to avoid being leaked

public record TaskUpdateRequest(SessionRepresentation session, Map<String,String> extraCredentials, io.opentelemetry.api.trace.Span stageSpan, Optional<PlanFragment> fragment, List<SplitAssignment> splitAssignments, OutputBuffers outputIds, Map<DynamicFilterId,Domain> dynamicFilterDomains, Optional<io.airlift.slice.Slice> exchangeEncryptionKey, boolean speculative) extends Record
  • Constructor Details

    • TaskUpdateRequest

      public TaskUpdateRequest(SessionRepresentation session, Map<String,String> extraCredentials, io.opentelemetry.api.trace.Span stageSpan, Optional<PlanFragment> fragment, List<SplitAssignment> splitAssignments, OutputBuffers outputIds, Map<DynamicFilterId,Domain> dynamicFilterDomains, Optional<io.airlift.slice.Slice> exchangeEncryptionKey, boolean speculative)
      Creates an instance of a TaskUpdateRequest record class.
      Parameters:
      session - the value for the session record component
      extraCredentials - the value for the extraCredentials record component
      stageSpan - the value for the stageSpan record component
      fragment - the value for the fragment record component
      splitAssignments - the value for the splitAssignments record component
      outputIds - the value for the outputIds record component
      dynamicFilterDomains - the value for the dynamicFilterDomains record component
      exchangeEncryptionKey - the value for the exchangeEncryptionKey record component
      speculative - the value for the speculative record component
  • Method Details

    • toString

      public 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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 SessionRepresentation session()
      Returns the value of the session record component.
      Returns:
      the value of the session record component
    • extraCredentials

      public Map<String,String> extraCredentials()
      Returns the value of the extraCredentials record component.
      Returns:
      the value of the extraCredentials record component
    • stageSpan

      public io.opentelemetry.api.trace.Span stageSpan()
      Returns the value of the stageSpan record component.
      Returns:
      the value of the stageSpan record component
    • fragment

      public Optional<PlanFragment> fragment()
      Returns the value of the fragment record component.
      Returns:
      the value of the fragment record component
    • splitAssignments

      public List<SplitAssignment> splitAssignments()
      Returns the value of the splitAssignments record component.
      Returns:
      the value of the splitAssignments record component
    • outputIds

      public OutputBuffers outputIds()
      Returns the value of the outputIds record component.
      Returns:
      the value of the outputIds record component
    • dynamicFilterDomains

      public Map<DynamicFilterId,Domain> dynamicFilterDomains()
      Returns the value of the dynamicFilterDomains record component.
      Returns:
      the value of the dynamicFilterDomains record component
    • exchangeEncryptionKey

      public Optional<io.airlift.slice.Slice> exchangeEncryptionKey()
      Returns the value of the exchangeEncryptionKey record component.
      Returns:
      the value of the exchangeEncryptionKey record component
    • speculative

      public boolean speculative()
      Returns the value of the speculative record component.
      Returns:
      the value of the speculative record component