public interface LongColumnIterator
LongColumnMap object.
Typical usage of this class is as follows:
LongColumnIterator iter = someLongColumnMap.iterator();
while (iter.hasNext()) {
iter.advance();
int columnId = iter.getColumnId();
long value = iter.getValue();
}
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
Advance the iterator to the next columnId-value pair.
|
int |
getColumnId()
Returns the columnId of the current columnId-value pair.
|
long |
getValue()
Returns the value of the current columnId-value pair.
|
boolean |
hasNext()
Check whether the iterator has a next element.
|
void |
incValue(long value)
Increments the value of the current columnId-value pair.
|
void |
setValue(long value)
Sets the value of the current columnId-value pair.
|
boolean hasNext()
void advance()
int getColumnId()
long getValue()
void setValue(long value)
value - new value to be set.void incValue(long value)
value - value to increment by.