Package io.trino.operator.output
Class DefaultPagePartitioner
- java.lang.Object
-
- io.trino.operator.output.DefaultPagePartitioner
-
- All Implemented Interfaces:
PagePartitioner
public class DefaultPagePartitioner extends Object implements PagePartitioner
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush(boolean force)Supplier<PartitionedOutputOperator.PartitionedOutputInfo>getOperatorInfoSupplier()longgetRetainedSizeInBytes()This method can be expensive for complex types.longgetSizeInBytes()com.google.common.util.concurrent.ListenableFuture<Void>isFull()voidpartitionPage(Page page)
-
-
-
Constructor Detail
-
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 Detail
-
isFull
public com.google.common.util.concurrent.ListenableFuture<Void> 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
public Supplier<PartitionedOutputOperator.PartitionedOutputInfo> getOperatorInfoSupplier()
- Specified by:
getOperatorInfoSupplierin interfacePagePartitioner
-
partitionPage
public void partitionPage(Page page)
- Specified by:
partitionPagein interfacePagePartitioner
-
flush
public void flush(boolean force)
- Specified by:
flushin interfacePagePartitioner
-
-