public class JsonPathCursor extends Object
Modifier and Type | Method and Description |
---|---|
static JsonPathCursor |
createCursor(String attributePath)
Creates a new cursor from given attribute path.
|
int |
getArrayIndex()
Returns array index if the current item is array and not "any".
|
String |
getAttributePath() |
String |
getCurrent()
Returns the current attribute path part.
|
byte[] |
getCurrentAsUTF8()
Returns byte array of UTF8 encoded
getCurrent() . |
String |
getNext()
Returns the next attribute path part.
|
boolean |
hasNext() |
boolean |
isAny() |
boolean |
isArray() |
void |
reset() |
public static JsonPathCursor createCursor(String attributePath)
attributePath
- public String getAttributePath()
public String getNext()
null
indicates the end of input.null
or the next part of the attribute pathpublic String getCurrent()
null
indicates the end of input.null
or the current part of the attribute pathpublic byte[] getCurrentAsUTF8()
getCurrent()
. This
method caches the UTF8 encoded byte array, so it is more
efficient to call repeteadly.
The returned byte array must not be modified!public boolean isArray()
public boolean isAny()
public int getArrayIndex()
public void reset()
public boolean hasNext()
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.