public interface FileParser
File parsing class to be used with InsertIntoTable for inserting data into a Hive table from a
File.| Modifier and Type | Method and Description |
|---|---|
List<String> |
getColumnNames(File file)
Parses the given file and returns the column names that are available in the file.
|
boolean |
hasColumnNames()
Method that checks if the parser has access to column names.
|
List<Object[]> |
parse(File file,
org.apache.hive.hcatalog.data.schema.HCatSchema schema,
List<String> names)
Parses the given file and returns the rows with the requested columns.
|
List<Object[]> parse(File file, org.apache.hive.hcatalog.data.schema.HCatSchema schema, List<String> names)
List<String> getColumnNames(File file)
file - The file to be parsedList of column names as Stringsboolean hasColumnNames()
Copyright © 2013–2020. All rights reserved.