public class TableDesc extends Object implements ProtoObject<CatalogProtos.TableDescProto>, GsonObject, Cloneable
Modifier and Type | Field and Description |
---|---|
protected CatalogProtos.TableDescProto.Builder |
builder |
protected Boolean |
external
True if it is an external table.
|
protected TableMeta |
meta |
protected PartitionMethodDesc |
partitionMethodDesc
the description of table partition
|
protected Schema |
schema |
protected TableStats |
stats |
protected String |
tableName |
protected org.apache.hadoop.fs.Path |
uri
uri is set if external flag is TRUE.
|
Constructor and Description |
---|
TableDesc() |
TableDesc(CatalogProtos.TableDescProto proto) |
TableDesc(String tableName,
Schema schema,
CatalogProtos.StoreType type,
Options options,
org.apache.hadoop.fs.Path path) |
TableDesc(String tableName,
Schema schema,
TableMeta meta,
org.apache.hadoop.fs.Path path) |
TableDesc(String tableName,
Schema schema,
TableMeta meta,
org.apache.hadoop.fs.Path path,
boolean external) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object object) |
Schema |
getLogicalSchema() |
TableMeta |
getMeta() |
String |
getName() |
PartitionMethodDesc |
getPartitionMethod() |
org.apache.hadoop.fs.Path |
getPath() |
CatalogProtos.TableDescProto |
getProto() |
Schema |
getSchema() |
TableStats |
getStats() |
int |
hashCode() |
boolean |
hasPartition() |
boolean |
hasStats() |
boolean |
isExternal() |
void |
setExternal(boolean external) |
void |
setMeta(TableMeta info) |
void |
setName(String tableId) |
void |
setPartitionMethod(PartitionMethodDesc partitionMethodDesc) |
void |
setPath(org.apache.hadoop.fs.Path uri) |
void |
setSchema(Schema schem) |
void |
setStats(TableStats stats) |
String |
toJson() |
String |
toString() |
protected CatalogProtos.TableDescProto.Builder builder
protected String tableName
protected Schema schema
protected TableMeta meta
protected org.apache.hadoop.fs.Path uri
protected TableStats stats
protected PartitionMethodDesc partitionMethodDesc
protected Boolean external
public TableDesc()
public TableDesc(String tableName, Schema schema, TableMeta meta, org.apache.hadoop.fs.Path path, boolean external)
public TableDesc(String tableName, Schema schema, TableMeta meta, org.apache.hadoop.fs.Path path)
public TableDesc(String tableName, Schema schema, CatalogProtos.StoreType type, Options options, org.apache.hadoop.fs.Path path)
public TableDesc(CatalogProtos.TableDescProto proto)
public void setName(String tableId)
public String getName()
public void setPath(org.apache.hadoop.fs.Path uri)
public org.apache.hadoop.fs.Path getPath()
public void setMeta(TableMeta info)
public TableMeta getMeta()
public void setSchema(Schema schem)
public Schema getSchema()
public Schema getLogicalSchema()
public void setStats(TableStats stats)
public boolean hasStats()
public TableStats getStats()
public boolean hasPartition()
public PartitionMethodDesc getPartitionMethod()
public void setPartitionMethod(PartitionMethodDesc partitionMethodDesc)
public void setExternal(boolean external)
public boolean isExternal()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String toJson()
toJson
in interface GsonObject
public CatalogProtos.TableDescProto getProto()
getProto
in interface ProtoObject<CatalogProtos.TableDescProto>
Copyright © 2014 Apache Software Foundation. All Rights Reserved.