org.apache.accumulo.core.iterators
Class LongCombiner.VarLenEncoder

java.lang.Object
  extended by 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.


Constructor Summary
LongCombiner.VarLenEncoder()
           
 
Method Summary
 Long decode(byte[] b)
           
 byte[] encode(Long v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongCombiner.VarLenEncoder

public LongCombiner.VarLenEncoder()
Method Detail

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.