Class SaxonXQueryExpression

  • All Implemented Interfaces:
    Cloneable, org.teiid.query.xquery.XQueryExpression

    public class SaxonXQueryExpression
    extends Object
    implements org.teiid.query.xquery.XQueryExpression
    • Field Detail

      • DEFAULT_OUTPUT_PROPERTIES

        public static final Properties DEFAULT_OUTPUT_PROPERTIES
      • isValidAncestorAxis

        public static final boolean[] isValidAncestorAxis
    • Method Detail

      • compile

        public static SaxonXQueryExpression compile​(String xQueryString,
                                                    org.teiid.query.sql.symbol.XMLNamespaces namespaces,
                                                    List<org.teiid.query.sql.symbol.DerivedColumn> passing,
                                                    List<org.teiid.query.sql.lang.XMLTable.XMLColumn> columns)
                                             throws org.teiid.api.exception.query.QueryResolverException
        Throws:
        org.teiid.api.exception.query.QueryResolverException
      • usesContextItem

        public boolean usesContextItem()
        Specified by:
        usesContextItem in interface org.teiid.query.xquery.XQueryExpression
      • useDocumentProjection

        public void useDocumentProjection​(List<org.teiid.query.sql.lang.XMLTable.XMLColumn> columns,
                                          org.teiid.query.analysis.AnalysisRecord record)
        Specified by:
        useDocumentProjection in interface org.teiid.query.xquery.XQueryExpression
      • createXMLType

        public org.teiid.core.types.XMLType createXMLType​(net.sf.saxon.om.SequenceIterator iter,
                                                          org.teiid.common.buffer.BufferManager bufferManager,
                                                          boolean emptyOnEmpty,
                                                          org.teiid.query.util.CommandContext context)
                                                   throws net.sf.saxon.trans.XPathException,
                                                          org.teiid.core.TeiidComponentException,
                                                          org.teiid.core.TeiidProcessingException
        Throws:
        net.sf.saxon.trans.XPathException
        org.teiid.core.TeiidComponentException
        org.teiid.core.TeiidProcessingException
      • getType

        public static org.teiid.core.types.XMLType.Type getType​(net.sf.saxon.om.NodeInfo info)
      • getConfig

        public net.sf.saxon.Configuration getConfig()
      • showArcs

        public static void showArcs​(StringBuilder sb,
                                    net.sf.saxon.expr.parser.PathMap.PathMapNode node,
                                    int level)
      • isStreaming

        public boolean isStreaming()
        Streaming eligible if using document projection and the context path is streamable.
      • getXPathExpression

        public net.sf.saxon.sxpath.XPathExpression getXPathExpression​(String name)