public static interface TableFileSystemView.SliceViewWithLatestSlice
| Modifier and Type | Method and Description |
|---|---|
Map<String,Stream<FileSlice>> |
getAllLatestFileSlicesBeforeOrOn(String maxCommitTime)
Stream all latest file slices with precondition that commitTime(file) before maxCommitTime.
|
Option<FileSlice> |
getLatestFileSlice(String partitionPath,
String fileId)
Get Latest File Slice for a given fileId in a given partition.
|
Stream<FileSlice> |
getLatestFileSliceInRange(List<String> commitsToReturn)
Stream all the latest file slices, in the given range.
|
Stream<FileSlice> |
getLatestFileSlices(String partitionPath)
Stream all the latest file slices in the given partition.
|
Stream<FileSlice> |
getLatestFileSlicesBeforeOrOn(String partitionPath,
String maxCommitTime,
boolean includeFileSlicesInPendingCompaction)
Stream all latest file slices in given partition with precondition that commitTime(file) before maxCommitTime.
|
Stream<FileSlice> |
getLatestFileSlicesStateless(String partitionPath)
Stream all the latest file slices in the given partition
without caching the file group mappings.
|
Stream<FileSlice> |
getLatestMergedFileSlicesBeforeOrOn(String partitionPath,
String maxInstantTime)
Stream all "merged" file-slices before on an instant time If a file-group has a pending compaction request, the
file-slice before and after compaction request instant is merged and returned.
|
Stream<FileSlice> |
getLatestUnCompactedFileSlices(String partitionPath)
Stream all the latest uncompacted file slices in the given partition.
|
Stream<FileSlice> getLatestFileSlices(String partitionPath)
Stream<FileSlice> getLatestFileSlicesStateless(String partitionPath)
This is useful for some table services such as compaction and clustering, these services may search around the files to clean within some ancient data partitions, if there triggers a full table service for enormous number of partitions, the cache could cause a huge memory pressure to the timeline server which induces an OOM exception.
The caching of these file groups does not benefit to writers most often because the writers write to recent data partitions usually.
Option<FileSlice> getLatestFileSlice(String partitionPath, String fileId)
Stream<FileSlice> getLatestUnCompactedFileSlices(String partitionPath)
Stream<FileSlice> getLatestFileSlicesBeforeOrOn(String partitionPath, String maxCommitTime, boolean includeFileSlicesInPendingCompaction)
partitionPath - Partition pathmaxCommitTime - Max Instant TimeincludeFileSlicesInPendingCompaction - include file-slices that are in pending compactionMap<String,Stream<FileSlice>> getAllLatestFileSlicesBeforeOrOn(String maxCommitTime)
maxCommitTime - Max Instant TimeMap of partition path to the latest file slices before maxCommitTime.Stream<FileSlice> getLatestMergedFileSlicesBeforeOrOn(String partitionPath, String maxInstantTime)
partitionPath - Partition PathmaxInstantTime - Max Instant TimeCopyright © 2024 The Apache Software Foundation. All rights reserved.