Package com.exasol.adapter.document.edml
Class ToTableMapping
- java.lang.Object
-
- com.exasol.adapter.document.edml.ToTableMapping
-
- All Implemented Interfaces:
MappingDefinition
public final class ToTableMapping extends Object implements MappingDefinition
Java representation of the EDMLtoTableMapping. This mapping is used for normalizing documents to table structures. It creates a new table in the resulting virtual schema named:<NAME_OF_PARENT>_<GIVEN_NAME>.You can define the columns of this table using the mapping property. If the parent table defines a key using one or more
toVarcharMappingsfor a key or secondary index in the document database, this will be used as foreign key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classToTableMapping.ToTableMappingBuilderBuilder forToTableMapping.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(MappingDefinitionVisitor visitor)Accept aMappingDefinitionVisitor.static ToTableMapping.ToTableMappingBuilderbuilder()Create a new builder forToTableMapping.booleanequals(Object obj)StringgetDescription()Get the optional description.StringgetDestinationTable()Get the destination table.MappingDefinitiongetMapping()Get the mapping for the columns of the new table.inthashCode()StringtoString()
-
-
-
Method Detail
-
accept
public void accept(MappingDefinitionVisitor visitor)
Description copied from interface:MappingDefinitionAccept aMappingDefinitionVisitor.- Specified by:
acceptin interfaceMappingDefinition- Parameters:
visitor- visitor to accept
-
builder
public static ToTableMapping.ToTableMappingBuilder builder()
Create a new builder forToTableMapping.- Returns:
- a new builder for
ToTableMapping
-
getDestinationTable
public String getDestinationTable()
Get the destination table.- Returns:
- destination table
-
getMapping
public MappingDefinition getMapping()
Get the mapping for the columns of the new table. If the document list contains non-objects (like strings) here, you can directly usetoVarcharMappinghere. Otherwise, if the list contains objects, you can define mappings for the nested properties usingfields.- Returns:
- mapping
-
getDescription
public String getDescription()
Get the optional description. Using this property you can provide documentation.- Returns:
- description
-
-