public class XmlSaxDataContext extends QueryPostprocessDataContext
| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_NAME_ROW_ID |
INFORMATION_SCHEMA_NAME, SYSTEM_PROPERTY_CREATE_DEFAULT_TABLE_ALIAS| Constructor and Description |
|---|
XmlSaxDataContext(File file,
XmlSaxTableDef... tableDefs) |
XmlSaxDataContext(Resource resource,
Collection<XmlSaxTableDef> tableDefs) |
XmlSaxDataContext(Resource resource,
XmlSaxTableDef... tableDefs) |
XmlSaxDataContext(Supplier<InputSource> inputSourceRef,
Collection<XmlSaxTableDef> tableDefs)
Constructs an XML DataContext based on SAX parsing.
|
XmlSaxDataContext(Supplier<InputSource> inputSourceRef,
XmlSaxTableDef... tableDefs) |
| Modifier and Type | Method and Description |
|---|---|
protected Schema |
getMainSchema() |
protected String |
getMainSchemaName() |
protected DataSet |
materializeMainSchemaTable(Table table,
List<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, materializeMainSchemaTableSelect, materializeTablecompileQuery, executeQuery, executeQuery, getColumnByQualifiedLabel, getDefaultSchema, getSchemaByName, getSchemaNames, getSchemas, getTableByQualifiedLabel, isQualifiedPathDelim, onSchemaCacheRefreshed, parseQuery, query, refreshSchemaspublic static final String COLUMN_NAME_ROW_ID
public XmlSaxDataContext(Supplier<InputSource> inputSourceRef, Collection<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 - a collection of table definitions, which provide instructions as
to the xpaths to apply to the document.XmlSaxTableDefpublic XmlSaxDataContext(Supplier<InputSource> inputSourceRef, XmlSaxTableDef... tableDefs)
public XmlSaxDataContext(Resource resource, XmlSaxTableDef... tableDefs)
public XmlSaxDataContext(Resource resource, Collection<XmlSaxTableDef> tableDefs)
public XmlSaxDataContext(File file, XmlSaxTableDef... tableDefs)
protected Schema getMainSchema() throws MetaModelException
getMainSchema in class QueryPostprocessDataContextMetaModelExceptionprotected String getMainSchemaName() throws MetaModelException
getMainSchemaName in class QueryPostprocessDataContextMetaModelExceptionprotected DataSet materializeMainSchemaTable(Table table, List<Column> columns, int maxRows)
QueryPostprocessDataContextmaterializeMainSchemaTable in class QueryPostprocessDataContexttable - 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–2019 The Apache Software Foundation. All rights reserved.