public class Bitmap64DeletionVector extends Object implements DeletionVector
DeletionVector
based on OptimizedRoaringBitmap64
, it only supports files with
row count not exceeding OptimizedRoaringBitmap64.MAX_VALUE
.
Mostly copied from iceberg.
DeletionVector.Factory
Modifier and Type | Field and Description |
---|---|
static int |
CRC_SIZE_BYTES |
static int |
LENGTH_SIZE_BYTES |
static int |
MAGIC_NUMBER |
static int |
MAGIC_NUMBER_SIZE_BYTES |
Constructor and Description |
---|
Bitmap64DeletionVector() |
Modifier and Type | Method and Description |
---|---|
void |
delete(long position)
Marks the row at the specified position as deleted.
|
static DeletionVector |
deserializeFromBitmapDataBytes(byte[] bytes) |
boolean |
equals(Object o) |
static Bitmap64DeletionVector |
fromBitmapDeletionVector(BitmapDeletionVector bitmapDeletionVector) |
long |
getCardinality() |
int |
hashCode() |
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. |
int |
serializeTo(DataOutputStream out)
Serializes the deletion vector.
|
protected static int |
toLittleEndianInt(int bigEndianInt) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
checkedDelete, deserializeFromBytes, emptyFactory, factory, factory, read, read, serializeToBytes
public static final int MAGIC_NUMBER
public static final int LENGTH_SIZE_BYTES
public static final int CRC_SIZE_BYTES
public static final int MAGIC_NUMBER_SIZE_BYTES
public static Bitmap64DeletionVector fromBitmapDeletionVector(BitmapDeletionVector bitmapDeletionVector)
public void delete(long position)
DeletionVector
delete
in interface DeletionVector
position
- The position of the row to be marked as deleted.public void merge(DeletionVector deletionVector)
DeletionVector
DeletionVector
to this current one.merge
in interface DeletionVector
deletionVector
- the other DeletionVector
public boolean isDeleted(long position)
DeletionVector
isDeleted
in interface DeletionVector
position
- The position of the row to check.public boolean isEmpty()
DeletionVector
isEmpty
in interface DeletionVector
public long getCardinality()
getCardinality
in interface DeletionVector
public int serializeTo(DataOutputStream out) throws IOException
DeletionVector
serializeTo
in interface DeletionVector
IOException
public static DeletionVector deserializeFromBitmapDataBytes(byte[] bytes)
protected static int toLittleEndianInt(int bigEndianInt)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.