org.apache.accumulo.core.iterators
Class LongCombiner.StringEncoder
java.lang.Object
org.apache.accumulo.core.iterators.LongCombiner.StringEncoder
- All Implemented Interfaces:
- TypedValueCombiner.Encoder<Long>
- Enclosing class:
- LongCombiner
public static class LongCombiner.StringEncoder
- extends Object
- implements TypedValueCombiner.Encoder<Long>
An Encoder that uses a String representation of Longs. It uses Long.toString and Long.parseLong for encoding and decoding.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongCombiner.StringEncoder
public LongCombiner.StringEncoder()
encode
public byte[] encode(Long v)
- Specified by:
encode
in interface TypedValueCombiner.Encoder<Long>
decode
public Long decode(byte[] b)
- Specified by:
decode
in interface TypedValueCombiner.Encoder<Long>
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.