public static class InputFormats.JsonFormatDefn extends InputFormats.BaseFormatDefn
| Constructor and Description |
|---|
JsonFormatDefn() |
| Modifier and Type | Method and Description |
|---|---|
InputFormat |
convertFromArgs(Map<String,Object> args,
List<ColumnSpec> columns,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
Create an input format instance from the values provided as arguments that
correspond to the defined parameters.
|
protected Class<? extends InputFormat> |
inputFormatClass()
The target input format class for Jackson conversions.
|
String |
typeValue() |
convert, convertColumns, convertFromTable, parameters, validatepublic static final String TYPE_KEY
public String typeValue()
format
property for SQL functions.protected Class<? extends InputFormat> inputFormatClass()
InputFormats.BaseFormatDefninputFormatClass in class InputFormats.BaseFormatDefnpublic InputFormat convertFromArgs(Map<String,Object> args, List<ColumnSpec> columns, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
InputFormatDefnargs - the actual arguments for the defined parameterscolumns - the columns provided in SQL, typically via the `EXTEND` clause,
but perhaps from an the table spec, if the function is for
a partial tablejsonMapper - the mapper to use to perform conversionsCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.