org.apache.accumulo.core.client.lexicoder
Class IntegerLexicoder
java.lang.Object
org.apache.accumulo.core.client.lexicoder.IntegerLexicoder
- All Implemented Interfaces:
- Encoder<Integer>, Lexicoder<Integer>, TypedValueCombiner.Encoder<Integer>
public class IntegerLexicoder
- extends Object
- implements Lexicoder<Integer>
A lexicoder for signed integers. The encoding sorts Integer.MIN_VALUE first and Integer.MAX_VALUE last. The encoding sorts -2 before -1. It corresponds to
the sort order of Integer.
- Since:
- 1.6.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerLexicoder
public IntegerLexicoder()
encode
public byte[] encode(Integer i)
- Specified by:
encode
in interface TypedValueCombiner.Encoder<Integer>
decode
public Integer decode(byte[] data)
- Specified by:
decode
in interface TypedValueCombiner.Encoder<Integer>
Copyright © 2015 Apache Accumulo Project. All rights reserved.