public class StringReservation extends ReductionDataReservation<Consumer<String>,Supplier<String>>
applier, extractor
Constructor and Description |
---|
StringReservation(Consumer<String> applier,
Supplier<String> extractor) |
Modifier and Type | Method and Description |
---|---|
StringDataReader |
createReadStream(DataInput input)
Generate a
ReductionDataReader that merges the set of data this reservation represents. |
StringDataWriter |
createWriteStream(DataOutput output)
Generate a
ReductionDataWriter that exports the set of data this reservation represents. |
public StringDataReader createReadStream(DataInput input)
ReductionDataReservation
ReductionDataReader
that merges the set of data this reservation represents.createReadStream
in class ReductionDataReservation<Consumer<String>,Supplier<String>>
input
- the shard input streampublic StringDataWriter createWriteStream(DataOutput output)
ReductionDataReservation
ReductionDataWriter
that exports the set of data this reservation represents.createWriteStream
in class ReductionDataReservation<Consumer<String>,Supplier<String>>
output
- the shard output streamCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.