org.apache.accumulo.core.iterators
Class LongCombiner.VarLenEncoder
java.lang.Object
org.apache.accumulo.core.iterators.LongCombiner.VarLenEncoder
- All Implemented Interfaces:
- TypedValueCombiner.Encoder<Long>
- Enclosing class:
- LongCombiner
public static class LongCombiner.VarLenEncoder
- extends Object
- implements TypedValueCombiner.Encoder<Long>
An Encoder that uses a variable-length encoding for Longs. It uses WritableUtils.writeVLong and WritableUtils.readVLong for encoding and decoding.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongCombiner.VarLenEncoder
public LongCombiner.VarLenEncoder()
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 © 2012 The Apache Software Foundation. All Rights Reserved.