Class DataSourceItemSerializer

java.lang.Object
io.revealbi.core.impl.serializers.DataSourceItemSerializer

public class DataSourceItemSerializer extends Object
Central registry and serializer for all data source item types.
  • Constructor Details

  • Method Details

    • serialize

      public String serialize(RVDataSourceItem dsi) throws IOException
      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

      public RVDataSourceItem deserialize(com.fasterxml.jackson.databind.JsonNode node)
      Deserializes a data source item from an already-parsed JsonNode, 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

      public RVDataSourceItem deserialize(String json) throws IOException
      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

      public List<RVDataSourceItem> deserializeList(String json) throws IOException
      Throws:
      IOException