public interface DeletionVector
Modifier and Type | Interface and Description |
---|---|
static interface |
DeletionVector.Factory
Interface to create
DeletionVector . |
Modifier and Type | Method and Description |
---|---|
default boolean |
checkedDelete(long position)
Marks the row at the specified position as deleted.
|
void |
delete(long position)
Marks the row at the specified position as deleted.
|
static DeletionVector |
deserializeFromBytes(byte[] bytes)
Deserializes a deletion vector from a byte array.
|
static DeletionVector.Factory |
emptyFactory() |
static DeletionVector.Factory |
factory(DeletionVectorsMaintainer dvMaintainer) |
static DeletionVector.Factory |
factory(FileIO fileIO,
List<DataFileMeta> files,
List<DeletionFile> deletionFiles) |
long |
getCardinality() |
boolean |
isDeleted(long position)
Checks if the row at the specified position is marked as deleted.
|
boolean |
isEmpty()
Determines if the deletion vector is empty, indicating no deletions.
|
void |
merge(DeletionVector deletionVector)
merge another
DeletionVector to this current one. |
static DeletionVector |
read(FileIO fileIO,
DeletionFile deletionFile) |
byte[] |
serializeToBytes()
Serializes the deletion vector to a byte array for storage or transmission.
|
void delete(long position)
position
- The position of the row to be marked as deleted.void merge(DeletionVector deletionVector)
DeletionVector
to this current one.deletionVector
- the other DeletionVector
default boolean checkedDelete(long position)
position
- The position of the row to be marked as deleted.boolean isDeleted(long position)
position
- The position of the row to check.boolean isEmpty()
long getCardinality()
byte[] serializeToBytes()
static DeletionVector deserializeFromBytes(byte[] bytes)
bytes
- The byte array containing the serialized deletion vector.static DeletionVector read(FileIO fileIO, DeletionFile deletionFile) throws IOException
IOException
static DeletionVector.Factory emptyFactory()
static DeletionVector.Factory factory(@Nullable DeletionVectorsMaintainer dvMaintainer)
static DeletionVector.Factory factory(FileIO fileIO, List<DataFileMeta> files, @Nullable List<DeletionFile> deletionFiles)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.