109110111112113114115116
@Override public BigDecimal decode(byte[] b) throws ValueFormatException { try { return new BigDecimal(new String(b, Constants.UTF8)); } catch (NumberFormatException nfe) { throw new ValueFormatException(nfe); } }
167168169170171172173174
for (int i = 0; i < len; i++) { vl.add(read(dis)); } return vl; } catch (IOException e) { throw new ValueFormatException(e); } }
220221222223224225226227228229
la.add(0l); else try { la.add(Long.parseLong(s)); } catch (NumberFormatException nfe) { throw new ValueFormatException(nfe); } } return la; }
161162163164165166167168
214215216217218219220221222223
93949596979899100
if (b.length == 0) return null; try { return TermWeight.Info.parseFrom(b); } catch (InvalidProtocolBufferException e) { throw new ValueFormatException("Value passed to aggregator was not of type TermWeight.Info"); } }
8586878889909192
if (b.length == 0) return null; try { return Uid.List.parseFrom(b); } catch (InvalidProtocolBufferException e) { throw new ValueFormatException("Value passed to aggregator was not of type Uid.List"); } }
166167168169170171172173
219220221222223224225226227228