Package org.h2gis.functions.io.dbf
Class DBFEngine
- All Implemented Interfaces:
org.h2.api.TableEngine
SHP Table factory.
- Author:
- Nicolas Fortin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DBFDrivercreateDriver(File filePath, List<String> args) Create the driver instance using the file name and additional arguments provided in SQL create table request.protected voidfeedCreateTableData(DBFDriver driver, org.h2.command.ddl.CreateTableData data) Add columns definition of the file into the CreateTableData instance.static voidfeedTableDataFromHeader(DbaseFileHeader header, org.h2.command.ddl.CreateTableData data) Parse the DBF file then init the provided data structureMethods inherited from class org.h2gis.functions.io.file_table.FileEngine
createTable, getUniqueColumnName
-
Constructor Details
-
DBFEngine
public DBFEngine()
-
-
Method Details
-
createDriver
Description copied from class:FileEngineCreate the driver instance using the file name and additional arguments provided in SQL create table request.- Specified by:
createDriverin classFileEngine<DBFDriver>- Parameters:
filePath- First argument, file nameargs- Additional argument, contains the file name as first argument- Returns:
- Instance of FileDriver
- Throws:
IOException
-
feedCreateTableData
protected void feedCreateTableData(DBFDriver driver, org.h2.command.ddl.CreateTableData data) throws IOException Description copied from class:FileEngineAdd columns definition of the file into the CreateTableData instance.- Specified by:
feedCreateTableDatain classFileEngine<DBFDriver>- Parameters:
driver- driver objectdata- Data to initialise- Throws:
IOException
-
feedTableDataFromHeader
public static void feedTableDataFromHeader(DbaseFileHeader header, org.h2.command.ddl.CreateTableData data) throws IOException Parse the DBF file then init the provided data structure- Parameters:
header- dbf headerdata- Data to initialise- Throws:
IOException
-