Package org.openrefine.exporters.sql
Class SqlExporter
- java.lang.Object
-
- org.openrefine.exporters.sql.SqlExporter
-
- All Implemented Interfaces:
Exporter
,WriterExporter
public class SqlExporter extends Object implements WriterExporter
-
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_INCLUDE_CONTENT
static String
JSON_INCLUDE_STRUCTURE
static String
JSON_TABLE_NAME
static String
NO_COL_SELECTED_ERROR
static String
NO_OPTIONS_PRESENT_ERROR
-
Constructor Summary
Constructors Constructor Description SqlExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
export(Grid grid, ProjectMetadata projectMetadata, long projectId, Properties params, Engine engine, Writer writer)
String
getContentType()
-
-
-
Field Detail
-
NO_COL_SELECTED_ERROR
public static final String NO_COL_SELECTED_ERROR
- See Also:
- Constant Field Values
-
NO_OPTIONS_PRESENT_ERROR
public static final String NO_OPTIONS_PRESENT_ERROR
- See Also:
- Constant Field Values
-
JSON_INCLUDE_STRUCTURE
public static final String JSON_INCLUDE_STRUCTURE
- See Also:
- Constant Field Values
-
JSON_INCLUDE_CONTENT
public static final String JSON_INCLUDE_CONTENT
- See Also:
- Constant Field Values
-
JSON_TABLE_NAME
public static final String JSON_TABLE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceExporter
- Returns:
- MIME content type handled by exporter
-
export
public void export(Grid grid, ProjectMetadata projectMetadata, long projectId, Properties params, Engine engine, Writer writer) throws IOException
- Specified by:
export
in interfaceWriterExporter
- Throws:
IOException
-
-