public class PhoenixHBaseStorage extends Object implements org.apache.pig.StoreFuncInterface
| Constructor and Description |
|---|
PhoenixHBaseStorage(String server) |
PhoenixHBaseStorage(String server,
String optString) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSchema(org.apache.pig.ResourceSchema s) |
void |
cleanupOnFailure(String location,
org.apache.hadoop.mapreduce.Job job) |
void |
cleanupOnSuccess(String location,
org.apache.hadoop.mapreduce.Job job) |
org.apache.hadoop.mapreduce.OutputFormat |
getOutputFormat() |
void |
prepareToWrite(org.apache.hadoop.mapreduce.RecordWriter writer) |
void |
putNext(org.apache.pig.data.Tuple t) |
String |
relToAbsPathForStoreLocation(String location,
org.apache.hadoop.fs.Path curDir) |
void |
setStoreFuncUDFContextSignature(String signature) |
void |
setStoreLocation(String location,
org.apache.hadoop.mapreduce.Job job)
Parse the HBase table name and configure job
|
public PhoenixHBaseStorage(String server) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseExceptionpublic void setStoreLocation(String location, org.apache.hadoop.mapreduce.Job job) throws IOException
setStoreLocation in interface org.apache.pig.StoreFuncInterfaceIOExceptionpublic void prepareToWrite(org.apache.hadoop.mapreduce.RecordWriter writer)
throws IOException
prepareToWrite in interface org.apache.pig.StoreFuncInterfaceIOExceptionpublic void putNext(org.apache.pig.data.Tuple t)
throws IOException
putNext in interface org.apache.pig.StoreFuncInterfaceIOExceptionpublic void setStoreFuncUDFContextSignature(String signature)
setStoreFuncUDFContextSignature in interface org.apache.pig.StoreFuncInterfacepublic void cleanupOnFailure(String location, org.apache.hadoop.mapreduce.Job job) throws IOException
cleanupOnFailure in interface org.apache.pig.StoreFuncInterfaceIOExceptionpublic void cleanupOnSuccess(String location, org.apache.hadoop.mapreduce.Job job) throws IOException
cleanupOnSuccess in interface org.apache.pig.StoreFuncInterfaceIOExceptionpublic String relToAbsPathForStoreLocation(String location, org.apache.hadoop.fs.Path curDir) throws IOException
relToAbsPathForStoreLocation in interface org.apache.pig.StoreFuncInterfaceIOExceptionpublic org.apache.hadoop.mapreduce.OutputFormat getOutputFormat()
throws IOException
getOutputFormat in interface org.apache.pig.StoreFuncInterfaceIOExceptionpublic void checkSchema(org.apache.pig.ResourceSchema s)
throws IOException
checkSchema in interface org.apache.pig.StoreFuncInterfaceIOExceptionCopyright © 2021 Apache Software Foundation. All rights reserved.