Methods of this class may be changed at any time without notice. If you use this class directly make sure that your application or library requires exactly the same version of MVStore or H2 jar as the version that you use during its development and build.
| Modifier and Type | Class and Description |
|---|---|
| private static class | TransactionMap.
the type of keys K, V, the type of elements X>The iterator for read committed isolation level. |
| private static class | TransactionMap.
the type of keys K, V, the type of elements X>The iterator for repeatable read and serializable isolation levels. |
| public abstract static class | |
| private static class | TransactionMap.
the type of keys K, V, the type of elements X>The iterator for read uncommitted isolation level. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | hasChanges
Indicates whether underlying map was modified from within related transaction |
| private final TxDecisionMaker | |
| private final TxDecisionMaker | |
| public final MVMap | map
The map used for writing (the latest version). |
| private Snapshot | snapshot
Snapshot of this map as of beginning of transaction or first usage within transaction or beginning of the statement, depending on isolation level |
| private Snapshot | statementSnapshot
Snapshot of this map as of beginning of beginning of the statement |
| private final Transaction | transaction
The transaction which is used for this map. |
| private final TxDecisionMaker |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private long | adjustSize(RootReference<Long, Record<?, ?>>[] undoLogRootReferences, RootReference<K, VersionedValue<V>> mapRootReference, BitSet committingTransactions, long size, long undoLogsTotalSize)
|
| public void | append(K
should be higher in map's order than any existing key key, V to be appended value)Appends entry to underlying map. |
| public Map. | Returns: the resultthe key (may not be null) key)Get the entry with smallest key that is larger than or equal to this key, or null if no such key exists. |
| public K | Returns: the resultthe key (may not be null) key)Get the smallest key that is larger than or equal to this key, or null if no such key exists. |
| private <X> TransactionMap. | |
| public void | |
| public boolean | Returns: true if the map contains an entry for this keythe key key)Overrides java. Implements java. Whether the map contains the key. |
| pack-priv Snapshot | |
| public TransactionMap. | Returns: the iteratorthe first key to return from, final K the last key to return to)Iterate over entries. |
| public TransactionMap. | Returns: the iteratorthe first key to return from, K the last key to return to, boolean if true, iterate in reverse (descending) order reverse)Iterate over entries. |
| public Set | entrySet()
Implements abstract java. Implements java. Returns a |
| public Map. | |
| public K | |
| public Map. | Returns: the resultthe key (may not be null) key)Get the entry with largest key that is smaller than or equal to this key, or null if no such key exists. |
| public K | Returns: the resultthe key (may not be null) key)Get the largest key that is smaller than or equal to this key, or null if no such key exists. |
| public V | Returns: the value or nullthe key key)Overrides java. Implements java. Get the effective value for the given key. |
| public V | Returns: the value, or null if not foundthe key key)Get the value for the given key, or null if value does not exist in accordance with transactional rules. |
| private V | |
| public V | Returns: the value, or null if not foundthe key key)Get the value for the given key, or null if not found. |
| public TransactionMap | Returns: the mapthe transaction transaction)Get a clone of this map for the given transaction. |
| public DataType | |
| pack-priv Snapshot | |
| pack-priv Snapshot | |
| public Transaction | |
| public Map. | Returns: the resultthe key (may not be null) key)Get the entry with smallest key that is larger than the given key, or null if no such key exists. |
| public K | Returns: the resultthe key (may not be null) key)Get the smallest key that is larger than the given key, or null if no such key exists. |
| private Map. | |
| private K | |
| public boolean | |
| public boolean | Returns: true if it wasthe key key)Check if the row was deleted by this transaction. |
| private boolean | |
| public boolean | Returns: true if yesthe key key)Whether the entry for this key was added or removed from this session. |
| public Iterator | |
| public TransactionMap. | Returns: the iteratorthe first key to return from, boolean if true, iterate in reverse (descending) order reverse)Iterate over keys in the specified order. |
| public TransactionMap. | Returns: the iteratorthe first key to return from, K the last key to return or null if there is no limit to)Iterate over keys. |
| public TransactionMap. | Returns: the iteratorthe first key to return from, K the last key to return or null if there is no limit to, boolean if true, iterate in reverse (descending) order reverse)Iterate over keys. |
| public TransactionMap. | Returns: the iteratorthe first key to return from, K the last key to return or null if there is no limit to)Iterate over keys, including keys from uncommitted entries. |
| public Map. | |
| public K | |
| public V | |
| public V | Returns: the locked valuethe key key, int timeout in milliseconds, timeoutMillis)-1 for default, -2 to
skip locking if row is already locked by another transactionLock row for the given key. |
| public Map. | Returns: the resultthe key (may not be null) key)Get the entry with largest key that is smaller than the given key, or null if no such key exists. |
| public K | Returns: the resultthe key (may not be null) key)Get the largest key that is smaller than the given key, or null if no such key exists. |
| pack-priv void | |
| public V | Returns: the old valuethe key key, V the new value (not null) value)Overrides java. Implements java. Update the value for the given key. |
| public V | Returns: the old valuethe key key, V the value value)Update the value for the given key, without adding an undo log entry. |
| public V | Returns: the old valuethe key key, V the new value (not null) value)Overrides default java. Put the value for the given key if entry for this key does not exist. |
| public V | remove(Object
the key key)Overrides java. Implements java. Remove an entry. |
| private V | |
| private V | |
| pack-priv void | |
| public int | Returns: the number of entries, as an integerOverrides java. Implements java. Get the number of entries, as a integer. |
| public long | |
| public long | |
| private long | |
| public boolean | Returns: whether the entry could be updatedthe key key, V the new value value)Try to update the value for the given key. |
| public boolean | Returns: whether the entry could be removedthe key key)Try to remove the value for the given key. |
| public boolean | Returns: true if the value was set, false if there was a concurrent updatethe key key, V the new value (null to remove the value) value)Try to set or remove the value. |
| pack-priv < type of the result R> R | Returns: function's resultfunction to invoke on a snapshot snapshotConsumer)Gets a coherent picture of committing transactions and root reference, passes it to the specified function, and returns its result. |