public class StoreFuncMetadataWrapper extends StoreFuncWrapper implements StoreMetadata
Modifier | Constructor and Description |
---|---|
protected |
StoreFuncMetadataWrapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
setStoreFunc(StoreMetadata storeFunc)
The wrapped StoreMetadata object must be set before method calls are made on this object.
|
void |
storeSchema(ResourceSchema resourceSchema,
String location,
org.apache.hadoop.mapreduce.Job job)
Store schema of the data being written
|
void |
storeStatistics(ResourceStatistics resourceStatistics,
String location,
org.apache.hadoop.mapreduce.Job job)
Store statistics about the data being written.
|
checkSchema, cleanupOnFailure, cleanupOnSuccess, getMethodName, getOutputFormat, prepareToWrite, putNext, relToAbsPathForStoreLocation, setStoreFunc, setStoreFuncUDFContextSignature, setStoreLocation
protected void setStoreFunc(StoreMetadata storeFunc)
storeFunc
- public void storeStatistics(ResourceStatistics resourceStatistics, String location, org.apache.hadoop.mapreduce.Job job) throws IOException
StoreMetadata
storeStatistics
in interface StoreMetadata
resourceStatistics
- statistics to be recordedlocation
- Location as returned by
LoadFunc.relativeToAbsolutePath(String, org.apache.hadoop.fs.Path)
job
- The Job
object - this should be used only to obtain
cluster properties through JobContextImpl.getConfiguration()
and not to set/query
any runtime job information.IOException
public void storeSchema(ResourceSchema resourceSchema, String location, org.apache.hadoop.mapreduce.Job job) throws IOException
StoreMetadata
storeSchema
in interface StoreMetadata
resourceSchema
- Schema to be recordedlocation
- Location as returned by
LoadFunc.relativeToAbsolutePath(String, org.apache.hadoop.fs.Path)
job
- The Job
object - this should be used only to obtain
cluster properties through JobContextImpl.getConfiguration()
and not to set/query
any runtime job information.IOException
Copyright © 2007-2012 The Apache Software Foundation