Package com.exasol.adapter.document.edml
Class ToJsonMapping
- java.lang.Object
-
- com.exasol.adapter.document.edml.AbstractToColumnMapping
-
- com.exasol.adapter.document.edml.AbstractToVarcharColumnMapping
-
- com.exasol.adapter.document.edml.ToJsonMapping
-
- All Implemented Interfaces:
MappingDefinition
public final class ToJsonMapping extends AbstractToVarcharColumnMapping
Java representation of the EDMLtoJsonMapping. Maps the selected document property and all its descendants to a JSON string. You can also use this mapping directly for a whole document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classToJsonMapping.ToJsonMappingBuilder<B extends ToJsonMapping.ToJsonMappingBuilder<B>>Builder forToJsonMapping.-
Nested classes/interfaces inherited from class com.exasol.adapter.document.edml.AbstractToVarcharColumnMapping
AbstractToVarcharColumnMapping.AbstractToVarcharColumnMappingBuilder<C extends AbstractToVarcharColumnMapping,B extends AbstractToVarcharColumnMapping.AbstractToVarcharColumnMappingBuilder<C,B>>
-
Nested classes/interfaces inherited from class com.exasol.adapter.document.edml.AbstractToColumnMapping
AbstractToColumnMapping.AbstractToColumnMappingBuilder<C extends AbstractToColumnMapping,B extends AbstractToColumnMapping.AbstractToColumnMappingBuilder<C,B>>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(MappingDefinitionVisitor visitor)Accept aMappingDefinitionVisitor.static ToJsonMapping.ToJsonMappingBuilder<?>builder()Create a new builder forToJsonMapping.booleanequals(Object obj)MappingErrorBehaviourgetOverflowBehaviour()Get the behaviour to apply in case a value exceeds the size of the Exasol column.inthashCode()StringtoString()-
Methods inherited from class com.exasol.adapter.document.edml.AbstractToVarcharColumnMapping
getVarcharColumnSize
-
Methods inherited from class com.exasol.adapter.document.edml.AbstractToColumnMapping
getDescription, getDestinationName, getKey, isRequired
-
-
-
-
Method Detail
-
accept
public void accept(MappingDefinitionVisitor visitor)
Description copied from interface:MappingDefinitionAccept aMappingDefinitionVisitor.- Parameters:
visitor- visitor to accept
-
builder
public static ToJsonMapping.ToJsonMappingBuilder<?> builder()
Create a new builder forToJsonMapping.- Returns:
- a new builder for
ToJsonMapping
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractToVarcharColumnMapping
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractToVarcharColumnMapping
-
toString
public String toString()
- Overrides:
toStringin classAbstractToVarcharColumnMapping
-
getOverflowBehaviour
public MappingErrorBehaviour getOverflowBehaviour()
Get the behaviour to apply in case a value exceeds the size of the Exasol column.- Returns:
- the overflow behaviour
-
-