Class PigStorageSchema

  extended by org.apache.pig.LoadFunc
      extended by org.apache.pig.FileInputLoadFunc
          extended by org.apache.pig.builtin.PigStorage
              extended by
All Implemented Interfaces:
LoadMetadata, LoadPushDown, OrderedLoadFunc, OverwritableStoreFunc, StoreFuncInterface, StoreMetadata

Deprecated. Use PigStorage with a -schema option instead

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(String delim)
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
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


public PigStorageSchema()


public PigStorageSchema(String delim)

Copyright © 2007-2012 The Apache Software Foundation