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

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


Constructor Summary
LongCombiner.StringEncoder()
           
 
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.StringEncoder

public LongCombiner.StringEncoder()
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 © 2014 The Apache Software Foundation. All Rights Reserved.