Class HstoreConverter
java.lang.Object
io.debezium.connector.jdbc.dialect.postgres.HstoreConverter
Utility helper class for HSTORE column data types.
- Author:
- Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringformatHstoreEntry(Map.Entry<String, String> entry) static StringjsonToString(String value) Converts a JSON-based string to a HStORE string.static StringmapToString(Map<String, String> hstoreMap) Converts a Java-based map to a HSTORE string representation.
-
Field Details
-
MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
-
-
Constructor Details
-
HstoreConverter
public HstoreConverter()
-
-
Method Details
-
jsonToString
Converts a JSON-based string to a HStORE string.- Parameters:
value- JSON-based string- Returns:
- the HSTORE column type value represented as a string
-
mapToString
Converts a Java-based map to a HSTORE string representation.- Parameters:
hstoreMap- map of key/value tuples, should not benull.- Returns:
- the HSTORE column type value represented as a string
-
formatHstoreEntry
-