Class JsonReaderUtils
java.lang.Object
org.apache.drill.exec.vector.complex.fn.JsonReaderUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidensureAtLeastOneField(BaseWriter.ComplexWriter writer, Collection<SchemaPath> columns, boolean allTextMode, List<BaseWriter.ListWriter> emptyArrayWriters) static voidwriteColumnsUsingSchema(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
-