Package org.apache.iceberg.hadoop
Class HadoopTables
- java.lang.Object
-
- org.apache.iceberg.hadoop.HadoopTables
-
-
Constructor Summary
Constructors Constructor Description HadoopTables()HadoopTables(org.apache.hadoop.conf.Configuration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tablecreate(Schema schema, PartitionSpec spec, java.util.Map<java.lang.String,java.lang.String> properties, java.lang.String location)Create a table using the FileSystem implementation resolve from location.org.apache.hadoop.conf.ConfigurationgetConf()Tableload(java.lang.String location)Loads the table location from a FileSystem path location.voidsetConf(org.apache.hadoop.conf.Configuration conf)
-
-
-
Method Detail
-
load
public Table load(java.lang.String location)
Loads the table location from a FileSystem path location.
-
create
public Table create(Schema schema, PartitionSpec spec, java.util.Map<java.lang.String,java.lang.String> properties, java.lang.String location)
Create a table using the FileSystem implementation resolve from location.- Specified by:
createin interfaceTables- Parameters:
schema- iceberg schema used to create the tablespec- partitioning spec, if null the table will be unpartitionedproperties- a string map of table properties, initialized to empty if nulllocation- a path URI (e.g. hdfs:///warehouse/my_table)- Returns:
- newly created table implementation
-
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
-
-