@Override
 public Coder<List<T>> getAccumulatorCoder(CoderRegistry registry, Coder<T> inputCoder) {
   return ListCoder.of(inputCoder);
 }
 @Override
 public Coder<List<T>> getDefaultOutputCoder(CoderRegistry registry, Coder<T> inputCoder) {
   return ListCoder.of(inputCoder);
 }
Exemple #3
0
 public BoundedHeapCoder(int maximumSize, ComparatorT compareFn, Coder<T> elementCoder) {
   listCoder = ListCoder.of(elementCoder);
   this.compareFn = compareFn;
   this.maximumSize = maximumSize;
 }