Package org.apache.iceberg.view
Interface ViewDefinition
-
public interface ViewDefinition
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.iceberg.SchemaEMPTY_SCHEMA
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ViewDefinitionof(java.lang.String sql, org.apache.iceberg.Schema schema, java.lang.String sessionCatalog, java.util.List<java.lang.String> sessionNamespace)org.apache.iceberg.Schemaschema()Returns the view query output schema.java.lang.StringsessionCatalog()Returns the session catalog when the view is created.java.util.List<java.lang.String>sessionNamespace()Returns the session namespace when the view is created.java.lang.Stringsql()Returns the view query SQL text.
-
-
-
Method Detail
-
of
static ViewDefinition of(java.lang.String sql, org.apache.iceberg.Schema schema, java.lang.String sessionCatalog, java.util.List<java.lang.String> sessionNamespace)
-
sql
java.lang.String sql()
Returns the view query SQL text.- Returns:
- the view query SQL text
-
schema
org.apache.iceberg.Schema schema()
Returns the view query output schema.- Returns:
- the view query output schema
-
sessionCatalog
java.lang.String sessionCatalog()
Returns the session catalog when the view is created.- Returns:
- the session catalog
-
sessionNamespace
java.util.List<java.lang.String> sessionNamespace()
Returns the session namespace when the view is created.- Returns:
- the session namespace
-
-