org.apache.accumulo.core.client.lexicoder
Class DoubleLexicoder

java.lang.Object
  extended by org.apache.accumulo.core.client.lexicoder.DoubleLexicoder
All Implemented Interfaces:
Encoder<Double>, Lexicoder<Double>, TypedValueCombiner.Encoder<Double>

public class DoubleLexicoder
extends Object
implements Lexicoder<Double>

A lexicoder for preserving the native Java sort order of Double values.

Since:
1.6.0

Constructor Summary
DoubleLexicoder()
           
 
Method Summary
 Double decode(byte[] data)
           
 byte[] encode(Double d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleLexicoder

public DoubleLexicoder()
Method Detail

encode

public byte[] encode(Double d)
Specified by:
encode in interface TypedValueCombiner.Encoder<Double>

decode

public Double decode(byte[] data)
Specified by:
decode in interface TypedValueCombiner.Encoder<Double>


Copyright © 2015 Apache Accumulo Project. All rights reserved.