@InterfaceAudience.Public @InterfaceStability.Evolving public interface LoadCaster
Modifier and Type | Method and Description |
---|---|
DataBag |
bytesToBag(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
Cast data from bytearray to bag value.
|
BigDecimal |
bytesToBigDecimal(byte[] b)
Cast data from bytearray to BigDecimal value.
|
BigInteger |
bytesToBigInteger(byte[] b)
Cast data from bytearray to BigInteger value.
|
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)
Cast data from bytearray to datetime 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,
ResourceSchema.ResourceFieldSchema fieldSchema)
Cast data from bytearray to map value.
|
Tuple |
bytesToTuple(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
Cast data from bytearray to tuple value.
|
Boolean bytesToBoolean(byte[] b) throws IOException
b
- bytearray to be cast.IOException
- if the value cannot be cast.Long bytesToLong(byte[] b) throws IOException
b
- bytearray to be cast.IOException
- if the value cannot be cast.Float bytesToFloat(byte[] b) throws IOException
b
- bytearray to be cast.IOException
- if the value cannot be cast.Double bytesToDouble(byte[] b) throws IOException
b
- bytearray to be cast.IOException
- if the value cannot be cast.org.joda.time.DateTime bytesToDateTime(byte[] b) throws IOException
b
- bytearray to be cast.IOException
- if the value cannot be cast.Integer bytesToInteger(byte[] b) throws IOException
b
- bytearray to be cast.IOException
- if the value cannot be cast.String bytesToCharArray(byte[] b) throws IOException
b
- bytearray to be cast.IOException
- if the value cannot be cast.Map<String,Object> bytesToMap(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws IOException
b
- bytearray to be cast.fieldSchema
- field schema for the output mapIOException
- if the value cannot be cast.Tuple bytesToTuple(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws IOException
b
- bytearray to be cast.fieldSchema
- field schema for the output tupleIOException
- if the value cannot be cast.DataBag bytesToBag(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws IOException
b
- bytearray to be cast.fieldSchema
- field schema for the output bagIOException
- if the value cannot be cast.BigInteger bytesToBigInteger(byte[] b) throws IOException
b
- bytearray to be cast.fieldSchema
- field schema for the output bagIOException
- if the value cannot be cast.BigDecimal bytesToBigDecimal(byte[] b) throws IOException
b
- bytearray to be cast.fieldSchema
- field schema for the output bagIOException
- if the value cannot be cast.Copyright © 2007-2012 The Apache Software Foundation