public class AccumuloBinaryConverter extends java.lang.Object implements LoadStoreCaster
Constructor and Description |
---|
AccumuloBinaryConverter() |
Modifier and Type | Method and Description |
---|---|
DataBag |
bytesToBag(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
NOT IMPLEMENTED
|
java.math.BigDecimal |
bytesToBigDecimal(byte[] b)
Cast data from bytearray to BigDecimal value.
|
java.math.BigInteger |
bytesToBigInteger(byte[] b)
Cast data from bytearray to BigInteger value.
|
java.lang.Boolean |
bytesToBoolean(byte[] b)
Cast data from bytearray to boolean value.
|
java.lang.String |
bytesToCharArray(byte[] b)
Cast data from bytearray to chararray value.
|
org.joda.time.DateTime |
bytesToDateTime(byte[] b)
NOT IMPLEMENTED
|
java.lang.Double |
bytesToDouble(byte[] b)
Cast data from bytearray to double value.
|
java.lang.Float |
bytesToFloat(byte[] b)
Cast data from bytearray to float value.
|
java.lang.Integer |
bytesToInteger(byte[] b)
Cast data from bytearray to integer value.
|
java.lang.Long |
bytesToLong(byte[] b)
Cast data from bytearray to long value.
|
java.util.Map<java.lang.String,java.lang.Object> |
bytesToMap(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
NOT IMPLEMENTED
|
Tuple |
bytesToTuple(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
NOT IMPLEMENTED
|
byte[] |
toBytes(java.math.BigDecimal bd)
Not implemented!
|
byte[] |
toBytes(java.math.BigInteger bi) |
byte[] |
toBytes(java.lang.Boolean b) |
byte[] |
toBytes(DataBag bag)
NOT IMPLEMENTED
|
byte[] |
toBytes(DataByteArray a) |
byte[] |
toBytes(org.joda.time.DateTime dt) |
byte[] |
toBytes(java.lang.Double d) |
byte[] |
toBytes(java.lang.Float f) |
byte[] |
toBytes(java.lang.Integer val) |
byte[] |
toBytes(java.lang.Long val) |
byte[] |
toBytes(java.util.Map<java.lang.String,java.lang.Object> m)
NOT IMPLEMENTED
|
byte[] |
toBytes(java.lang.String s) |
byte[] |
toBytes(Tuple t)
NOT IMPLEMENTED
|
public DataBag bytesToBag(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws java.io.IOException
bytesToBag
in interface LoadCaster
b
- bytearray to be cast.fieldSchema
- field schema for the output bagjava.io.IOException
- if the value cannot be cast.public java.math.BigDecimal bytesToBigDecimal(byte[] b) throws java.io.IOException
LoadCaster
bytesToBigDecimal
in interface LoadCaster
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.public java.math.BigInteger bytesToBigInteger(byte[] b) throws java.io.IOException
LoadCaster
bytesToBigInteger
in interface LoadCaster
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.public java.lang.Boolean bytesToBoolean(byte[] b) throws java.io.IOException
LoadCaster
bytesToBoolean
in interface LoadCaster
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.public java.lang.String bytesToCharArray(byte[] b) throws java.io.IOException
LoadCaster
bytesToCharArray
in interface LoadCaster
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.public org.joda.time.DateTime bytesToDateTime(byte[] b) throws java.io.IOException
bytesToDateTime
in interface LoadCaster
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.public java.lang.Double bytesToDouble(byte[] b) throws java.io.IOException
LoadCaster
bytesToDouble
in interface LoadCaster
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.public java.lang.Float bytesToFloat(byte[] b) throws java.io.IOException
LoadCaster
bytesToFloat
in interface LoadCaster
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.public java.lang.Integer bytesToInteger(byte[] b) throws java.io.IOException
LoadCaster
bytesToInteger
in interface LoadCaster
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.public java.lang.Long bytesToLong(byte[] b) throws java.io.IOException
LoadCaster
bytesToLong
in interface LoadCaster
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.public java.util.Map<java.lang.String,java.lang.Object> bytesToMap(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws java.io.IOException
bytesToMap
in interface LoadCaster
b
- bytearray to be cast.fieldSchema
- field schema for the output mapjava.io.IOException
- if the value cannot be cast.public Tuple bytesToTuple(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws java.io.IOException
bytesToTuple
in interface LoadCaster
b
- bytearray to be cast.fieldSchema
- field schema for the output tuplejava.io.IOException
- if the value cannot be cast.public byte[] toBytes(java.math.BigDecimal bd) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(java.math.BigInteger bi) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(java.lang.Boolean b) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(DataBag bag) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(DataByteArray a) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(org.joda.time.DateTime dt) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(java.lang.Double d) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(java.lang.Float f) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(java.lang.Integer val) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(java.lang.Long val) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(java.util.Map<java.lang.String,java.lang.Object> m) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(java.lang.String s) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
public byte[] toBytes(Tuple t) throws java.io.IOException
toBytes
in interface StoreCaster
java.io.IOException
Copyright © 2007-2012 The Apache Software Foundation