public class XMLSystemFunctions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XMLSystemFunctions.ExtendedWriter
An extension to the standard writer to allow for
direct inclusion of large values by reference rather than by copy
|
static class |
XMLSystemFunctions.XmlConcat |
| Constructor and Description |
|---|
XMLSystemFunctions() |
| Modifier and Type | Method and Description |
|---|---|
static Source |
convertToSource(Object value) |
static InputStreamReader |
getJsonReader(Blob json) |
static XMLOutputFactory |
getOutputFactory() |
static XMLOutputFactory |
getOutputFactory(boolean repairing) |
static SQLXML |
jsonToXml(CommandContext context,
String rootName,
Blob json) |
static SQLXML |
jsonToXml(CommandContext context,
String rootName,
Blob json,
boolean stream) |
static SQLXML |
jsonToXml(CommandContext context,
String rootName,
Clob json) |
static SQLXML |
jsonToXml(CommandContext context,
String rootName,
Clob json,
boolean stream) |
static SQLXMLImpl |
saveToBufferManager(BufferManager bufferMgr,
XMLTranslator translator,
CommandContext context)
This method saves the given XML object to the buffer manager's disk process
Documents less than the maxMemorySize will be held directly in memory
|
static Object |
serialize(XMLSerialize xs,
XMLType value) |
static XMLType |
xmlComment(String comment) |
static XMLType |
xmlConcat(CommandContext context,
XMLType xml,
Object... other) |
static XMLType |
xmlElement(CommandContext context,
String name,
Evaluator.NameValuePair<String>[] namespaces,
Evaluator.NameValuePair<?>[] attributes,
List<?> contents)
Basic support for xmlelement.
|
static XMLType |
xmlForest(CommandContext context,
Evaluator.NameValuePair[] namespaces,
Evaluator.NameValuePair[] values) |
static XMLType |
xmlPi(String name) |
static XMLType |
xmlPi(String name,
String content) |
static XMLType |
xmlText(String val) |
static ClobType |
xslTransform(CommandContext context,
Object xml,
Object styleSheet) |
public static XMLOutputFactory getOutputFactory() throws FactoryConfigurationError
FactoryConfigurationErrorpublic static ClobType xslTransform(CommandContext context, Object xml, Object styleSheet) throws Exception
Exceptionpublic static XMLType xmlForest(CommandContext context, Evaluator.NameValuePair[] namespaces, Evaluator.NameValuePair[] values) throws TeiidComponentException, TeiidProcessingException
public static XMLType xmlElement(CommandContext context, String name, Evaluator.NameValuePair<String>[] namespaces, Evaluator.NameValuePair<?>[] attributes, List<?> contents) throws TeiidComponentException, TeiidProcessingException
context - name - contents - TeiidComponentExceptionTeiidProcessingExceptionpublic static XMLType xmlConcat(CommandContext context, XMLType xml, Object... other) throws TeiidProcessingException
TeiidProcessingExceptionpublic static XMLType xmlComment(String comment) throws FunctionExecutionException
FunctionExecutionExceptionpublic static Source convertToSource(Object value) throws TeiidProcessingException
TeiidProcessingExceptionpublic static SQLXML jsonToXml(CommandContext context, String rootName, Blob json) throws TeiidComponentException, TeiidProcessingException, SQLException, IOException
public static SQLXML jsonToXml(CommandContext context, String rootName, Blob json, boolean stream) throws TeiidComponentException, TeiidProcessingException, SQLException, IOException
public static InputStreamReader getJsonReader(Blob json) throws SQLException, IOException
SQLExceptionIOExceptionpublic static SQLXML jsonToXml(CommandContext context, String rootName, Clob json) throws TeiidComponentException, TeiidProcessingException, SQLException
public static SQLXML jsonToXml(CommandContext context, String rootName, Clob json, boolean stream) throws TeiidComponentException, TeiidProcessingException, SQLException
public static SQLXMLImpl saveToBufferManager(BufferManager bufferMgr, XMLTranslator translator, CommandContext context) throws TeiidComponentException, TeiidProcessingException
public static Object serialize(XMLSerialize xs, XMLType value) throws TransformationException
TransformationExceptionpublic static XMLOutputFactory getOutputFactory(boolean repairing)
@TeiidFunction(category="XML", nullOnNull=true) public static XMLType xmlText(String val) throws XMLStreamException, FactoryConfigurationError, IOException, TransformerException
Copyright © 2019. All rights reserved.