org.apache.pig
Interface StoreMetadata

All Known Implementing Classes:
JsonMetadata, PigStorageSchema, TableStorer

public interface StoreMetadata

This interface defines how to write metadata related to data to be loaded. If a given store function does not implement this interface, it will be assumed that it is unable to record metadata about the associated data.


Method Summary
 void storeSchema(ResourceSchema schema, String location, org.apache.hadoop.mapreduce.Job job)
          Store schema of the data being written
 void storeStatistics(ResourceStatistics stats, String location, org.apache.hadoop.mapreduce.Job job)
          Store statistics about the data being written.
 

Method Detail

storeStatistics

void storeStatistics(ResourceStatistics stats,
                     String location,
                     org.apache.hadoop.mapreduce.Job job)
                     throws IOException
Store statistics about the data being written.

Parameters:
job - The Job object - this should be used only to obtain cluster properties through JobContext.getConfiguration() and not to set/query any runtime job information.
Throws:
IOException

storeSchema

void storeSchema(ResourceSchema schema,
                 String location,
                 org.apache.hadoop.mapreduce.Job job)
                 throws IOException
Store schema of the data being written

Parameters:
job - The Job object - this should be used only to obtain cluster properties through JobContext.getConfiguration() and not to set/query any runtime job information.
Throws:
IOException


Copyright © ${year} The Apache Software Foundation