Package org.apache.ignite.internal.util
Interface IgniteTree<L,T>
- All Known Implementing Classes:
BPlusTree,BPlusTreeReplaceRemoveRaceTest.TestPairTree,IndexDataTree,LongKeyDataTree,ObjectKeyDataTree
public interface IgniteTree<L,T>
Interface for ignite internal tree.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionReturns a cursor from lower to upper bounds inclusive.Returns a cursor from lower to upper bounds inclusive.Returns a value mapped to the lowest key, ornullif tree is emptyfindLast()Returns a value mapped to the greatest key, ornullif tree is emptyReturns the value to which the specified key is mapped, ornullif this tree contains no mapping for the key.voidinvoke(L key, Object x, IgniteTree.InvokeClosure<T> c) Put value in this tree.Removes the mapping for a key from this tree if it is present.longsize()Returns the number of elements in this tree.
-
Method Details
-
put
Put value in this tree.- Parameters:
val- Value to be associated with the specified key.- Returns:
- The previous value associated with key.
- Throws:
IgniteCheckedException- If failed.
-
invoke
- Parameters:
key- Key.x- Implementation specific argument,nullalways means that we need a full detached data row.c- Closure.- Throws:
IgniteCheckedException- If failed.
-
findOne
Returns the value to which the specified key is mapped, ornullif this tree contains no mapping for the key.- Parameters:
key- the key whose associated value is to be returned- Returns:
- the value to which the specified key is mapped, or
nullif this tree contains no mapping for the key. - Throws:
IgniteCheckedException- If failed.
-
find
Returns a cursor from lower to upper bounds inclusive.- Parameters:
lower- Lower bound ornullif unbounded.upper- Upper bound ornullif unbounded.- Returns:
- Cursor.
- Throws:
IgniteCheckedException- If failed.
-
find
Returns a cursor from lower to upper bounds inclusive.- Parameters:
lower- Lower bound ornullif unbounded.upper- Upper bound ornullif unbounded.x- Implementation specific argument,nullalways means that we need to return full detached data row.- Returns:
- Cursor.
- Throws:
IgniteCheckedException- If failed.
-
findFirst
Returns a value mapped to the lowest key, ornullif tree is empty- Returns:
- Value.
- Throws:
IgniteCheckedException- If failed.
-
findLast
Returns a value mapped to the greatest key, ornullif tree is empty- Returns:
- Value.
- Throws:
IgniteCheckedException- If failed.
-
remove
Removes the mapping for a key from this tree if it is present.- Parameters:
key- Key whose mapping is to be removed from the tree.- Returns:
- The previous value associated with key, or null if there was no mapping for key.
- Throws:
IgniteCheckedException- If failed.
-
size
Returns the number of elements in this tree.- Returns:
- the number of elements in this tree
- Throws:
IgniteCheckedException- If failed.
-