Skip to main content

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

Declaration
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.

Declaration
public Stream Extract(string sourceDataDefinition)
Returns

System.IO.Stream

Parameters
TypeNameDescription
System.StringsourceDataDefinitionThe 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.

Declaration
public Stream Extract(DataDefinition sourceDataDefinition)
Returns

System.IO.Stream

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.Etl.DataDefinitionsourceDataDefinitionThe source data definition that is used to extract the data.

Load(string, Stream)

Loads the data from the stream into the destination data definition.

Declaration
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
TypeNameDescription
System.StringdestinationDataDefinitionThe destination data definition represented as a json string that is used to load the data.
System.IO.StreamstreamThe stream that contains the data to be loaded.

Load(DataDefinition, Stream)

Loads the data from the stream into the destination data definition.

Declaration
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
TypeNameDescription
Workspace.XBR.Xperiflow.Etl.DataDefinitiondestinationDataDefinitionThe destination data definition that is used to load the data.
System.IO.StreamstreamThe 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.

Declaration
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
TypeNameDescription
Workspace.XBR.Xperiflow.Etl.DataDefinitionsourceDataDefinitionThe source data definition that is used to extract the data.
Workspace.XBR.Xperiflow.Etl.DataDefinitiondestinationDataDefinitionThe 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

Was this page helpful?