Class JsonReaderUtils

java.lang.Object
org.apache.drill.exec.vector.complex.fn.JsonReaderUtils

public class JsonReaderUtils extends Object
  • 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 create
      columns - collection of columns for which writers should be created
      schema - table schema
      allTextMode - whether all primitive writers should be of varchar type