public interface Cursor extends java.util.Iterator<Value>, java.io.Closeable
Modifier and Type | Interface and Description |
---|---|
static interface |
Cursor.Function<Out> |
Modifier and Type | Method and Description |
---|---|
<Out> Out |
apply(Cursor.Function<Out> f)
Applies a function f to the referenced value, then returns the result of the function.
|
long |
getReadBytes()
Returns the number of the read bytes
|
boolean |
hasNext()
Tests whether there is a next element.
|
boolean |
isArrayValue() |
boolean |
isBinaryValue() |
boolean |
isBooleanValue() |
boolean |
isExtendedValue() |
boolean |
isFloatValue() |
boolean |
isIntegerValue() |
boolean |
isMapValue() |
boolean |
isNilValue() |
boolean |
isNumberValue() |
boolean |
isRawValue() |
boolean |
isStringValue() |
Value |
next()
Returns the materialized value of the referenced value, then proceeds the cursor.
|
ValueRef |
nextRef()
Returns a reference to the value, then proceeds the cursor.
|
void |
skip()
Skip reading the current value.
|
boolean hasNext()
hasNext
in interface java.util.Iterator<Value>
ValueRef nextRef()
hasNext()
is called.Value next()
next
in interface java.util.Iterator<Value>
void skip()
long getReadBytes()
<Out> Out apply(Cursor.Function<Out> f)
Out
- the result type of the functionf
- a function that receives the referenced value.boolean isNilValue()
boolean isBooleanValue()
boolean isNumberValue()
boolean isIntegerValue()
boolean isFloatValue()
boolean isBinaryValue()
boolean isStringValue()
boolean isRawValue()
boolean isArrayValue()
boolean isMapValue()
boolean isExtendedValue()