public interface TibMapIterator
An iterator can produce values added to a map after the iterator is created.
To create a map iterator object, see
TibMap.createIterator.
This file defines map iterator calls.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_STRING_MATCHER
Property for map iterator matcher; string.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
currentKey()
Get the key from the current key/value pair.
|
Message |
currentValue()
Get the message value from the current key/value pair.
|
void |
destroy()
Destroy a map iterator object, reclaiming its resources.
|
boolean |
next()
Iterate to the next key/value pair.
|
static final java.lang.String PROPERTY_STRING_MATCHER
Supply this property to
TibMap.createIterator.
Limit the iterator to only matches of the value to this string.
boolean next()
throws FTLException
If the iterator has an associated lock
and the process does not hold that lock,
the call throws an exception and does not
advance to the next pair.
(See also
TibMap.createIterator(lock,props).)
To get the key and value from each pair, see
TibMapIterator.currentKey and
TibMapIterator.currentValue.
FTLExceptionjava.lang.String currentKey()
throws FTLException
The library owns the key string, and may destroy it after the program
calls TibMapIterator.next or
TibMapIterator.destroy.
FTLExceptionMessage currentValue() throws FTLException
The library owns the message object,
and may destroy it after the program
calls TibMapIterator#next or
TibMapIterator.destroy.
FTLExceptionvoid destroy()
throws FTLException
FTLException