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

Method Summary
 byte[] toBytes(DataBag bag)
           
 byte[] toBytes(DataByteArray a)
           
 byte[] toBytes(Double d)
           
 byte[] toBytes(Float f)
           
 byte[] toBytes(Integer i)
           
 byte[] toBytes(Long l)
           
 byte[] toBytes(Map<String,Object> m)
           
 byte[] toBytes(String s)
           
 byte[] toBytes(Tuple t)
           
 
Methods inherited from interface org.apache.pig.LoadCaster
bytesToBag, bytesToCharArray, bytesToDouble, bytesToFloat, bytesToInteger, bytesToLong, bytesToMap, bytesToTuple
 

Method Detail

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 © ${year} The Apache Software Foundation