Interface PartitionFetcher.Context<P>
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ContinuousPartitionFetcher.Context<P,T>
- Enclosing interface:
- PartitionFetcher<P>
Context for fetch partitions, partition information is stored in hive meta store.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA comparable partition value that can compare order by using its comparator. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()close the resources of the Context, this method should call when the context do not need any more.Get list that contains partition with comparable object.getPartition(List<String> partValues) Get partition by file partition values.voidopen()open the resources of the Context, this method should first call before call other methods.
-
Method Details
-
open
open the resources of the Context, this method should first call before call other methods.- Throws:
Exception
-
getPartition
Get partition by file partition values.- Throws:
Exception
-
getComparablePartitionValueList
List<PartitionFetcher.Context.ComparablePartitionValue> getComparablePartitionValueList() throws ExceptionGet list that contains partition with comparable object.For 'create-time' and 'partition-time',the comparable object type is Long which represents time in milliseconds, for 'partition-name', the comparable object type is String which represents the partition names string.
- Throws:
Exception
-
close
close the resources of the Context, this method should call when the context do not need any more.- Throws:
Exception
-