|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoadCaster
Method Summary | |
---|---|
DataBag |
bytesToBag(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
Cast data from bytes to bag value. |
String |
bytesToCharArray(byte[] b)
Cast data from bytes to chararray value. |
Double |
bytesToDouble(byte[] b)
Cast data from bytes to double value. |
Float |
bytesToFloat(byte[] b)
Cast data from bytes to float value. |
Integer |
bytesToInteger(byte[] b)
Cast data from bytes to integer value. |
Long |
bytesToLong(byte[] b)
Cast data from bytes to long value. |
Map<String,Object> |
bytesToMap(byte[] b)
Cast data from bytes to map value. |
Tuple |
bytesToTuple(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
Cast data from bytes to tuple value. |
Method Detail |
---|
Long bytesToLong(byte[] b) throws IOException
b
- byte array to be cast.
IOException
- if the value cannot be cast.Float bytesToFloat(byte[] b) throws IOException
b
- byte array to be cast.
IOException
- if the value cannot be cast.Double bytesToDouble(byte[] b) throws IOException
b
- byte array to be cast.
IOException
- if the value cannot be cast.Integer bytesToInteger(byte[] b) throws IOException
b
- byte array to be cast.
IOException
- if the value cannot be cast.String bytesToCharArray(byte[] b) throws IOException
b
- byte array to be cast.
IOException
- if the value cannot be cast.Map<String,Object> bytesToMap(byte[] b) throws IOException
b
- byte array to be cast.
IOException
- if the value cannot be cast.Tuple bytesToTuple(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws IOException
b
- byte array to be cast.fieldSchema
- field schema for the output tuple
IOException
- if the value cannot be cast.DataBag bytesToBag(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws IOException
b
- byte array to be cast.fieldSchema
- field schema for the output bag
IOException
- if the value cannot be cast.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |