public class DeletionVectorsIndexFile extends IndexFile
Modifier and Type | Field and Description |
---|---|
static String |
DELETION_VECTORS_INDEX |
static byte |
VERSION_ID_V1 |
fileIO, pathFactory
Constructor and Description |
---|
DeletionVectorsIndexFile(FileIO fileIO,
PathFactory pathFactory,
MemorySize targetSizePerIndexFile) |
Modifier and Type | Method and Description |
---|---|
static int |
calculateChecksum(byte[] bytes) |
Map<String,DeletionVector> |
readAllDeletionVectors(IndexFileMeta fileMeta)
Reads all deletion vectors from a specified file.
|
Map<String,DeletionVector> |
readAllDeletionVectors(List<IndexFileMeta> indexFiles) |
DeletionVector |
readDeletionVector(DeletionFile deletionFile) |
Map<String,DeletionVector> |
readDeletionVector(Map<String,DeletionFile> dataFileToDeletionFiles)
Reads deletion vectors from a list of DeletionFile which belong to a same index file.
|
List<IndexFileMeta> |
write(Map<String,DeletionVector> input)
Write deletion vectors to a new file, the format of this file can be referenced at: PIP-16.
|
public static final String DELETION_VECTORS_INDEX
public static final byte VERSION_ID_V1
public DeletionVectorsIndexFile(FileIO fileIO, PathFactory pathFactory, MemorySize targetSizePerIndexFile)
public Map<String,DeletionVector> readAllDeletionVectors(IndexFileMeta fileMeta)
UncheckedIOException
- If an I/O error occurs while reading from the file.public Map<String,DeletionVector> readAllDeletionVectors(List<IndexFileMeta> indexFiles)
public Map<String,DeletionVector> readDeletionVector(Map<String,DeletionFile> dataFileToDeletionFiles)
public DeletionVector readDeletionVector(DeletionFile deletionFile)
public List<IndexFileMeta> write(Map<String,DeletionVector> input)
input
- A map where the key represents which file the DeletionVector belongs to, and the
value is the corresponding DeletionVector object.UncheckedIOException
- If an I/O error occurs while writing to the file.public static int calculateChecksum(byte[] bytes)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.