|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.backend.hadoop.hbase.HBaseBinaryConverter
public class HBaseBinaryConverter
Constructor Summary | |
---|---|
HBaseBinaryConverter()
|
Method Summary | |
---|---|
DataBag |
bytesToBag(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
NOT IMPLEMENTED |
String |
bytesToCharArray(byte[] b)
Cast data from bytearray to chararray value. |
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)
Cast data from bytearray to map value. |
Map<String,Object> |
bytesToMap(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
NOT IMPLEMENTED |
Tuple |
bytesToTuple(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
NOT IMPLEMENTED |
byte[] |
toBytes(DataBag bag)
NOT IMPLEMENTED |
byte[] |
toBytes(DataByteArray a)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HBaseBinaryConverter()
Method Detail |
---|
public String bytesToCharArray(byte[] b) throws IOException
LoadCaster
bytesToCharArray
in interface LoadCaster
b
- bytearray to be cast.
IOException
- if the value cannot be cast.public Double bytesToDouble(byte[] b) throws IOException
LoadCaster
bytesToDouble
in interface LoadCaster
b
- bytearray to be cast.
IOException
- if the value cannot be cast.public Float bytesToFloat(byte[] b) throws IOException
LoadCaster
bytesToFloat
in interface LoadCaster
b
- bytearray to be cast.
IOException
- if the value cannot be cast.public Integer bytesToInteger(byte[] b) throws IOException
LoadCaster
bytesToInteger
in interface LoadCaster
b
- bytearray to be cast.
IOException
- if the value cannot be cast.public Long bytesToLong(byte[] b) throws IOException
LoadCaster
bytesToLong
in interface LoadCaster
b
- bytearray to be cast.
IOException
- if the value cannot be cast.public Map<String,Object> bytesToMap(byte[] b) throws IOException
LoadCaster
bytesToMap
in interface LoadCaster
b
- bytearray to be cast.
IOException
- if the value cannot be cast.public Map<String,Object> bytesToMap(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws IOException
bytesToMap
in interface LoadCaster
b
- bytearray to be cast.fieldSchema
- field schema for the output map
IOException
- if the value cannot be cast.public Tuple bytesToTuple(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws IOException
bytesToTuple
in interface LoadCaster
b
- bytearray to be cast.fieldSchema
- field schema for the output tuple
IOException
- if the value cannot be cast.public DataBag bytesToBag(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws IOException
bytesToBag
in interface LoadCaster
b
- bytearray to be cast.fieldSchema
- field schema for the output bag
IOException
- if the value cannot be cast.public byte[] toBytes(DataBag bag) throws IOException
toBytes
in interface StoreCaster
IOException
public byte[] toBytes(String s) throws IOException
toBytes
in interface StoreCaster
IOException
public byte[] toBytes(Double d) throws IOException
toBytes
in interface StoreCaster
IOException
public byte[] toBytes(Float f) throws IOException
toBytes
in interface StoreCaster
IOException
public byte[] toBytes(Integer i) throws IOException
toBytes
in interface StoreCaster
IOException
public byte[] toBytes(Long l) throws IOException
toBytes
in interface StoreCaster
IOException
public byte[] toBytes(Map<String,Object> m) throws IOException
toBytes
in interface StoreCaster
IOException
public byte[] toBytes(Tuple t) throws IOException
toBytes
in interface StoreCaster
IOException
public byte[] toBytes(DataByteArray a) throws IOException
toBytes
in interface StoreCaster
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |