public interface JsonLoader
ResultSetLoader
abstraction.Modifier and Type | Field and Description |
---|---|
static String |
JSON_LITERAL_MODE |
static String |
JSON_MODE
Column property specific to the JSON loader.
|
static String |
JSON_TEXT_MODE |
static String |
JSON_TYPED_MODE |
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases resources held by this class including the input stream.
|
boolean |
readBatch()
Read one record of data.
|
static final String JSON_MODE
JSON_TYPED_MODE
: Read using normal typing rules
(default).JSON_TEXT_MODE
: Like the JSON format plugin's
"all-text mode", but for a single column. That JSON field is
read as text regardless of the actual value. Applies only to
scalars.JSON_LITERAL_MODE
: Causes the field, and all its
children, to be read as literal JSON: the values are returned
as a valid JSON string.static final String JSON_TEXT_MODE
static final String JSON_TYPED_MODE
static final String JSON_LITERAL_MODE
boolean readBatch()
true
if a record was loaded, false
if EOF.{org.apache.drill.common.exceptions.UserException
- for most errorsRuntimeException
- for unexpected errors, most often due
to code errorsvoid close()
Copyright © 2021 The Apache Software Foundation. All rights reserved.