Package org.apache.iceberg
Interface DeletionVector
public interface DeletionVector
Metadata about a deletion vector.
Tracks where a DV blob can be read. The DV blob follows the format defined by the deletion-vector-v1 blob type in the Puffin spec.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedFieldstatic final Types.NestedField -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of set bits (deleted rows) in the vector.copy()Copies this deletion vector.Returns encryption key metadata, or null if the file is not encrypted.location()Returns the location of the file containing the deletion vector.longoffset()Returns the offset in the file where the deletion vector content starts.static Types.StructTypeschema()longReturns the size in bytes of the deletion vector content.
-
Field Details
-
LOCATION
-
OFFSET
-
SIZE_IN_BYTES
-
CARDINALITY
-
KEY_METADATA
-
-
Method Details
-
schema
-
location
String location()Returns the location of the file containing the deletion vector. -
offset
long offset()Returns the offset in the file where the deletion vector content starts. -
sizeInBytes
long sizeInBytes()Returns the size in bytes of the deletion vector content. -
cardinality
long cardinality()Returns the number of set bits (deleted rows) in the vector. -
keyMetadata
ByteBuffer keyMetadata()Returns encryption key metadata, or null if the file is not encrypted. -
copy
DeletionVector copy()Copies this deletion vector.
-