-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71e2b38
commit ad32f5f
Showing
9 changed files
with
256 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,47 @@ | ||
# DeletionVectorStore | ||
|
||
`DeletionVectorStore`...FIXME | ||
`DeletionVectorStore` is an [abstraction](#contract) of [stores](#implementations) of [deletion vectors](index.md) to be [loaded as RoaringBitmapArrays](#read). | ||
|
||
`DeletionVectorStore` is created using [createInstance](#createInstance) utility. | ||
|
||
## Contract (Subset) | ||
|
||
### Reading Deletion Vector { #read } | ||
|
||
```scala | ||
read( | ||
path: Path, | ||
offset: Int, | ||
size: Int): RoaringBitmapArray | ||
``` | ||
|
||
Reads the Deletion Vector as `RoaringBitmapArray` | ||
|
||
See: | ||
|
||
* [HadoopFileSystemDVStore](HadoopFileSystemDVStore.md#read) | ||
|
||
Used when: | ||
|
||
* `DeletionVectorStoredBitmap` is requested to [load deletion vectors](DeletionVectorStoredBitmap.md#load) | ||
|
||
## Implementations | ||
|
||
* [HadoopFileSystemDVStore](HadoopFileSystemDVStore.md) | ||
|
||
## Creating DeletionVectorStore { #createInstance } | ||
|
||
```scala | ||
createInstance( | ||
hadoopConf: Configuration): DeletionVectorStore | ||
``` | ||
|
||
`createInstance` creates a [HadoopFileSystemDVStore](HadoopFileSystemDVStore.md). | ||
|
||
--- | ||
|
||
`createInstance` is used when: | ||
|
||
* `DeletionVectorWriter` is requested to [create a deletion vector partition mapper function](DeletionVectorWriter.md#createDeletionVectorMapper) | ||
* `CDCReaderImpl` is requested to [processDeletionVectorActions](../change-data-feed/CDCReaderImpl.md#processDeletionVectorActions) | ||
* `RowIndexMarkingFiltersBuilder` is requested to [create a RowIndexFilter](RowIndexMarkingFiltersBuilder.md#createInstance) (for non-empty deletion vectors) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# DeletionVectorStoredBitmap | ||
|
||
`DeletionVectorStoredBitmap` is a [StoredBitmap](StoredBitmap.md). | ||
|
||
## Creating Instance | ||
|
||
`DeletionVectorStoredBitmap` takes the following to be created: | ||
|
||
* <span id="dvDescriptor"> [DeletionVectorDescriptor](DeletionVectorDescriptor.md) | ||
* [Table Data Path](#tableDataPath) | ||
|
||
`DeletionVectorStoredBitmap` is created when: | ||
|
||
* `StoredBitmap` is requested to [create a StoredBitmap](StoredBitmap.md#create), [EMPTY](StoredBitmap.md#EMPTY), [inline](StoredBitmap.md#inline) | ||
|
||
### Table Data Path { #tableDataPath } | ||
|
||
```scala | ||
tableDataPath: Option[Path] | ||
``` | ||
|
||
`DeletionVectorStoredBitmap` can be given the path to the data directory of a delta table. The path is undefined (`None`) by default. | ||
|
||
The path is specified only when `StoredBitmap` utility is requested to [create a StoredBitmap](StoredBitmap.md#create) for [on-disk deletion vectors](DeletionVectorDescriptor.md#isOnDisk). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# HadoopFileSystemDVStore | ||
|
||
`HadoopFileSystemDVStore` is a [DeletionVectorStore](DeletionVectorStore.md). | ||
|
||
## Creating Instance | ||
|
||
`HadoopFileSystemDVStore` takes the following to be created: | ||
|
||
* <span id="hadoopConf"> `Configuration` ([Apache Hadoop]({{ hadoop.api }}/org/apache/hadoop/conf/Configuration.html)) | ||
|
||
`HadoopFileSystemDVStore` is created when: | ||
|
||
* `DeletionVectorStore` is requested to [create a DeletionVectorStore](DeletionVectorStore.md#createInstance) | ||
|
||
## Reading Deletion Vector { #read } | ||
|
||
??? note "DeletionVectorStore" | ||
|
||
```scala | ||
read( | ||
path: Path, | ||
offset: Int, | ||
size: Int): RoaringBitmapArray | ||
``` | ||
|
||
`read` is part of the [DeletionVectorStore](DeletionVectorStore.md#read) abstraction. | ||
|
||
`read`...FIXME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
# StoredBitmap | ||
|
||
`StoredBitmap` is...FIXME | ||
## Create StoredBitmap { #create } | ||
|
||
```scala | ||
create( | ||
dvDescriptor: DeletionVectorDescriptor, | ||
tablePath: Path): StoredBitmap | ||
``` | ||
|
||
`create` creates a new [DeletionVectorStoredBitmap](DeletionVectorStoredBitmap.md) (possibly with the given `tablePath` for an [on-disk deletion vector](DeletionVectorDescriptor.md#isOnDisk)). | ||
|
||
--- | ||
|
||
`create` is used when: | ||
|
||
* `DeletionVectorWriter` is requested to [storeBitmapAndGenerateResult](DeletionVectorWriter.md#storeBitmapAndGenerateResult) | ||
* `RowIndexMarkingFiltersBuilder` is requested to [create a RowIndexFilter](RowIndexMarkingFiltersBuilder.md#createInstance) | ||
* `DeletionVectorStore` is requested to [read a deletion vector](DeletionVectorStore.md#read) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters