Class TokenIterator
java.lang.Object
org.apache.drill.exec.store.easy.json.parser.TokenIterator
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Internal exception to unwind the stack when a syntax error is detected within a record. -
Field Summary
-
Constructor Summary
ConstructorDescriptionTokenIterator
(Iterable<InputStream> streams, Function<InputStream, com.fasterxml.jackson.core.JsonParser> parserFunction, JsonStructureOptions options, ErrorFactory errorFactory) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
void
close()
int
context()
double
com.fasterxml.jackson.core.JsonParser
invalidValue
(com.fasterxml.jackson.core.JsonToken token) int
long
com.fasterxml.jackson.core.JsonToken
next()
com.fasterxml.jackson.core.JsonToken
peek()
com.fasterxml.jackson.core.JsonToken
token()
void
unget
(com.fasterxml.jackson.core.JsonToken token)
-
Field Details
-
MAX_LOOKAHEAD
public static final int MAX_LOOKAHEAD- See Also:
-
-
Constructor Details
-
TokenIterator
public TokenIterator(Iterable<InputStream> streams, Function<InputStream, com.fasterxml.jackson.core.JsonParser> parserFunction, JsonStructureOptions options, ErrorFactory errorFactory)
-
-
Method Details
-
getParser
public com.fasterxml.jackson.core.JsonParser getParser() -
errorFactory
-
next
public com.fasterxml.jackson.core.JsonToken next() -
context
-
lineNumber
public int lineNumber() -
columnNumber
public int columnNumber() -
token
-
requireNext
public com.fasterxml.jackson.core.JsonToken requireNext() -
peek
public com.fasterxml.jackson.core.JsonToken peek() -
unget
public void unget(com.fasterxml.jackson.core.JsonToken token) -
textValue
-
longValue
public long longValue() -
stringValue
-
doubleValue
public double doubleValue() -
binaryValue
public byte[] binaryValue() -
invalidValue
-
close
- Throws:
IOException
-