Package org.apache.iceberg.pig
Class IcebergStorage
java.lang.Object
org.apache.pig.LoadFunc
org.apache.iceberg.pig.IcebergStorage
- All Implemented Interfaces:
org.apache.pig.LoadMetadata,org.apache.pig.LoadPredicatePushdown,org.apache.pig.LoadPushDown
public class IcebergStorage
extends org.apache.pig.LoadFunc
implements org.apache.pig.LoadMetadata, org.apache.pig.LoadPredicatePushdown, org.apache.pig.LoadPushDown
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pig.LoadPushDown
org.apache.pig.LoadPushDown.OperatorSet, org.apache.pig.LoadPushDown.RequiredField, org.apache.pig.LoadPushDown.RequiredFieldList, org.apache.pig.LoadPushDown.RequiredFieldResponse -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.pig.LoadPushDown.OperatorSet>org.apache.hadoop.mapreduce.InputFormatorg.apache.pig.data.TuplegetNext()String[]getPartitionKeys(String location, org.apache.hadoop.mapreduce.Job job) getPredicateFields(String location, org.apache.hadoop.mapreduce.Job job) org.apache.pig.ResourceSchemaorg.apache.pig.ResourceStatisticsgetStatistics(String location, org.apache.hadoop.mapreduce.Job job) org.apache.iceberg.relocated.com.google.common.collect.ImmutableList<org.apache.pig.Expression.OpType>voidprepareToRead(org.apache.hadoop.mapreduce.RecordReader newReader, org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit split) org.apache.pig.LoadPushDown.RequiredFieldResponsepushProjection(org.apache.pig.LoadPushDown.RequiredFieldList requiredFieldList) relativeToAbsolutePath(String location, org.apache.hadoop.fs.Path curDir) voidsetLocation(String location, org.apache.hadoop.mapreduce.Job job) voidsetPartitionFilter(org.apache.pig.Expression partitionFilter) voidsetPushdownPredicate(org.apache.pig.Expression predicate) voidsetUDFContextSignature(String newSignature) Methods inherited from class org.apache.pig.LoadFunc
getAbsolutePath, getCacheFiles, getLoadCaster, getPathStrings, getShipFiles, join, warn
-
Field Details
-
PIG_ICEBERG_TABLES_IMPL
- See Also:
-
-
Constructor Details
-
IcebergStorage
public IcebergStorage()
-
-
Method Details
-
setLocation
- Specified by:
setLocationin classorg.apache.pig.LoadFunc
-
getInputFormat
public org.apache.hadoop.mapreduce.InputFormat getInputFormat()- Specified by:
getInputFormatin classorg.apache.pig.LoadFunc
-
getNext
- Specified by:
getNextin classorg.apache.pig.LoadFunc- Throws:
IOException
-
prepareToRead
public void prepareToRead(org.apache.hadoop.mapreduce.RecordReader newReader, org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit split) - Specified by:
prepareToReadin classorg.apache.pig.LoadFunc
-
getSchema
public org.apache.pig.ResourceSchema getSchema(String location, org.apache.hadoop.mapreduce.Job job) throws IOException - Specified by:
getSchemain interfaceorg.apache.pig.LoadMetadata- Throws:
IOException
-
getStatistics
public org.apache.pig.ResourceStatistics getStatistics(String location, org.apache.hadoop.mapreduce.Job job) - Specified by:
getStatisticsin interfaceorg.apache.pig.LoadMetadata
-
getPartitionKeys
- Specified by:
getPartitionKeysin interfaceorg.apache.pig.LoadMetadata
-
setPartitionFilter
public void setPartitionFilter(org.apache.pig.Expression partitionFilter) - Specified by:
setPartitionFilterin interfaceorg.apache.pig.LoadMetadata
-
getPredicateFields
public List<String> getPredicateFields(String location, org.apache.hadoop.mapreduce.Job job) throws IOException - Specified by:
getPredicateFieldsin interfaceorg.apache.pig.LoadPredicatePushdown- Throws:
IOException
-
getSupportedExpressionTypes
public org.apache.iceberg.relocated.com.google.common.collect.ImmutableList<org.apache.pig.Expression.OpType> getSupportedExpressionTypes()- Specified by:
getSupportedExpressionTypesin interfaceorg.apache.pig.LoadPredicatePushdown
-
setPushdownPredicate
- Specified by:
setPushdownPredicatein interfaceorg.apache.pig.LoadPredicatePushdown- Throws:
IOException
-
getFeatures
- Specified by:
getFeaturesin interfaceorg.apache.pig.LoadPushDown
-
pushProjection
public org.apache.pig.LoadPushDown.RequiredFieldResponse pushProjection(org.apache.pig.LoadPushDown.RequiredFieldList requiredFieldList) - Specified by:
pushProjectionin interfaceorg.apache.pig.LoadPushDown
-
setUDFContextSignature
- Overrides:
setUDFContextSignaturein classorg.apache.pig.LoadFunc
-
relativeToAbsolutePath
public String relativeToAbsolutePath(String location, org.apache.hadoop.fs.Path curDir) throws IOException - Overrides:
relativeToAbsolutePathin classorg.apache.pig.LoadFunc- Throws:
IOException
-