public class TSVDriverFunction extends Object implements org.h2gis.api.DriverFunction
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Constructor and Description |
|---|
TSVDriverFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
exportFromResultSet(Connection connection,
ResultSet res,
File fileName,
org.h2gis.api.ProgressVisitor progress,
String encoding)
Export a resultset to a TSV file
|
void |
exportTable(Connection connection,
String tableReference,
File fileName,
org.h2gis.api.ProgressVisitor progress) |
void |
exportTable(Connection connection,
String tableReference,
File fileName,
org.h2gis.api.ProgressVisitor progress,
String encoding)
Export a table or a query to as TSV file
|
String[] |
getExportFormats() |
String |
getFormatDescription(String format) |
org.h2gis.api.DriverFunction.IMPORT_DRIVER_TYPE |
getImportDriverType() |
String[] |
getImportFormats() |
void |
importFile(Connection connection,
String tableReference,
File fileName,
org.h2gis.api.ProgressVisitor progress) |
void |
importFile(Connection connection,
String tableReference,
File fileName,
org.h2gis.api.ProgressVisitor progress,
boolean deleteTables) |
void |
importFile(Connection connection,
String tableReference,
File fileName,
org.h2gis.api.ProgressVisitor progress,
String options) |
boolean |
isSpatialFormat(String extension) |
public static String DESCRIPTION
public org.h2gis.api.DriverFunction.IMPORT_DRIVER_TYPE getImportDriverType()
getImportDriverType in interface org.h2gis.api.DriverFunctionpublic String[] getImportFormats()
getImportFormats in interface org.h2gis.api.DriverFunctionpublic String[] getExportFormats()
getExportFormats in interface org.h2gis.api.DriverFunctionpublic String getFormatDescription(String format)
getFormatDescription in interface org.h2gis.api.DriverFunctionpublic boolean isSpatialFormat(String extension)
isSpatialFormat in interface org.h2gis.api.DriverFunctionpublic void exportTable(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException
exportTable in interface org.h2gis.api.DriverFunctionSQLExceptionIOExceptionpublic void exportTable(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress, String encoding) throws SQLException, IOException
exportTable in interface org.h2gis.api.DriverFunctionconnection - Active connection, do not close this connection.tableReference - [[catalog.]schema.]table referencefileName - File path to readprogress - encoding - SQLExceptionIOExceptionpublic void exportFromResultSet(Connection connection, ResultSet res, File fileName, org.h2gis.api.ProgressVisitor progress, String encoding) throws SQLException
connection - res - fileName - progress - encoding - SQLExceptionpublic void importFile(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException
importFile in interface org.h2gis.api.DriverFunctionSQLExceptionIOExceptionpublic void importFile(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress, String options) throws SQLException, IOException
importFile in interface org.h2gis.api.DriverFunctionSQLExceptionIOExceptionpublic void importFile(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress, boolean deleteTables) throws SQLException, IOException
importFile in interface org.h2gis.api.DriverFunctionSQLExceptionIOExceptionCopyright © 2019 CNRS. All rights reserved.