public final class

IntegerSerializer

extends AbstractSerializer<T>
java.lang.Object
   ↳ com.netflix.astyanax.serializers.AbstractSerializer<T>
     ↳ com.netflix.astyanax.serializers.IntegerSerializer

Class Overview

Converts bytes to Integer and vice versa

Summary

Public Constructors
IntegerSerializer()
Public Methods
Integer fromByteBuffer(ByteBuffer byteBuffer)
Extract an object of type T from the bytes.
Integer fromBytes(byte[] bytes)
ByteBuffer fromString(String str)
Create a ByteBuffer by first parsing the type out of a string
static IntegerSerializer get()
ByteBuffer getNext(ByteBuffer byteBuffer)
Return the byte buffer for the next value in sorted order for the matching comparator type.
String getString(ByteBuffer byteBuffer)
ByteBuffer toByteBuffer(Integer obj)
Extract bytes from the obj of type T
[Expand]
Inherited Methods
From class com.netflix.astyanax.serializers.AbstractSerializer
From class java.lang.Object
From interface com.netflix.astyanax.Serializer

Public Constructors

public IntegerSerializer ()

Public Methods

public Integer fromByteBuffer (ByteBuffer byteBuffer)

Extract an object of type T from the bytes.

public Integer fromBytes (byte[] bytes)

public ByteBuffer fromString (String str)

Create a ByteBuffer by first parsing the type out of a string

public static IntegerSerializer get ()

public ByteBuffer getNext (ByteBuffer byteBuffer)

Return the byte buffer for the next value in sorted order for the matching comparator type. This is used for paginating columns.

public String getString (ByteBuffer byteBuffer)

public ByteBuffer toByteBuffer (Integer obj)

Extract bytes from the obj of type T