@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.
|
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)
Cast data from bytearray to datetime value.
|
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)
Cast data from bytearray to map value.
|
Tuple |
bytesToTuple(byte[] b,
ResourceSchema.ResourceFieldSchema fieldSchema)
Cast data from bytearray to tuple value.
|
java.lang.Boolean bytesToBoolean(byte[] b) throws java.io.IOException
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.java.lang.Long bytesToLong(byte[] b) throws java.io.IOException
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.java.lang.Float bytesToFloat(byte[] b) throws java.io.IOException
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.java.lang.Double bytesToDouble(byte[] b) throws java.io.IOException
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.org.joda.time.DateTime bytesToDateTime(byte[] b) throws java.io.IOException
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.java.lang.Integer bytesToInteger(byte[] b) throws java.io.IOException
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.java.lang.String bytesToCharArray(byte[] b) throws java.io.IOException
b
- bytearray to be cast.java.io.IOException
- if the value cannot be cast.java.util.Map<java.lang.String,java.lang.Object> bytesToMap(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws java.io.IOException
b
- bytearray to be cast.fieldSchema
- field schema for the output mapjava.io.IOException
- if the value cannot be cast.Tuple bytesToTuple(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws java.io.IOException
b
- bytearray to be cast.fieldSchema
- field schema for the output tuplejava.io.IOException
- if the value cannot be cast.DataBag bytesToBag(byte[] b, ResourceSchema.ResourceFieldSchema fieldSchema) throws java.io.IOException
b
- bytearray to be cast.fieldSchema
- field schema for the output bagjava.io.IOException
- if the value cannot be cast.java.math.BigInteger bytesToBigInteger(byte[] b) throws java.io.IOException
b
- bytearray to be cast.fieldSchema
- field schema for the output bagjava.io.IOException
- if the value cannot be cast.java.math.BigDecimal bytesToBigDecimal(byte[] b) throws java.io.IOException
b
- bytearray to be cast.fieldSchema
- field schema for the output bagjava.io.IOException
- if the value cannot be cast.Copyright © 2007-2017 The Apache Software Foundation