public class ParquetStorer extends StoreFuncMetadataWrapper implements StoreResources
Constructor and Description |
---|
ParquetStorer() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getCacheFiles()
Allow a StoreFunc to specify a list of files it would like placed in the distributed
cache.
|
java.util.List<java.lang.String> |
getShipFiles()
Allow a StoreFunc to specify a list of files located locally and would like to ship to backend
(through distributed cache).
|
void |
setStoreLocation(java.lang.String location,
org.apache.hadoop.mapreduce.Job job)
Communicate to the storer the location where the data needs to be stored.
|
setStoreFunc, storeSchema, storeStatistics
checkSchema, cleanupOnFailure, cleanupOnSuccess, getMethodName, getOutputFormat, prepareToWrite, putNext, relToAbsPathForStoreLocation, setStoreFunc, setStoreFuncUDFContextSignature
public ParquetStorer() throws FrontendException
FrontendException
public void setStoreLocation(java.lang.String location, org.apache.hadoop.mapreduce.Job job) throws java.io.IOException
StoreFuncInterface
here is the
return value of StoreFuncInterface.relToAbsPathForStoreLocation(String, Path)
This method will be called in the frontend and backend multiple times. Implementations
should bear in mind that this method is called multiple times and should
ensure there are no inconsistent side effects due to the multiple calls.
StoreFuncInterface.checkSchema(ResourceSchema)
will be called before any call to
StoreFuncInterface.setStoreLocation(String, Job)
.setStoreLocation
in interface StoreFuncInterface
setStoreLocation
in class StoreFuncWrapper
location
- Location returned by
StoreFuncInterface.relToAbsPathForStoreLocation(String, Path)
job
- The Job
objectjava.io.IOException
- if the location is not valid.public java.util.List<java.lang.String> getCacheFiles()
StoreResources
getCacheFiles
in interface StoreResources
public java.util.List<java.lang.String> getShipFiles()
StoreResources
FuncUtils
for utility function to facilitate it
The default implementation returns null.getShipFiles
in interface StoreResources
Copyright © 2007-2017 The Apache Software Foundation