use of org.apache.flink.runtime.io.network.NettyShuffleEnvironmentBuilder in project flink by apache.
the class RecordWriterTest method createResultPartition.
public static ResultPartition createResultPartition(int bufferSize, int numSubpartitions) throws IOException {
NettyShuffleEnvironment env = new NettyShuffleEnvironmentBuilder().setBufferSize(bufferSize).build();
ResultPartition partition = createPartition(env, ResultPartitionType.PIPELINED, numSubpartitions);
partition.setup();
return partition;
}
use of org.apache.flink.runtime.io.network.NettyShuffleEnvironmentBuilder in project flink by apache.
the class PipelinedApproximateSubpartitionTest method createResultPartition.
private static BufferWritingResultPartition createResultPartition() throws IOException {
NettyShuffleEnvironment network = new NettyShuffleEnvironmentBuilder().setNumNetworkBuffers(10).setBufferSize(BUFFER_SIZE).build();
ResultPartition resultPartition = createPartition(network, NoOpFileChannelManager.INSTANCE, ResultPartitionType.PIPELINED_APPROXIMATE, 2);
resultPartition.setup();
return (BufferWritingResultPartition) resultPartition;
}
Aggregations