public class HBaseBinaryConverter extends Object implements LoadStoreCaster
| Constructor and Description |
|---|
HBaseBinaryConverter() |
| Modifier and Type | Method and Description |
|---|---|
DataBag |
bytesToBag(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
NOT IMPLEMENTED
|
BigDecimal |
bytesToBigDecimal(byte[] b)
Not implemented!
|
BigInteger |
bytesToBigInteger(byte[] b)
Not implemented!
|
Boolean |
bytesToBoolean(byte[] b)
Cast data from bytearray to boolean value.
|
String |
bytesToCharArray(byte[] b)
Cast data from bytearray to chararray value.
|
org.joda.time.DateTime |
bytesToDateTime(byte[] b)
NOT IMPLEMENTED
|
Double |
bytesToDouble(byte[] b)
Cast data from bytearray to double value.
|
Float |
bytesToFloat(byte[] b)
Cast data from bytearray to float value.
|
Integer |
bytesToInteger(byte[] b)
Cast data from bytearray to integer value.
|
Long |
bytesToLong(byte[] b)
Cast data from bytearray to long value.
|
Map<String,Object> |
bytesToMap(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
Cast data from bytearray to map value.
|
Tuple |
bytesToTuple(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
NOT IMPLEMENTED
|
byte[] |
toBytes(BigDecimal bd)
Not implemented!
|
byte[] |
toBytes(BigInteger bi)
Not implemented!
|
byte[] |
toBytes(Boolean b) |
byte[] |
toBytes(DataBag bag)
NOT IMPLEMENTED
|
byte[] |
toBytes(DataByteArray a) |
byte[] |
toBytes(org.joda.time.DateTime dt)
NOT IMPLEMENTED
|
byte[] |
toBytes(Double d) |
byte[] |
toBytes(Float f) |
byte[] |
toBytes(Integer i) |
byte[] |
toBytes(Long l) |
byte[] |
toBytes(Map<String,Object> m)
NOT IMPLEMENTED
|
byte[] |
toBytes(String s) |
byte[] |
toBytes(Tuple t)
NOT IMPLEMENTED
|
public String bytesToCharArray(byte[] b) throws IOException
LoadCasterbytesToCharArray in interface LoadCasterb - bytearray to be cast.IOException - if the value cannot be cast.public Double bytesToDouble(byte[] b) throws IOException
LoadCasterbytesToDouble in interface LoadCasterb - bytearray to be cast.IOException - if the value cannot be cast.public Float bytesToFloat(byte[] b) throws IOException
LoadCasterbytesToFloat in interface LoadCasterb - bytearray to be cast.IOException - if the value cannot be cast.public Integer bytesToInteger(byte[] b) throws IOException
LoadCasterbytesToInteger in interface LoadCasterb - bytearray to be cast.IOException - if the value cannot be cast.public Long bytesToLong(byte[] b) throws IOException
LoadCasterbytesToLong in interface LoadCasterb - bytearray to be cast.IOException - if the value cannot be cast.public Boolean bytesToBoolean(byte[] b) throws IOException
LoadCasterbytesToBoolean in interface LoadCasterb - bytearray to be cast.IOException - if the value cannot be cast.public org.joda.time.DateTime bytesToDateTime(byte[] b)
throws IOException
bytesToDateTime in interface LoadCasterb - bytearray to be cast.IOException - if the value cannot be cast.public Map<String,Object> bytesToMap(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws IOException
LoadCasterbytesToMap in interface LoadCasterb - bytearray to be cast.fieldSchema - field schema for the output mapIOException - if the value cannot be cast.public Tuple bytesToTuple(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws IOException
bytesToTuple in interface LoadCasterb - bytearray to be cast.fieldSchema - field schema for the output tupleIOException - if the value cannot be cast.public DataBag bytesToBag(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws IOException
bytesToBag in interface LoadCasterb - bytearray to be cast.fieldSchema - field schema for the output bagIOException - if the value cannot be cast.public byte[] toBytes(DataBag bag) throws IOException
toBytes in interface StoreCasterIOExceptionpublic byte[] toBytes(String s) throws IOException
toBytes in interface StoreCasterIOExceptionpublic byte[] toBytes(Double d) throws IOException
toBytes in interface StoreCasterIOExceptionpublic byte[] toBytes(Float f) throws IOException
toBytes in interface StoreCasterIOExceptionpublic byte[] toBytes(Integer i) throws IOException
toBytes in interface StoreCasterIOExceptionpublic byte[] toBytes(Long l) throws IOException
toBytes in interface StoreCasterIOExceptionpublic byte[] toBytes(Boolean b) throws IOException
toBytes in interface StoreCasterIOExceptionpublic byte[] toBytes(org.joda.time.DateTime dt)
throws IOException
toBytes in interface StoreCasterIOExceptionpublic byte[] toBytes(Map<String,Object> m) throws IOException
toBytes in interface StoreCasterIOExceptionpublic byte[] toBytes(Tuple t) throws IOException
toBytes in interface StoreCasterIOExceptionpublic byte[] toBytes(DataByteArray a) throws IOException
toBytes in interface StoreCasterIOExceptionpublic BigInteger bytesToBigInteger(byte[] b) throws IOException
bytesToBigInteger in interface LoadCasterb - bytearray to be cast.IOException - if the value cannot be cast.public BigDecimal bytesToBigDecimal(byte[] b) throws IOException
bytesToBigDecimal in interface LoadCasterb - bytearray to be cast.IOException - if the value cannot be cast.public byte[] toBytes(BigInteger bi) throws IOException
toBytes in interface StoreCasterIOExceptionpublic byte[] toBytes(BigDecimal bd) throws IOException
toBytes in interface StoreCasterIOExceptionCopyright © 2007-2017 The Apache Software Foundation