Interface JsonLoader

All Known Implementing Classes:
JsonLoaderImpl, KafkaJsonLoader

public interface JsonLoader
Enhanced second-generation JSON loader which takes an input source and creates a series of record batches using the ResultSetLoader abstraction.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
    Column property specific to the JSON loader.
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases resources held by this class including the input stream.
    boolean
    Read one batch of row data.
  • Field Details

    • JSON_MODE

      static final String JSON_MODE
      Column property specific to the JSON loader. Mode for reading Varchar columns from JSON. One of:
    • JSON_TYPED_MODE: Read using normal typing rules (default).
    • JSON_TEXT_MODE: Like the JSON format plugin's "all-text mode", but for a single column. That JSON field is read as text regardless of the actual value. Applies only to scalars.
    • JSON_LITERAL_MODE: Causes the field, and all its children, to be read as literal JSON: the values are returned as a valid JSON string.