public abstract static class InputFormats.FlatTextFormatDefn extends InputFormats.BaseFormatDefn
Note that not all the fields in
FlatTextInputFormat appear here:
findColumnsFromHeader - not yet supported in MSQ.hasHeaderRow - Always set to false since we don't bother to read
it. skipHeaderRows is used to specify the number of header
rows to skip.| Modifier and Type | Field and Description |
|---|---|
static String |
LIST_DELIMITER_PARAMETER |
static String |
SKIP_ROWS_PARAMETER |
| Constructor and Description |
|---|
FlatTextFormatDefn(List<TableFunction.ParameterDefn> parameters) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustValues(Map<String,Object> jsonMap) |
InputFormat |
convertFromTable(ResolvedExternalTable table)
Create an input format from a resolved catalog table spec.
|
protected Map<String,Object> |
mapFromArgs(Map<String,Object> args,
List<ColumnSpec> columns) |
protected Map<String,Object> |
toMap(ResolvedExternalTable table) |
void |
validate(ResolvedExternalTable table)
Given a resolved table that has the serialized JSON converted to a Java map,
validate the values of that map, typically by converting that map the target
input format object (after adjustments and filling in dummy columns.) THe
goal is to validate the information the user has provided in the table spec.
|
convert, convertColumns, inputFormatClass, parametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertFromArgs, typeValuepublic static final String LIST_DELIMITER_PARAMETER
public static final String SKIP_ROWS_PARAMETER
public FlatTextFormatDefn(List<TableFunction.ParameterDefn> parameters)
public void validate(ResolvedExternalTable table)
InputFormatDefnvalidate in interface InputFormatDefnvalidate in class InputFormats.BaseFormatDefnprotected Map<String,Object> toMap(ResolvedExternalTable table)
protected Map<String,Object> mapFromArgs(Map<String,Object> args, List<ColumnSpec> columns)
public InputFormat convertFromTable(ResolvedExternalTable table)
InputFormatDefnconvertFromTable in interface InputFormatDefnconvertFromTable in class InputFormats.BaseFormatDefntable - resolved form of a table spec, with the format JSON parsed into
a JSON mapCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.