org.apache.pig.piggybank.storage
Class PigStorageSchema

java.lang.Object
  extended by org.apache.pig.LoadFunc
      extended by org.apache.pig.FileInputLoadFunc
          extended by org.apache.pig.builtin.PigStorage
              extended by org.apache.pig.piggybank.storage.PigStorageSchema
All Implemented Interfaces:
LoadMetadata, LoadPushDown, OrderedLoadFunc, OverwritableStoreFunc, StoreFuncInterface, StoreMetadata

Deprecated. Use PigStorage with a -schema option instead

@Deprecated
public class PigStorageSchema
extends PigStorage
implements LoadMetadata, StoreMetadata

This Load/Store Func reads/writes metafiles that allow the schema and aliases to be determined at load time, saving one from having to manually enter schemas for pig-generated datasets. It also creates a ".pig_headers" file that simply lists the delimited aliases. This is intended to make export to tools that can read files with header lines easier (just cat the header to your data).


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.pig.LoadPushDown
LoadPushDown.OperatorSet, LoadPushDown.RequiredField, LoadPushDown.RequiredFieldList, LoadPushDown.RequiredFieldResponse
 
Field Summary
 
Fields inherited from class org.apache.pig.builtin.PigStorage
caster, in, mLog, mRequiredColumns, schema, signature, writer
 
Constructor Summary
PigStorageSchema()
          Deprecated.  
PigStorageSchema(String delim)
          Deprecated.  
 
Method Summary
 
Methods inherited from class org.apache.pig.builtin.PigStorage
checkSchema, cleanupOnFailure, cleanupOnSuccess, cleanupOutput, equals, equals, getFeatures, getInputFormat, getNext, getOutputFormat, getPartitionKeys, getSchema, getStatistics, hashCode, prepareToRead, prepareToWrite, pushProjection, putNext, readField, relToAbsPathForStoreLocation, setLocation, setPartitionFilter, setStoreFuncUDFContextSignature, setStoreLocation, setUDFContextSignature, shouldOverwrite, storeSchema, storeStatistics
 
Methods inherited from class org.apache.pig.FileInputLoadFunc
getSplitComparable
 
Methods inherited from class org.apache.pig.LoadFunc
getAbsolutePath, getLoadCaster, getPathStrings, join, relativeToAbsolutePath, warn
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.pig.LoadMetadata
getPartitionKeys, getSchema, getStatistics, setPartitionFilter
 
Methods inherited from interface org.apache.pig.StoreMetadata
storeSchema, storeStatistics
 

Constructor Detail

PigStorageSchema

public PigStorageSchema()
Deprecated. 

PigStorageSchema

public PigStorageSchema(String delim)
Deprecated. 


Copyright © 2007-2012 The Apache Software Foundation