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 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.org.apache.hadoop.conf.Configuration
getConf()
Table
load(java.lang.String location)
Loads the table location from a FileSystem path location.void
setConf(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:
create
in 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:
setConf
in interfaceorg.apache.hadoop.conf.Configurable
-
getConf
public org.apache.hadoop.conf.Configuration getConf()
- Specified by:
getConf
in interfaceorg.apache.hadoop.conf.Configurable
-
-