public interface EntryTableDatabase
| Modifier and Type | Method and Description |
|---|---|
void |
delete(List<Uid32> uids)
Delete the lines with the given UIDs.
|
default FindexNativeWrapper.DeleteCallback |
deleteCallback()
Return the appropriate upsert callback (with input/output serialization).
|
default FindexNativeWrapper.DumpTokensCallback |
dumpTokenCallback() |
List<Tuple<Uid32,EntryTableValue>> |
fetch(List<Uid32> uids)
Fetch the Entry Table lines for the list of given
Uid32. |
Set<Uid32> |
fetchAllUids()
Fetch all the Entry Table Uids.
|
default FindexNativeWrapper.FetchCallback |
fetchCallback()
Return the appropriate fetch callback (with input/output serialization).
|
void |
insert(Map<Uid32,EntryTableValue> uidsAndValues)
Insert the given lines in the Chain Table.
|
default FindexNativeWrapper.InsertCallback |
insertCallback()
Return the appropriate insert callback (with input/output serialization).
|
Map<Uid32,EntryTableValue> |
upsert(Map<Uid32,EntryTableValues> uidsAndValues)
Upsert the given lines into the Entry Table.
|
default FindexNativeWrapper.UpsertCallback |
upsertCallback()
Return the appropriate upsert callback (with input/output serialization).
|
Set<Uid32> fetchAllUids() throws CloudproofException
Implementation of this method is only required for the compact operation.
Set of all Uid32CloudproofException - if anything goes wrongList<Tuple<Uid32,EntryTableValue>> fetch(List<Uid32> uids) throws CloudproofException
Uid32. If a line does not exist, there should be not
entry in the returned map.
Implementation of this method is always required.
uids - the unique Uid32s used as line idList of Tuple of Uid32 and EntryTableValueCloudproofException - if anything goes wrongMap<Uid32,EntryTableValue> upsert(Map<Uid32,EntryTableValues> uidsAndValues) throws CloudproofException
The EntryTableValues structure contains both the new value to be upserted and the previous value known at
the time of fetch. To avoid concurrency issues, the new value of an existing Uid32 must not be
updated if the current value in the database does not match the previous value of the structure. In such a case,
the Uid32 and the current database value must be returned as part of the returned Map. *
Implementation of this method is only required to update or compact the index
See the Redis and Sqlite implementations for implementation examples
uidsAndValues - a Map of Uid32 to EntryTableValuesUid32 that could not be updated and the current database value for the entry.CloudproofException - if anything goes wrongvoid insert(Map<Uid32,EntryTableValue> uidsAndValues) throws CloudproofException
Implementation of this method is only required to perform additions, deletions or compact operations on the index.
uidsAndValues - a Map of Uid32 to EntryTableValueCloudproofException - if anything goes wrongvoid delete(List<Uid32> uids) throws CloudproofException
uids - a List of Uid32CloudproofException - if anything goes wrongdefault FindexNativeWrapper.FetchCallback fetchCallback()
default FindexNativeWrapper.UpsertCallback upsertCallback()
default FindexNativeWrapper.InsertCallback insertCallback()
default FindexNativeWrapper.DeleteCallback deleteCallback()
default FindexNativeWrapper.DumpTokensCallback dumpTokenCallback()
Copyright © 2023. All rights reserved.