org.apache.hadoop.hive.metastore.api
Class Index

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.api.Index
All Implemented Interfaces:
Serializable, Cloneable, org.apache.thrift.TBase

public class Index
extends Object
implements org.apache.thrift.TBase, Serializable, Cloneable

See Also:
Serialized Form

Field Summary
static int COLNAMES
           
static int DBNAME
           
static int INDEXNAME
           
static int INDEXTYPE
           
static Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
static int PARTNAME
           
static int TABLENAME
           
 
Constructor Summary
Index()
           
Index(Index other)
          Performs a deep copy on other.
Index(String indexName, int indexType, String tableName, String dbName, List<String> colNames, String partName)
           
 
Method Summary
 void addToColNames(String elem)
           
 Index clone()
           
 boolean equals(Index that)
           
 boolean equals(Object that)
           
 List<String> getColNames()
           
 Iterator<String> getColNamesIterator()
           
 int getColNamesSize()
           
 String getDbName()
           
 Object getFieldValue(int fieldID)
           
 String getIndexName()
           
 int getIndexType()
           
 String getPartName()
           
 String getTableName()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSetColNames()
           
 boolean isSetDbName()
           
 boolean isSetIndexName()
           
 boolean isSetIndexType()
           
 boolean isSetPartName()
           
 boolean isSetTableName()
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setColNames(List<String> colNames)
           
 void setDbName(String dbName)
           
 void setFieldValue(int fieldID, Object value)
           
 void setIndexName(String indexName)
           
 void setIndexType(int indexType)
           
 void setPartName(String partName)
           
 void setTableName(String tableName)
           
 String toString()
           
 void unsetColNames()
           
 void unsetDbName()
           
 void unsetIndexName()
           
 void unsetIndexType()
           
 void unsetPartName()
           
 void unsetTableName()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INDEXNAME

public static final int INDEXNAME
See Also:
Constant Field Values

INDEXTYPE

public static final int INDEXTYPE
See Also:
Constant Field Values

TABLENAME

public static final int TABLENAME
See Also:
Constant Field Values

DBNAME

public static final int DBNAME
See Also:
Constant Field Values

COLNAMES

public static final int COLNAMES
See Also:
Constant Field Values

PARTNAME

public static final int PARTNAME
See Also:
Constant Field Values

metaDataMap

public static final Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Index

public Index()

Index

public Index(String indexName,
             int indexType,
             String tableName,
             String dbName,
             List<String> colNames,
             String partName)

Index

public Index(Index other)
Performs a deep copy on other.

Method Detail

clone

public Index clone()
Overrides:
clone in class Object

getIndexName

public String getIndexName()

setIndexName

public void setIndexName(String indexName)

unsetIndexName

public void unsetIndexName()

isSetIndexName

public boolean isSetIndexName()

getIndexType

public int getIndexType()

setIndexType

public void setIndexType(int indexType)

unsetIndexType

public void unsetIndexType()

isSetIndexType

public boolean isSetIndexType()

getTableName

public String getTableName()

setTableName

public void setTableName(String tableName)

unsetTableName

public void unsetTableName()

isSetTableName

public boolean isSetTableName()

getDbName

public String getDbName()

setDbName

public void setDbName(String dbName)

unsetDbName

public void unsetDbName()

isSetDbName

public boolean isSetDbName()

getColNamesSize

public int getColNamesSize()

getColNamesIterator

public Iterator<String> getColNamesIterator()

addToColNames

public void addToColNames(String elem)

getColNames

public List<String> getColNames()

setColNames

public void setColNames(List<String> colNames)

unsetColNames

public void unsetColNames()

isSetColNames

public boolean isSetColNames()

getPartName

public String getPartName()

setPartName

public void setPartName(String partName)

unsetPartName

public void unsetPartName()

isSetPartName

public boolean isSetPartName()

setFieldValue

public void setFieldValue(int fieldID,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase

getFieldValue

public Object getFieldValue(int fieldID)
Specified by:
getFieldValue in interface org.apache.thrift.TBase

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(Index that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2009 The Apache Software Foundation