public class IndexFileHandler extends Object
Constructor and Description |
---|
IndexFileHandler(SnapshotManager snapshotManager,
PathFactory pathFactory,
IndexManifestFile indexManifestFile,
HashIndexFile hashIndex,
DeletionVectorsIndexFile deletionVectorsIndex) |
public IndexFileHandler(SnapshotManager snapshotManager, PathFactory pathFactory, IndexManifestFile indexManifestFile, HashIndexFile hashIndex, DeletionVectorsIndexFile deletionVectorsIndex)
public DeletionVectorsIndexFile deletionVectorsIndex()
public Optional<IndexFileMeta> scanHashIndex(long snapshotId, BinaryRow partition, int bucket)
public Map<String,DeletionFile> scanDVIndex(@Nullable Long snapshotId, BinaryRow partition, int bucket)
public List<IndexManifestEntry> scan(String indexType)
public List<IndexFileMeta> scan(long snapshotId, String indexType, BinaryRow partition, int bucket)
public Map<Pair<BinaryRow,Integer>,List<IndexFileMeta>> scan(long snapshot, String indexType, Set<BinaryRow> partitions)
public Map<Pair<BinaryRow,Integer>,List<IndexFileMeta>> scan(Snapshot snapshot, String indexType, Set<BinaryRow> partitions)
public List<IndexManifestEntry> scanEntries()
public List<IndexManifestEntry> scanEntries(String indexType, BinaryRow partition)
public List<IndexManifestEntry> scanEntries(long snapshotId, String indexType, BinaryRow partition)
public List<IndexManifestEntry> scanEntries(long snapshot, String indexType, Set<BinaryRow> partitions)
public List<IndexManifestEntry> scanEntries(Snapshot snapshot, String indexType, Set<BinaryRow> partitions)
public Path filePath(IndexFileMeta file)
public List<Integer> readHashIndexList(IndexFileMeta file)
public IntIterator readHashIndex(IndexFileMeta file)
public IndexFileMeta writeHashIndex(int[] ints)
public IndexFileMeta writeHashIndex(int size, IntIterator iterator)
public boolean existsManifest(String indexManifest)
public List<IndexManifestEntry> readManifest(String indexManifest)
public List<IndexManifestEntry> readManifestWithIOException(String indexManifest) throws IOException
IOException
public boolean existsIndexFile(IndexManifestEntry file)
public void deleteIndexFile(IndexManifestEntry file)
public void deleteIndexFile(IndexFileMeta file)
public void deleteManifest(String indexManifest)
public Map<String,DeletionVector> readAllDeletionVectors(List<IndexFileMeta> fileMetas)
public List<IndexFileMeta> writeDeletionVectorsIndex(Map<String,DeletionVector> deletionVectors)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.