|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cursor
Cursor for traversing a stream of message-packed values
Nested Class Summary | |
---|---|
static interface |
Cursor.Function<Out>
|
Method Summary | ||
---|---|---|
|
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. |
Methods inherited from interface java.util.Iterator |
---|
remove |
Methods inherited from interface java.io.Closeable |
---|
close |
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |