Package com.exasol.adapter.document.edml
Class EdmlDefinition
- java.lang.Object
-
- com.exasol.adapter.document.edml.EdmlDefinition
-
public class EdmlDefinition extends Object
Java representation of an EDML definition file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEdmlDefinition.EdmlDefinitionBuilderA builder forEdmlDefinition.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EdmlDefinition.EdmlDefinitionBuilderbuilder()Create a new builder forEdmlDefinition.booleanequals(Object obj)StringgetAdditionalConfiguration()Get the optional additional configuration options.StringgetDescription()Get the description.StringgetDestinationTable()Get the name of the destination table in Exasol Virtual Schema.MappingDefinitiongetMapping()Get the mapping for the document's properties.StringgetSource()Get the source reference, i.e.inthashCode()booleanisAddSourceReferenceColumn()Check if a source reference column should be added.StringtoString()
-
-
-
Method Detail
-
builder
public static EdmlDefinition.EdmlDefinitionBuilder builder()
Create a new builder forEdmlDefinition.- Returns:
- a new builder for
EdmlDefinition
-
getSource
public String getSource()
Get the source reference, i.e. the table name or resource identifier.- Returns:
- the source reference
-
getDestinationTable
public String getDestinationTable()
Get the name of the destination table in Exasol Virtual Schema.- Returns:
- destination table
-
getDescription
public String getDescription()
Get the description.- Returns:
- description
-
isAddSourceReferenceColumn
public boolean isAddSourceReferenceColumn()
Check if a source reference column should be added. If set totrue, this adapter adds the source reference as a column namedSOURCE_REFERENCEto the Exasol table.This feature is mainly useful if multiple sources are used (not supported by all dialects). In that case you can filter on the source name.
- Returns:
trueif a source reference should be added.
-
getMapping
public MappingDefinition getMapping()
Get the mapping for the document's properties. Typically you want to definefieldshere to define mappings for this document's properties. But you can also usetoJsonMappingmapping here. In that case the whole document is mapped to a JSON string.You can omit the
mappingelement to enable auto-inference.- Returns:
- the mapping
-
getAdditionalConfiguration
public String getAdditionalConfiguration()
Get the optional additional configuration options.- Returns:
- additional configuration
-
-