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, storeStatisticscheckSchema, cleanupOnFailure, cleanupOnSuccess, getMethodName, getOutputFormat, prepareToWrite, putNext, relToAbsPathForStoreLocation, setStoreFunc, setStoreFuncUDFContextSignaturepublic ParquetStorer()
throws FrontendException
FrontendExceptionpublic 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 StoreFuncInterfacesetStoreLocation in class StoreFuncWrapperlocation - 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()
StoreResourcesgetCacheFiles in interface StoreResourcespublic java.util.List<java.lang.String> getShipFiles()
StoreResourcesFuncUtils for utility function to facilitate it
The default implementation returns null.getShipFiles in interface StoreResourcesCopyright © 2007-2017 The Apache Software Foundation