public class PartitionMethodDesc extends Object implements ProtoObject<CatalogProtos.PartitionMethodProto>, Cloneable, GsonObject
PartitionMethodDesc
presents a table description, including partition type, and partition keys.Constructor and Description |
---|
PartitionMethodDesc() |
PartitionMethodDesc(CatalogProtos.PartitionMethodProto proto) |
PartitionMethodDesc(String databaseName,
String tableName,
CatalogProtos.PartitionType partitionType,
String expression,
Schema expressionSchema) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object object) |
static PartitionMethodDesc |
fromJson(String strVal) |
String |
getExpression() |
Schema |
getExpressionSchema() |
CatalogProtos.PartitionType |
getPartitionType() |
CatalogProtos.PartitionMethodProto |
getProto() |
String |
getTableName() |
int |
hashCode() |
void |
setExpression(String expression) |
void |
setExpressionSchema(Schema expressionSchema) |
void |
setPartitionType(CatalogProtos.PartitionType partitionsType) |
void |
setTableName(String tableId) |
String |
toJson() |
String |
toString() |
public PartitionMethodDesc()
public PartitionMethodDesc(String databaseName, String tableName, CatalogProtos.PartitionType partitionType, String expression, Schema expressionSchema)
public PartitionMethodDesc(CatalogProtos.PartitionMethodProto proto)
public String getTableName()
public String getExpression()
public Schema getExpressionSchema()
public CatalogProtos.PartitionType getPartitionType()
public void setTableName(String tableId)
public void setExpressionSchema(Schema expressionSchema)
public void setPartitionType(CatalogProtos.PartitionType partitionsType)
public void setExpression(String expression)
public CatalogProtos.PartitionMethodProto getProto()
getProto
in interface ProtoObject<CatalogProtos.PartitionMethodProto>
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String toJson()
toJson
in interface GsonObject
public static PartitionMethodDesc fromJson(String strVal)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.