@Internal public class HiveContinuousPartitionFetcher<T extends Comparable<T>> extends Object implements ContinuousPartitionFetcher<org.apache.hadoop.hive.metastore.api.Partition,T>
ContinuousPartitionFetcher
for hive table.ContinuousPartitionFetcher.Context<P,T extends Comparable<T>>
Constructor and Description |
---|
HiveContinuousPartitionFetcher() |
Modifier and Type | Method and Description |
---|---|
List<org.apache.hadoop.hive.metastore.api.Partition> |
fetch(PartitionFetcher.Context<org.apache.hadoop.hive.metastore.api.Partition> context)
Fetch the suitable partitions, call this method should guarantee the fetcher has opened.
|
List<Tuple2<org.apache.hadoop.hive.metastore.api.Partition,T>> |
fetchPartitions(ContinuousPartitionFetcher.Context<org.apache.hadoop.hive.metastore.api.Partition,T> context,
T previousOffset)
Fetch partitions by previous partition offset (Including).
|
public List<Tuple2<org.apache.hadoop.hive.metastore.api.Partition,T>> fetchPartitions(ContinuousPartitionFetcher.Context<org.apache.hadoop.hive.metastore.api.Partition,T> context, T previousOffset) throws Exception
ContinuousPartitionFetcher
fetchPartitions
in interface ContinuousPartitionFetcher<org.apache.hadoop.hive.metastore.api.Partition,T extends Comparable<T>>
Exception
public List<org.apache.hadoop.hive.metastore.api.Partition> fetch(PartitionFetcher.Context<org.apache.hadoop.hive.metastore.api.Partition> context) throws Exception
PartitionFetcher
fetch
in interface PartitionFetcher<org.apache.hadoop.hive.metastore.api.Partition>
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.