Package org.apache.calcite.model
Class JsonMaterialization
- java.lang.Object
-
- org.apache.calcite.model.JsonMaterialization
-
public class JsonMaterialization extends java.lang.Object
Element that describes how a table is a materialization of a query.Occurs within
JsonSchema.materializations
.- See Also:
Description of schema elements
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object
sql
SQL query that defines the materialization.java.lang.String
table
java.lang.String
view
java.util.List<java.lang.String>
viewSchemaPath
-
Constructor Summary
Constructors Constructor Description JsonMaterialization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ModelHandler handler)
java.lang.String
getSql()
Returns the SQL query as a string, concatenating a list of lines if necessary.java.lang.String
toString()
-
-
-
Field Detail
-
view
public java.lang.String view
-
table
public java.lang.String table
-
sql
public java.lang.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 java.util.List<java.lang.String> viewSchemaPath
-
-
Method Detail
-
accept
public void accept(ModelHandler handler)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getSql
public java.lang.String getSql()
Returns the SQL query as a string, concatenating a list of lines if necessary.
-
-