class DefaultSchedulingResultPartition implements SchedulingResultPartition {

	@Override
	public ResultPartitionState getState() {
		switch (producer.getState()) {
			case RUNNING:
				return PRODUCING;
			case FINISHED:
				return DONE;
			default:
				return EMPTY;
		}
	}

	  DefaultSchedulingResultPartition(
			IntermediateResultPartitionID partitionId,
			IntermediateDataSetID intermediateDataSetId,
			ResultPartitionType partitionType);

}