public class JsonReaderUtils extends Object
Constructor and Description |
---|
JsonReaderUtils() |
Modifier and Type | Method and Description |
---|---|
static 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.
|
public static void ensureAtLeastOneField(BaseWriter.ComplexWriter writer, Collection<SchemaPath> columns, boolean allTextMode, List<BaseWriter.ListWriter> emptyArrayWriters)
public static void writeColumnsUsingSchema(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 © 1970 The Apache Software Foundation. All rights reserved.