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) |
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(DataInputStream dis,
Long length) |
static DeletionVector |
read(FileIO fileIO,
DeletionFile deletionFile) |
int |
serializeTo(DataOutputStream out)
Serializes the deletion vector.
|
static byte[] |
serializeToBytes(DeletionVector deletionVector) |
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()
int serializeTo(DataOutputStream out) throws IOException
IOException
static DeletionVector read(FileIO fileIO, DeletionFile deletionFile) throws IOException
IOException
static DeletionVector read(DataInputStream dis, @Nullable Long length) 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)
static byte[] serializeToBytes(DeletionVector deletionVector)
static DeletionVector deserializeFromBytes(byte[] bytes)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.