public abstract class AbstractCatalogView extends Object implements CatalogView
Constructor and Description |
---|
AbstractCatalogView(String originalQuery,
String expandedQuery,
TableSchema schema,
Map<String,String> properties,
String comment) |
Modifier and Type | Method and Description |
---|---|
String |
getComment()
Get comment of the table or view.
|
String |
getExpandedQuery()
Expanded text of the original view definition
This is needed because the context such as current DB is
lost after the session, in which view is defined, is gone.
|
String |
getOriginalQuery()
Original text of the view definition that also perserves the original formatting.
|
Map<String,String> |
getProperties()
Get the properties of the table.
|
TableSchema |
getSchema()
Get the schema of the table.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy, getDescription, getDetailedDescription
public String getOriginalQuery()
CatalogView
getOriginalQuery
in interface CatalogView
public String getExpandedQuery()
CatalogView
For example, for a view that is defined in the context of "default" database with a query select * from
test1
, the expanded query text might become select `test1`.`name`, `test1`.`value` from `default`.`test1`
,
where table test1 resides in database "default" and has two columns ("name" and "value").
getExpandedQuery
in interface CatalogView
public Map<String,String> getProperties()
CatalogBaseTable
getProperties
in interface CatalogBaseTable
public TableSchema getSchema()
CatalogBaseTable
getSchema
in interface CatalogBaseTable
public String getComment()
CatalogBaseTable
getComment
in interface CatalogBaseTable
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.