O
- type of output values formally (but not actually) accepted by this outputR
- type of result formally returned accepted by this output (though always return null)public class NoOutput<O,R> extends Output<O,R>
Output
that throws an exception whenever an attempt is made to
write a value.Constructor and Description |
---|
NoOutput() |
Modifier and Type | Method and Description |
---|---|
List<? extends OutputWriter<O>> |
createWriters(int numShards)
Returns a list of writers, one for each shard, for this output.
|
R |
finish(Collection<? extends OutputWriter<O>> writers)
Returns
null . |
getContext, setContext
public List<? extends OutputWriter<O>> createWriters(int numShards)
Output
createWriters
in class Output<O,R>
numShards
- The number of shards which should be equal to the number of
OutputWriter
s returned.public R finish(Collection<? extends OutputWriter<O>> writers)
null
.Copyright © 2015 Google. All rights reserved.