Class JsonMaterialization


public class JsonMaterialization extends Object
Element that describes how a table is a materialization of a query.

Occurs within JsonSchema.materializations.

See Also:
  • Field Details

    • view

      public final @Nullable String view
    • table

      public final @Nullable String table
    • sql

      public final Object sql
      SQL query that defines the materialization.

      Must be a string or a list of strings (which are concatenated into a multi-line SQL string, separated by newlines).

    • viewSchemaPath

      public final @Nullable List<String> viewSchemaPath
  • Constructor Details

    • JsonMaterialization

      public JsonMaterialization(@Nullable String view, @Nullable String table, Object sql, @Nullable List<String> viewSchemaPath)
  • Method Details

    • accept

      public void accept(ModelHandler handler)
    • toString

      public String toString()
      toString in class Object
    • getSql

      public String getSql()
      Returns the SQL query as a string, concatenating a list of lines if necessary.