org.apache.pig
Interface StoreCaster
- All Superinterfaces:
- LoadCaster
- All Known Subinterfaces:
- LoadStoreCaster
- All Known Implementing Classes:
- AccumuloBinaryConverter, HBaseBinaryConverter, Utf8StorageConverter
@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface StoreCaster
- extends LoadCaster
An interface that provides methods for converting Pig internal types to byte[].
It is intended to be used by StoreFunc implementations.
- Since:
- Pig 0.8
Methods inherited from interface org.apache.pig.LoadCaster |
bytesToBag, bytesToBigDecimal, bytesToBigInteger, bytesToBoolean, bytesToCharArray, bytesToDateTime, bytesToDouble, bytesToFloat, bytesToInteger, bytesToLong, bytesToMap, bytesToTuple |
toBytes
byte[] toBytes(DataBag bag)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(String s)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(Double d)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(Float f)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(Integer i)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(Boolean b)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(Long l)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(org.joda.time.DateTime dt)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(Map<String,Object> m)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(Tuple t)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(DataByteArray a)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(BigInteger bi)
throws IOException
- Throws:
IOException
toBytes
byte[] toBytes(BigDecimal bd)
throws IOException
- Throws:
IOException
Copyright © 2007-2012 The Apache Software Foundation