Package org.apache.iceberg.viewdepoc
Interface ViewDefinition
public interface ViewDefinition
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewDefinitionof(String sql, org.apache.iceberg.Schema schema, String sessionCatalog, List<String> sessionNamespace) org.apache.iceberg.Schemaschema()Returns the view query output schema.Returns the session catalog when the view is created.Returns the session namespace when the view is created.sql()Returns the view query SQL text.
-
Field Details
-
EMPTY_SCHEMA
static final org.apache.iceberg.Schema EMPTY_SCHEMA
-
-
Method Details
-
of
static ViewDefinition of(String sql, org.apache.iceberg.Schema schema, String sessionCatalog, List<String> sessionNamespace) -
sql
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
String sessionCatalog()Returns the session catalog when the view is created.- Returns:
- the session catalog
-
sessionNamespace
Returns the session namespace when the view is created.- Returns:
- the session namespace
-