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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.pig.LoadPushDown.OperatorSet>
org.apache.hadoop.mapreduce.InputFormat
org.apache.pig.data.Tuple
getNext()
String[]
getPartitionKeys
(String location, org.apache.hadoop.mapreduce.Job job) getPredicateFields
(String location, org.apache.hadoop.mapreduce.Job job) org.apache.pig.ResourceSchema
org.apache.pig.ResourceStatistics
getStatistics
(String location, org.apache.hadoop.mapreduce.Job job) org.apache.iceberg.relocated.com.google.common.collect.ImmutableList<org.apache.pig.Expression.OpType>
void
prepareToRead
(org.apache.hadoop.mapreduce.RecordReader newReader, org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit split) org.apache.pig.LoadPushDown.RequiredFieldResponse
pushProjection
(org.apache.pig.LoadPushDown.RequiredFieldList requiredFieldList) relativeToAbsolutePath
(String location, org.apache.hadoop.fs.Path curDir) void
setLocation
(String location, org.apache.hadoop.mapreduce.Job job) void
setPartitionFilter
(org.apache.pig.Expression partitionFilter) void
setPushdownPredicate
(org.apache.pig.Expression predicate) void
setUDFContextSignature
(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:
setLocation
in classorg.apache.pig.LoadFunc
-
getInputFormat
public org.apache.hadoop.mapreduce.InputFormat getInputFormat()- Specified by:
getInputFormat
in classorg.apache.pig.LoadFunc
-
getNext
- Specified by:
getNext
in 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:
prepareToRead
in classorg.apache.pig.LoadFunc
-
getSchema
public org.apache.pig.ResourceSchema getSchema(String location, org.apache.hadoop.mapreduce.Job job) throws IOException - Specified by:
getSchema
in interfaceorg.apache.pig.LoadMetadata
- Throws:
IOException
-
getStatistics
public org.apache.pig.ResourceStatistics getStatistics(String location, org.apache.hadoop.mapreduce.Job job) - Specified by:
getStatistics
in interfaceorg.apache.pig.LoadMetadata
-
getPartitionKeys
- Specified by:
getPartitionKeys
in interfaceorg.apache.pig.LoadMetadata
-
setPartitionFilter
public void setPartitionFilter(org.apache.pig.Expression partitionFilter) - Specified by:
setPartitionFilter
in interfaceorg.apache.pig.LoadMetadata
-
getPredicateFields
public List<String> getPredicateFields(String location, org.apache.hadoop.mapreduce.Job job) throws IOException - Specified by:
getPredicateFields
in 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:
getSupportedExpressionTypes
in interfaceorg.apache.pig.LoadPredicatePushdown
-
setPushdownPredicate
- Specified by:
setPushdownPredicate
in interfaceorg.apache.pig.LoadPredicatePushdown
- Throws:
IOException
-
getFeatures
- Specified by:
getFeatures
in interfaceorg.apache.pig.LoadPushDown
-
pushProjection
public org.apache.pig.LoadPushDown.RequiredFieldResponse pushProjection(org.apache.pig.LoadPushDown.RequiredFieldList requiredFieldList) - Specified by:
pushProjection
in interfaceorg.apache.pig.LoadPushDown
-
setUDFContextSignature
- Overrides:
setUDFContextSignature
in classorg.apache.pig.LoadFunc
-
relativeToAbsolutePath
public String relativeToAbsolutePath(String location, org.apache.hadoop.fs.Path curDir) throws IOException - Overrides:
relativeToAbsolutePath
in classorg.apache.pig.LoadFunc
- Throws:
IOException
-