Package io.trino.operator.output
Class DefaultPagePartitioner
java.lang.Object
io.trino.operator.output.DefaultPagePartitioner
- All Implemented Interfaces:
PagePartitioner
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPagePartitioner(PartitionFunction partitionFunction, List<Integer> partitionChannels, List<Optional<NullableValue>> partitionConstants, boolean replicatesAnyRow, OptionalInt nullChannel, OutputBuffer outputBuffer, PagesSerdeFactory serdeFactory, List<Type> sourceTypes, io.airlift.units.DataSize maxMemory, OperatorContext operatorContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidflush(boolean force) longThis method can be expensive for complex types.longcom.google.common.util.concurrent.ListenableFuture<Void>isFull()voidpartitionPage(Page page)
-
Constructor Details
-
DefaultPagePartitioner
public DefaultPagePartitioner(PartitionFunction partitionFunction, List<Integer> partitionChannels, List<Optional<NullableValue>> partitionConstants, boolean replicatesAnyRow, OptionalInt nullChannel, OutputBuffer outputBuffer, PagesSerdeFactory serdeFactory, List<Type> sourceTypes, io.airlift.units.DataSize maxMemory, OperatorContext operatorContext)
-
-
Method Details
-
isFull
- Specified by:
isFullin interfacePagePartitioner
-
getSizeInBytes
public long getSizeInBytes()- Specified by:
getSizeInBytesin interfacePagePartitioner
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()This method can be expensive for complex types.- Specified by:
getRetainedSizeInBytesin interfacePagePartitioner
-
getOperatorInfoSupplier
- Specified by:
getOperatorInfoSupplierin interfacePagePartitioner
-
partitionPage
- Specified by:
partitionPagein interfacePagePartitioner
-
flush
public void flush(boolean force) - Specified by:
flushin interfacePagePartitioner
-