Class UnstructuredEtlManager
The UnstructuredEtlManager
class is responsible for managing the extraction and loading of unstructured data.
Implements the [Workspace.XBR.Xperiflow.Etl.Unstructured.IUnstructuredEtlManager](../Xperiflow.Etl.Unstructured/IUnstructuredEtlManager.md)
interface.
Using a [Workspace.XBR.Xperiflow.Etl.Unstructured.UnstructuredEtlManager](../Xperiflow.Etl.Unstructured/UnstructuredEtlManager.md)
, you can extract unstructured data from a source and load it into a destination
in separate steps, or with a call to ExtractAndLoad()
.
Use the XBRApi to instantiate an [Workspace.XBR.Xperiflow.Etl.Unstructured.IUnstructuredEtlManager](../Xperiflow.Etl.Unstructured/IUnstructuredEtlManager.md)
.
For example:
Example:
` var etlManager = XBRApi.Etl.GetUnstructuredEtlManager(si); `
Example:
` var stream = etlManager.Extract(sourceData); `
Example:
` etlManager.Load(destinationData, stream) `
- OR more simply-
Example:
` etlManager.ExtractAndLoad(sourceDataDefinition, destinationDataDefinition); `
Namespace: Workspace.XBR.Xperiflow.Etl.Unstructured
Assembly: Xperiflow.dll
public class UnstructuredEtlManager : IUnstructuredEtlManager
Implements: Workspace.XBR.Xperiflow.Etl.Unstructured.IUnstructuredEtlManager
Methods
Extract(string)
Extracts the data from the source data definition and returns the data as a Stream object.
public Stream Extract(string sourceDataDefinition)
Returns
System.IO.Stream
Parameters
Type | Name | Description |
---|---|---|
System.String | sourceDataDefinition | The source data definition represented as a json string that is used to extract the data. |
Extract(DataDefinition)
Extracts the data from the source data definition and returns the data as a Stream object.
public Stream Extract(DataDefinition sourceDataDefinition)
Returns
System.IO.Stream
Parameters
Type | Name | Description |
---|---|---|
Workspace.XBR.Xperiflow.Etl.DataDefinition | sourceDataDefinition | The source data definition that is used to extract the data. |
Load(string, Stream)
Loads the data from the stream into the destination data definition.
public void Load(string destinationDataDefinition, Stream stream)
Remarks
Note that you can only load data into a destination that does not already have data.
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationDataDefinition | The destination data definition represented as a json string that is used to load the data. |
System.IO.Stream | stream | The stream that contains the data to be loaded. |
Load(DataDefinition, Stream)
Loads the data from the stream into the destination data definition.
public void Load(DataDefinition destinationDataDefinition, Stream stream)
Remarks
Note that you can only load data into a destination that does not already have data.
Parameters
Type | Name | Description |
---|---|---|
Workspace.XBR.Xperiflow.Etl.DataDefinition | destinationDataDefinition | The destination data definition that is used to load the data. |
System.IO.Stream | stream | The stream that contains the data to be loaded. |
ExtractAndLoad(DataDefinition, DataDefinition)
Extracts the data from the source data definition and immediatly loads the data into the destination data definition.
public void ExtractAndLoad(DataDefinition sourceDataDefinition, DataDefinition destinationDataDefinition)
Remarks
Note that you can only load data into a destination that does not already have data.
Parameters
Type | Name | Description |
---|---|---|
Workspace.XBR.Xperiflow.Etl.DataDefinition | sourceDataDefinition | The source data definition that is used to extract the data. |
Workspace.XBR.Xperiflow.Etl.DataDefinition | destinationDataDefinition | The destination data definition that is used to load the data. |
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object,System.Object)
System.Object.GetHashCode
System.Object.GetType
System.Object.MemberwiseClone
System.Object.ReferenceEquals(System.Object,System.Object)
System.Object.ToString