public abstract class ReductionDataReservation<A,E> extends Object
ReductionDataCollector to specify a piece of data it needs to export from the shard.| Modifier and Type | Field and Description |
|---|---|
protected A |
applier |
protected E |
extractor |
| Modifier | Constructor and Description |
|---|---|
protected |
ReductionDataReservation(A applier,
E extractor) |
| Modifier and Type | Method and Description |
|---|---|
abstract ReductionDataReader<A> |
createReadStream(DataInput input)
Generate a
ReductionDataReader that merges the set of data this reservation represents. |
abstract ReductionDataWriter<E> |
createWriteStream(DataOutput output)
Generate a
ReductionDataWriter that exports the set of data this reservation represents. |
public abstract ReductionDataReader<A> createReadStream(DataInput input)
ReductionDataReader that merges the set of data this reservation represents.input - the shard input streampublic abstract ReductionDataWriter<E> createWriteStream(DataOutput output)
ReductionDataWriter that exports the set of data this reservation represents.output - the shard output streamCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.