com.netflix.astyanax.Serializer<T> |
Serializes a type T from the given bytes, or vice a versa. In cassandra column names and column values (and starting with 0.7.0 row keys) are all byte[]. To allow type safe conversion in java and keep all conversion code in one place we define the Extractor interface. Implementors of the interface define type conversion according to their domains. A predefined set of common extractors can be found in the extractors package, for example StringSerializer.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Extract an object of type T from the bytes.
| |||||||||||
Create a ByteBuffer by first parsing the type out of a string
| |||||||||||
Return the byte buffer for the next value in sorted order for the
matching comparator type.
| |||||||||||
Extract bytes from the obj of type T
| |||||||||||
Extract an object of type T from the bytes.
Create a ByteBuffer by first parsing the type out of a string
Return the byte buffer for the next value in sorted order for the matching comparator type. This is used for paginating columns.
Extract bytes from the obj of type T