Package org.apache.iceberg.viewdepoc
Class HadoopViews
java.lang.Object
org.apache.iceberg.viewdepoc.HadoopViews
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,Views
The Views implementation Based on FileIO.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate a view using the FileSystem implementation, resolved from location.voidDrops a view.org.apache.hadoop.conf.ConfigurationgetConf()Loads the View object from a FileSystem path location.loadDefinition(String location) Loads the view definition from a FileSystem path location.voidReplaces a view.voidsetConf(org.apache.hadoop.conf.Configuration conf)
-
Constructor Details
-
HadoopViews
public HadoopViews(org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
load
Loads the View object from a FileSystem path location. -
loadDefinition
Loads the view definition from a FileSystem path location.- Specified by:
loadDefinitionin interfaceViews- Parameters:
location- view name or location- Returns:
- SQL metadata of the view
-
create
Create a view using the FileSystem implementation, resolved from location.- Specified by:
createin interfaceViews- Parameters:
location- a path URI (e.g. hdfs:///warehouse/my_view)viewDefinition- contains the view schema, sql, session catalog/namespace etcproperties- Version property genie-id of the operation, as well as table properties such as owner, table type, common view flag etc.
-
replace
Description copied from interface:ViewsReplaces a view. -
drop
Description copied from interface:ViewsDrops a view. -
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf) - Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable
-
getConf
public org.apache.hadoop.conf.Configuration getConf()- Specified by:
getConfin interfaceorg.apache.hadoop.conf.Configurable
-