public class XmlObjectStreamingConnector extends BaseDataSetConnector implements DataSetConnector<XmlObjectConnectorParams,ConnectorResult>, StreamingConnector<XmlStreamingPackage,XmlProducerPackage>
DEFAULT_IMPORTAPP, COMMAND, ETL_DRIVER, FORMATTER, IDE_NODE, NO_RANK, WIDGET| Constructor and Description |
|---|
XmlObjectStreamingConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeStream(XmlProducerPackage producerPackage)
Executed before record has been streamed.
|
boolean |
canRead()
Checks if connector can read data.
|
boolean |
canWrite()
Checks if connector can write data.
|
void |
cleanUp(XmlObjectConnectorParams params,
DataSet dataSet,
Driver driver)
Cleans up after DataSetConnector populated or persisted DataSet.
|
void |
closeStream(XmlStreamingPackage streamingPackage)
Close stream.
|
boolean |
consume(XmlStreamingPackage streamingPackage,
Object message,
AtomicInteger row)
Consume the next record.
|
void |
endStream(XmlProducerPackage producerPackage)
Executed after record has been streamed.
|
XmlObjectConnectorParams |
getDataSetConnectorParams()
Gets the DataSetConnectorParams.
|
String |
getDisplayName()
Gets the display name.
|
String |
getExt()
Gets the file ext.
|
String |
getName()
Gets the name.
|
String |
getVendor()
Gets the vendor.
|
String |
getVersion()
Gets the version of the extension module.
|
String |
getXmlConfigFileName()
Gets the path to the xml configuration file for the module.
|
protected String |
getXmlTagName(String name,
String defName)
Gets the xml tag name.
|
String |
initQueryLabel()
The init query label.
|
void |
inlinePersist(XmlObjectConnectorParams params,
DataSet dataSet,
Driver driver,
DataSetRecord record,
int row,
int records)
Persists data set row.
|
boolean |
isFileConnector()
Checks if this is a connector to the file based data source.
|
boolean |
isTextFormat()
Checks if this is a connector for the text-based data format, such as
JOSN, XML, etc.
|
ConnectorResult |
persist(XmlObjectConnectorParams params,
DataSet dataSet,
Driver driver)
Persists data set.
|
ConnectorResult |
populate(XmlObjectConnectorParams params,
DataSet dataSet,
Driver driver)
Populates data set.
|
void |
postPersist(XmlObjectConnectorParams params,
DataSet dataSet,
Driver driver)
Called when DataSetConnector finished persisting data set.
|
void |
prePersist(XmlObjectConnectorParams params,
DataSet dataSet,
Driver driver)
Called when DataSetConnector starts persisting data set.
|
void |
startStream(XmlProducerPackage producerPackage)
Start the stream.
|
boolean |
supportsNested()
Supports nested.
|
boolean |
supportsReadStreaming()
Supports read streaming.
|
boolean |
supportsWriteStreaming()
Supports write streaming.
|
String |
transform(Source inputSource,
String xslt)
Transforms given output stream into input stream using xsl style sheet
defined by
xsltSource. |
ConnectorResult |
writeMetaData(XmlObjectConnectorParams params,
DataSet dataSet,
Driver driver)
Writes meta data.
|
addValue, basePostPersist, getCommitPolicy, getInputStream, getIoProcessor, getLicensePropertyName, getReader, getType, postPersistWhenEmpty, setCommitPolicy, stream, supportsWorksheets, testConnectioncompareTo, getConfigFileName, getExtensionRank, getIconPath, getLocalUnitClassPathclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsReordering, supportsWorksheets, testConnectiongetCommitPolicy, setCommitPolicypublic boolean canRead()
DataSetConnectorcanRead in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>public boolean canWrite()
DataSetConnectorcanWrite in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>public void cleanUp(XmlObjectConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorcleanUp in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic XmlObjectConnectorParams getDataSetConnectorParams()
DataSetConnectorgetDataSetConnectorParams in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>public String getDisplayName()
ExtensionModulegetDisplayName in interface ExtensionModulepublic String getExt()
BaseDataSetConnectorgetExt in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>getExt in class BaseDataSetConnectorpublic String getName()
DataSetConnectorgetName in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>public String getVendor()
ExtensionModulegetVendor in interface ExtensionModulepublic String getVersion()
ExtensionModulegetVersion in interface ExtensionModulepublic String getXmlConfigFileName()
ExtensionModulegetXmlConfigFileName in interface ExtensionModulegetXmlConfigFileName in class BaseExtensionprotected String getXmlTagName(String name,
String defName)
name - the inputdefName - the default tag namepublic void inlinePersist(XmlObjectConnectorParams params, DataSet dataSet, Driver driver, DataSetRecord record, int row, int records) throws Exception
DataSetConnectorinlinePersist in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverrecord - the recordrow - the rowrecords - the total number of recordsException - in case of any errorpublic boolean isFileConnector()
DataSetConnectorisFileConnector in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>public boolean isTextFormat()
DataSetConnectorisTextFormat in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>public ConnectorResult persist(XmlObjectConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorpersist in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic ConnectorResult populate(XmlObjectConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorpopulate in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic void postPersist(XmlObjectConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorpostPersist in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic void prePersist(XmlObjectConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorprePersist in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic ConnectorResult writeMetaData(XmlObjectConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorwriteMetaData in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic String transform(Source inputSource,
String xslt)
throws Exception
xsltSource.inputSource - the input sourcexslt - the xsltException - in case of any errorpublic boolean supportsReadStreaming()
DataSetConnectorsupportsReadStreaming in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>public boolean supportsWriteStreaming()
DataSetConnectorsupportsWriteStreaming in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>public boolean supportsNested()
DataSetConnectorsupportsNested in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>public String initQueryLabel()
DataSetConnectorinitQueryLabel in interface DataSetConnector<XmlObjectConnectorParams,ConnectorResult>public boolean consume(XmlStreamingPackage streamingPackage, Object message, AtomicInteger row) throws Exception
StreamingConnectorconsume in interface StreamingConnector<XmlStreamingPackage,XmlProducerPackage>streamingPackage - the streaming packagemessage - the message to consumerow - the current row numberException - in case of any errorpublic void closeStream(XmlStreamingPackage streamingPackage)
StreamingConnectorcloseStream in interface StreamingConnector<XmlStreamingPackage,XmlProducerPackage>streamingPackage - the streaming packagepublic void startStream(XmlProducerPackage producerPackage) throws Exception
StreamingConnectorstartStream in interface StreamingConnector<XmlStreamingPackage,XmlProducerPackage>producerPackage - the producer packageException - the exceptionpublic void beforeStream(XmlProducerPackage producerPackage) throws Exception
StreamingConnectorbeforeStream in interface StreamingConnector<XmlStreamingPackage,XmlProducerPackage>producerPackage - the producer packageException - in case of any errorpublic void endStream(XmlProducerPackage producerPackage) throws Exception
StreamingConnectorendStream in interface StreamingConnector<XmlStreamingPackage,XmlProducerPackage>producerPackage - the producer packageException - in case of any errorCopyright © 2010-2020 Toolsverse. All Rights Reserved.