class ResultPartition implements ResultPartitionWriter {

	@Override
	public void finish() throws IOException {
		checkInProduceState();

		isFinished = true;
	}

	public  ResultPartition(
		String owningTaskName,
		int partitionIndex,
		ResultPartitionID partitionId,
		ResultPartitionType partitionType,
		int numSubpartitions,
		int numTargetKeyGroups,
		ResultPartitionManager partitionManager,
		@Nullable BufferCompressor bufferCompressor,
		SupplierWithException<BufferPool, IOException> bufferPoolFactory);

}