Package io.trino.spi.connector
Record Class WriterScalingOptions
java.lang.Object
java.lang.Record
io.trino.spi.connector.WriterScalingOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WriterScalingOptionsstatic final WriterScalingOptions -
Constructor Summary
ConstructorsConstructorDescriptionWriterScalingOptions(boolean writerTasksScalingEnabled, boolean perTaskWriterScalingEnabled) WriterScalingOptions(boolean isWriterTasksScalingEnabled, boolean isPerTaskWriterScalingEnabled, Optional<Integer> perTaskMaxScaledWriterCount) Creates an instance of aWriterScalingOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisPerTaskWriterScalingEnabledrecord component.booleanReturns the value of theisWriterTasksScalingEnabledrecord component.Returns the value of theperTaskMaxScaledWriterCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DISABLED
-
ENABLED
-
-
Constructor Details
-
WriterScalingOptions
public WriterScalingOptions(boolean writerTasksScalingEnabled, boolean perTaskWriterScalingEnabled) -
WriterScalingOptions
public WriterScalingOptions(boolean isWriterTasksScalingEnabled, boolean isPerTaskWriterScalingEnabled, Optional<Integer> perTaskMaxScaledWriterCount) Creates an instance of aWriterScalingOptionsrecord class.- Parameters:
isWriterTasksScalingEnabled- the value for theisWriterTasksScalingEnabledrecord componentisPerTaskWriterScalingEnabled- the value for theisPerTaskWriterScalingEnabledrecord componentperTaskMaxScaledWriterCount- the value for theperTaskMaxScaledWriterCountrecord component
-
-
Method Details
-
isWriterTasksScalingEnabled
public boolean isWriterTasksScalingEnabled()Returns the value of theisWriterTasksScalingEnabledrecord component.- Returns:
- the value of the
isWriterTasksScalingEnabledrecord component
-
isPerTaskWriterScalingEnabled
public boolean isPerTaskWriterScalingEnabled()Returns the value of theisPerTaskWriterScalingEnabledrecord component.- Returns:
- the value of the
isPerTaskWriterScalingEnabledrecord component
-
perTaskMaxScaledWriterCount
Returns the value of theperTaskMaxScaledWriterCountrecord component.- Returns:
- the value of the
perTaskMaxScaledWriterCountrecord component
-
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. -
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. -
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 '=='.
-