@Override public BigDecimal decode(InputStream inStream) throws IOException, CoderException { return decode(inStream, Context.NESTED); }
@Override public void encode(BigDecimal value, OutputStream outStream) throws IOException, CoderException { encode(value, outStream, Context.NESTED); }
@Override public Coder<KV<Integer, BigDecimal>> getAccumulatorCoder( CoderRegistry registry, Coder<T> inputCoder) { return KvCoder.of(BigEndianIntegerCoder.of(), BigDecimalCoder.of()); }
@Override public List<? extends Coder<?>> getCoderArguments() { return ImmutableList.<Coder<?>>builder() .add(BigDecimalCoder.of(), BigIntegerCoder.of()) .build(); } };