This project has retired. For details please refer to its Attic page.
Encoder (Apache Gora 0.2 API)

org.apache.gora.accumulo.encoders
Interface Encoder

All Known Implementing Classes:
BinaryEncoder, HexEncoder, SignedBinaryEncoder

public interface Encoder


Method Summary
 boolean decodeBoolean(byte[] val)
           
 byte decodeByte(byte[] a)
           
 double decodeDouble(byte[] a)
           
 float decodeFloat(byte[] a)
           
 int decodeInt(byte[] a)
           
 long decodeLong(byte[] a)
           
 short decodeShort(byte[] a)
           
 byte[] encodeBoolean(boolean b)
           
 byte[] encodeBoolean(boolean b, byte[] ret)
           
 byte[] encodeByte(byte b)
           
 byte[] encodeByte(byte b, byte[] ret)
           
 byte[] encodeDouble(double d)
           
 byte[] encodeDouble(double d, byte[] ret)
           
 byte[] encodeFloat(float d)
           
 byte[] encodeFloat(float f, byte[] ret)
           
 byte[] encodeInt(int i)
           
 byte[] encodeInt(int i, byte[] ret)
           
 byte[] encodeLong(long l)
           
 byte[] encodeLong(long l, byte[] ret)
           
 byte[] encodeShort(short s)
           
 byte[] encodeShort(short s, byte[] ret)
           
 byte[] followingKey(int size, byte[] per)
           
 byte[] lastPossibleKey(int size, byte[] er)
           
 

Method Detail

encodeByte

byte[] encodeByte(byte b,
                  byte[] ret)

encodeByte

byte[] encodeByte(byte b)

decodeByte

byte decodeByte(byte[] a)

encodeShort

byte[] encodeShort(short s)

encodeShort

byte[] encodeShort(short s,
                   byte[] ret)

decodeShort

short decodeShort(byte[] a)

encodeInt

byte[] encodeInt(int i)

encodeInt

byte[] encodeInt(int i,
                 byte[] ret)

decodeInt

int decodeInt(byte[] a)

encodeLong

byte[] encodeLong(long l)

encodeLong

byte[] encodeLong(long l,
                  byte[] ret)

decodeLong

long decodeLong(byte[] a)

encodeDouble

byte[] encodeDouble(double d)

encodeDouble

byte[] encodeDouble(double d,
                    byte[] ret)

decodeDouble

double decodeDouble(byte[] a)

encodeFloat

byte[] encodeFloat(float d)

encodeFloat

byte[] encodeFloat(float f,
                   byte[] ret)

decodeFloat

float decodeFloat(byte[] a)

decodeBoolean

boolean decodeBoolean(byte[] val)

encodeBoolean

byte[] encodeBoolean(boolean b)

encodeBoolean

byte[] encodeBoolean(boolean b,
                     byte[] ret)

followingKey

byte[] followingKey(int size,
                    byte[] per)

lastPossibleKey

byte[] lastPossibleKey(int size,
                       byte[] er)


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.