Record Class OutputSpoolingOperatorFactory.OutputSpoolingInfo
java.lang.Object
java.lang.Record
io.trino.operator.OutputSpoolingOperatorFactory.OutputSpoolingInfo
- All Implemented Interfaces:
OperatorInfo,Mergeable<OutputSpoolingOperatorFactory.OutputSpoolingInfo>
- Enclosing class:
OutputSpoolingOperatorFactory
public static record OutputSpoolingOperatorFactory.OutputSpoolingInfo(io.airlift.units.Duration spoolingWallTime, io.airlift.units.Duration spoolingCpuTime, long inlinedPages, long inlinedPositions, long inlinedRawBytes, long spooledPages, long spooledPositions, long spooledRawBytes, long spooledEncodedBytes)
extends Record
implements Mergeable<OutputSpoolingOperatorFactory.OutputSpoolingInfo>, OperatorInfo
-
Constructor Summary
ConstructorsConstructorDescriptionOutputSpoolingInfo(io.airlift.units.Duration spoolingWallTime, io.airlift.units.Duration spoolingCpuTime, long inlinedPages, long inlinedPositions, long inlinedRawBytes, long spooledPages, long spooledPositions, long spooledRawBytes, long spooledEncodedBytes) Creates an instance of aOutputSpoolingInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublefinal inthashCode()Returns a hash code value for this object.longReturns the value of theinlinedPagesrecord component.longReturns the value of theinlinedPositionsrecord component.longReturns the value of theinlinedRawBytesrecord component.booleanisFinal()longReturns the value of thespooledEncodedBytesrecord component.longReturns the value of thespooledPagesrecord component.longReturns the value of thespooledPositionsrecord component.longReturns the value of thespooledRawBytesrecord component.io.airlift.units.DurationReturns the value of thespoolingCpuTimerecord component.io.airlift.units.DurationReturns the value of thespoolingWallTimerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
OutputSpoolingInfo
public OutputSpoolingInfo(io.airlift.units.Duration spoolingWallTime, io.airlift.units.Duration spoolingCpuTime, long inlinedPages, long inlinedPositions, long inlinedRawBytes, long spooledPages, long spooledPositions, long spooledRawBytes, long spooledEncodedBytes) Creates an instance of aOutputSpoolingInforecord class.- Parameters:
spoolingWallTime- the value for thespoolingWallTimerecord componentspoolingCpuTime- the value for thespoolingCpuTimerecord componentinlinedPages- the value for theinlinedPagesrecord componentinlinedPositions- the value for theinlinedPositionsrecord componentinlinedRawBytes- the value for theinlinedRawBytesrecord componentspooledPages- the value for thespooledPagesrecord componentspooledPositions- the value for thespooledPositionsrecord componentspooledRawBytes- the value for thespooledRawBytesrecord componentspooledEncodedBytes- the value for thespooledEncodedBytesrecord component
-
-
Method Details
-
mergeWith
public OutputSpoolingOperatorFactory.OutputSpoolingInfo mergeWith(OutputSpoolingOperatorFactory.OutputSpoolingInfo other) - Specified by:
mergeWithin interfaceMergeable<OutputSpoolingOperatorFactory.OutputSpoolingInfo>
-
getEncodedToRawBytesRatio
public double getEncodedToRawBytesRatio() -
isFinal
public boolean isFinal()- Specified by:
isFinalin interfaceOperatorInfo- Returns:
- true if this OperatorInfo should be collected and sent to the coordinator when the task completes (i.e. it will not be stripped away during summarization).
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
spoolingWallTime
public io.airlift.units.Duration spoolingWallTime()Returns the value of thespoolingWallTimerecord component.- Returns:
- the value of the
spoolingWallTimerecord component
-
spoolingCpuTime
public io.airlift.units.Duration spoolingCpuTime()Returns the value of thespoolingCpuTimerecord component.- Returns:
- the value of the
spoolingCpuTimerecord component
-
inlinedPages
public long inlinedPages()Returns the value of theinlinedPagesrecord component.- Returns:
- the value of the
inlinedPagesrecord component
-
inlinedPositions
public long inlinedPositions()Returns the value of theinlinedPositionsrecord component.- Returns:
- the value of the
inlinedPositionsrecord component
-
inlinedRawBytes
public long inlinedRawBytes()Returns the value of theinlinedRawBytesrecord component.- Returns:
- the value of the
inlinedRawBytesrecord component
-
spooledPages
public long spooledPages()Returns the value of thespooledPagesrecord component.- Returns:
- the value of the
spooledPagesrecord component
-
spooledPositions
public long spooledPositions()Returns the value of thespooledPositionsrecord component.- Returns:
- the value of the
spooledPositionsrecord component
-
spooledRawBytes
public long spooledRawBytes()Returns the value of thespooledRawBytesrecord component.- Returns:
- the value of the
spooledRawBytesrecord component
-
spooledEncodedBytes
public long spooledEncodedBytes()Returns the value of thespooledEncodedBytesrecord component.- Returns:
- the value of the
spooledEncodedBytesrecord component
-