public interface IgniteTree<L,T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IgniteTree.InvokeClosure<T> |
static class |
IgniteTree.OperationType |
| Modifier and Type | Method and Description |
|---|---|
GridCursor<T> |
find(L lower,
L upper)
Returns a cursor from lower to upper bounds inclusive.
|
GridCursor<T> |
find(L lower,
L upper,
Object x)
Returns a cursor from lower to upper bounds inclusive.
|
T |
findFirst()
Returns a value mapped to the lowest key, or
null if tree is empty |
T |
findLast()
Returns a value mapped to the greatest key, or
null if tree is empty |
T |
findOne(L key)
Returns the value to which the specified key is mapped, or
null if this tree contains no mapping for the
key. |
void |
invoke(L key,
Object x,
IgniteTree.InvokeClosure<T> c) |
T |
put(T val)
Put value in this tree.
|
T |
remove(L key)
Removes the mapping for a key from this tree if it is present.
|
long |
size()
Returns the number of elements in this tree.
|
T put(T val) throws IgniteCheckedException
val - Value to be associated with the specified key.IgniteCheckedException - If failed.void invoke(L key, Object x, IgniteTree.InvokeClosure<T> c) throws IgniteCheckedException
key - Key.x - Implementation specific argument, null always means that we need a full detached data row.c - Closure.IgniteCheckedException - If failed.T findOne(L key) throws IgniteCheckedException
null if this tree contains no mapping for the
key.key - the key whose associated value is to be returnednull if this tree contains no mapping for the
key.IgniteCheckedException - If failed.GridCursor<T> find(L lower, L upper) throws IgniteCheckedException
lower - Lower bound or null if unbounded.upper - Upper bound or null if unbounded.IgniteCheckedException - If failed.GridCursor<T> find(L lower, L upper, Object x) throws IgniteCheckedException
lower - Lower bound or null if unbounded.upper - Upper bound or null if unbounded.x - Implementation specific argument, null always means that we need to return full detached
data row.IgniteCheckedException - If failed.T findFirst() throws IgniteCheckedException
null if tree is emptyIgniteCheckedException - If failed.T findLast() throws IgniteCheckedException
null if tree is emptyIgniteCheckedException - If failed.T remove(L key) throws IgniteCheckedException
key - Key whose mapping is to be removed from the tree.IgniteCheckedException - If failed.long size() throws IgniteCheckedException
IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023