T
- the type of objects in the store@Deprecated public class IndexedObjectStore<T> extends AbstractDataset
Modifier and Type | Field and Description |
---|---|
static String |
TYPE
Deprecated.
Type name
|
Constructor and Description |
---|
IndexedObjectStore(String name,
ObjectStore<T> objectStore,
Table index)
Deprecated.
Constructs the IndexedObjectStore with name and type.
|
Modifier and Type | Method and Description |
---|---|
void |
pruneIndex(byte[] key,
byte[] secondaryKey)
Deprecated.
Deletes an index that is no longer needed.
|
T |
read(byte[] key)
Deprecated.
|
T |
read(String key)
Deprecated.
|
List<T> |
readAllByIndex(byte[] secondaryKey)
Deprecated.
Read all the objects from the objectStore for a given index.
|
void |
updateIndex(byte[] key,
byte[] secondaryKey)
Deprecated.
Updates the index value for an existing key.
|
void |
write(byte[] key,
T object)
Deprecated.
|
void |
write(byte[] key,
T object,
byte[][] secondaryKeys)
Deprecated.
Writes to the dataset, deleting any existing secondaryKey corresponding to the key and updates
the indexTable with the secondaryKey that is passed.
|
close, commitTx, getName, getTransactionAwareName, getTxChanges, postTxCommit, rollbackTx, setMetricsCollector, startTx, toString, updateTx
public static final String TYPE
public IndexedObjectStore(String name, ObjectStore<T> objectStore, Table index)
name
- name of the datasetobjectStore
- dataset to use as the objectStoreindex
- dataset to use as the indexpublic T read(byte[] key)
public List<T> readAllByIndex(byte[] secondaryKey)
secondaryKey
- for the lookup.public void write(byte[] key, T object, byte[][] secondaryKeys)
key
- key for storing the objectobject
- object to be storedsecondaryKeys
- indices that can be used to lookup the objectpublic void write(byte[] key, T object)
public void pruneIndex(byte[] key, byte[] secondaryKey)
key
- key for the objectsecondaryKey
- index to be prunedpublic void updateIndex(byte[] key, byte[] secondaryKey)
key
- key for the objectsecondaryKey
- index to be prunedCopyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.