Class JsonReaderUtils
java.lang.Object
org.apache.drill.exec.vector.complex.fn.JsonReaderUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
ensureAtLeastOneField
(BaseWriter.ComplexWriter writer, Collection<SchemaPath> columns, boolean allTextMode, List<BaseWriter.ListWriter> emptyArrayWriters) static void
writeColumnsUsingSchema
(BaseWriter.ComplexWriter writer, Collection<SchemaPath> columns, TupleMetadata schema, boolean allTextMode) Creates writers which correspond to the specified schema for specified root writer.
-
Constructor Details
-
JsonReaderUtils
public JsonReaderUtils()
-
-
Method Details
-
ensureAtLeastOneField
public static void ensureAtLeastOneField(BaseWriter.ComplexWriter writer, Collection<SchemaPath> columns, boolean allTextMode, List<BaseWriter.ListWriter> emptyArrayWriters) -
writeColumnsUsingSchema
public static void writeColumnsUsingSchema(BaseWriter.ComplexWriter writer, Collection<SchemaPath> columns, TupleMetadata schema, boolean allTextMode) Creates writers which correspond to the specified schema for specified root writer.- Parameters:
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 type
-