Class DataSourceItemSerializer
java.lang.Object
io.revealbi.core.impl.serializers.DataSourceItemSerializer
Central registry and serializer for all data source item types.
-
Constructor Summary
ConstructorsConstructorDescriptionDataSourceItemSerializer(DashboardDataSourceSerializer dataSourceSerializer) -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.fasterxml.jackson.databind.JsonNode node) Deserializes a data source item from an already-parsedJsonNode, avoiding a string round-trip when the node was extracted from a larger JSON document.deserialize(String json) Deserializes a data source item from its JSON string representation.deserializeList(String json) Serializes a data source item to JSON string.
-
Constructor Details
-
DataSourceItemSerializer
-
-
Method Details
-
serialize
Serializes a data source item to JSON string.- Parameters:
dsi- The data source item to serialize.- Returns:
- The JSON string representation.
- Throws:
IOException- if JSON serialization fails.
-
deserialize
Deserializes a data source item from an already-parsedJsonNode, avoiding a string round-trip when the node was extracted from a larger JSON document.- Parameters:
node- The JSON node to deserialize.- Returns:
- The deserialized data source item.
-
deserialize
Deserializes a data source item from its JSON string representation.- Parameters:
json- The JSON string to deserialize.- Returns:
- The deserialized data source item.
- Throws:
IOException- if JSON deserialization fails.
-
deserializeList
- Throws:
IOException
-