org.apache.pig
Interface StoreCaster
- All Superinterfaces:
- LoadCaster
- All Known Subinterfaces:
- LoadStoreCaster
- All Known Implementing Classes:
- 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
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(Long l)
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
Copyright © 2012 The Apache Software Foundation