public class XmlSaxDataContext extends QueryPostprocessDataContext
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_NAME_ROW_ID |
INFORMATION_SCHEMA_NAME
Constructor and Description |
---|
XmlSaxDataContext(File file,
XmlSaxTableDef... tableDefs) |
XmlSaxDataContext(Resource resource,
XmlSaxTableDef... tableDefs) |
XmlSaxDataContext(java.util.function.Supplier<InputSource> inputSourceRef,
XmlSaxTableDef... tableDefs)
Constructs an XML DataContext based on SAX parsing.
|
Modifier and Type | Method and Description |
---|---|
protected Schema |
getMainSchema() |
protected String |
getMainSchemaName() |
protected DataSet |
materializeMainSchemaTable(Table table,
Column[] columns,
int maxRows)
Executes a simple one-table query against a table in the main schema of
the subclasses of this class.
|
addConverter, executeCountQuery, executePrimaryKeyLookupQuery, executeQuery, getDefaultSchemaName, getSchemaByNameInternal, getSchemaNamesInternal, isMainSchemaTable, isScalarFunctionMaterialized, materializeFromItem, materializeMainSchemaTable, materializeMainSchemaTable, materializeMainSchemaTable, materializeTable
compileQuery, executeQuery, executeQuery, getColumnByQualifiedLabel, getDefaultSchema, getSchemaByName, getSchemaNames, getSchemas, getTableByQualifiedLabel, isQualifiedPathDelim, onSchemaCacheRefreshed, parseQuery, query, refreshSchemas
public static final String COLUMN_NAME_ROW_ID
public XmlSaxDataContext(java.util.function.Supplier<InputSource> inputSourceRef, XmlSaxTableDef... tableDefs)
inputSourceRef
- a factory reference for the input source to read the XML from.
The ref will be repeatedly called for each access to the file!tableDefs
- an array of table definitions, which provide instructions as
to the xpaths to apply to the document.XmlSaxTableDef
public XmlSaxDataContext(Resource resource, XmlSaxTableDef... tableDefs)
public XmlSaxDataContext(File file, XmlSaxTableDef... tableDefs)
protected Schema getMainSchema() throws MetaModelException
getMainSchema
in class QueryPostprocessDataContext
MetaModelException
protected String getMainSchemaName() throws MetaModelException
getMainSchemaName
in class QueryPostprocessDataContext
MetaModelException
protected DataSet materializeMainSchemaTable(Table table, Column[] columns, int maxRows)
QueryPostprocessDataContext
materializeMainSchemaTable
in class QueryPostprocessDataContext
table
- the table to querycolumns
- the columns of the table to querymaxRows
- the maximum amount of rows needed or -1 if all rows are
wanted.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.