Class SchemaMetadataJsonConverter
- java.lang.Object
-
- com.exasol.adapter.metadata.converter.SchemaMetadataJsonConverter
-
public final class SchemaMetadataJsonConverter extends Object
This class converts the schema metadata to its JSON representation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.json.JsonObject
convert(SchemaMetadata schemaMetadata)
Convert the given schema metadata to its JSON representationjavax.json.JsonObject
convertType(DataType dataType)
Convert a data type to its JSON representationstatic SchemaMetadataJsonConverter
getInstance()
Get the singleton instance of theSchemaMetadataJsonConverter
-
-
-
Method Detail
-
getInstance
public static SchemaMetadataJsonConverter getInstance()
Get the singleton instance of theSchemaMetadataJsonConverter
- Returns:
- converter instance
-
convert
public javax.json.JsonObject convert(SchemaMetadata schemaMetadata)
Convert the given schema metadata to its JSON representation- Parameters:
schemaMetadata
- schemaMetadata to be converted into JSON- Returns:
- JSON representation
-
convertType
public javax.json.JsonObject convertType(DataType dataType)
Convert a data type to its JSON representation- Parameters:
dataType
- data type to be converted- Returns:
- JSON representation
-
-