public class JsonReaderUtils extends Object
| Constructor and Description |
|---|
JsonReaderUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureAtLeastOneField(org.apache.drill.exec.vector.complex.writer.BaseWriter.ComplexWriter writer,
Collection<SchemaPath> columns,
boolean allTextMode,
List<org.apache.drill.exec.vector.complex.writer.BaseWriter.ListWriter> emptyArrayWriters) |
static void |
writeColumnsUsingSchema(org.apache.drill.exec.vector.complex.writer.BaseWriter.ComplexWriter writer,
Collection<SchemaPath> columns,
TupleMetadata schema,
boolean allTextMode)
Creates writers which correspond to the specified schema for specified root writer.
|
public static void ensureAtLeastOneField(org.apache.drill.exec.vector.complex.writer.BaseWriter.ComplexWriter writer,
Collection<SchemaPath> columns,
boolean allTextMode,
List<org.apache.drill.exec.vector.complex.writer.BaseWriter.ListWriter> emptyArrayWriters)
public static void writeColumnsUsingSchema(org.apache.drill.exec.vector.complex.writer.BaseWriter.ComplexWriter writer,
Collection<SchemaPath> columns,
TupleMetadata schema,
boolean allTextMode)
writer - parent writer for writers to createcolumns - collection of columns for which writers should be createdschema - table schemaallTextMode - whether all primitive writers should be of varchar typeCopyright © 2021 The Apache Software Foundation. All rights reserved.