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, Comparable<Index>, org.apache.thrift.TBase<Index,Index._Fields>

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

See Also:
Serialized Form

Nested Class Summary
static class Index._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<Index._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
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)
           
 void clear()
           
 int compareTo(Index other)
           
 Index deepCopy()
           
 boolean equals(Index that)
           
 boolean equals(Object that)
           
 Index._Fields fieldForId(int fieldId)
           
 List<String> getColNames()
           
 Iterator<String> getColNamesIterator()
           
 int getColNamesSize()
           
 String getDbName()
           
 Object getFieldValue(Index._Fields field)
           
 String getIndexName()
           
 int getIndexType()
           
 String getPartName()
           
 String getTableName()
           
 int hashCode()
           
 boolean isSet(Index._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetColNames()
          Returns true if field colNames is set (has been asigned a value) and false otherwise
 boolean isSetDbName()
          Returns true if field dbName is set (has been asigned a value) and false otherwise
 boolean isSetIndexName()
          Returns true if field indexName is set (has been asigned a value) and false otherwise
 boolean isSetIndexType()
          Returns true if field indexType is set (has been asigned a value) and false otherwise
 boolean isSetPartName()
          Returns true if field partName is set (has been asigned a value) and false otherwise
 boolean isSetTableName()
          Returns true if field tableName is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setColNames(List<String> colNames)
           
 void setColNamesIsSet(boolean value)
           
 void setDbName(String dbName)
           
 void setDbNameIsSet(boolean value)
           
 void setFieldValue(Index._Fields field, Object value)
           
 void setIndexName(String indexName)
           
 void setIndexNameIsSet(boolean value)
           
 void setIndexType(int indexType)
           
 void setIndexTypeIsSet(boolean value)
           
 void setPartName(String partName)
           
 void setPartNameIsSet(boolean value)
           
 void setTableName(String tableName)
           
 void setTableNameIsSet(boolean value)
           
 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final Map<Index._Fields,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

deepCopy

public Index deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<Index,Index._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<Index,Index._Fields>

getIndexName

public String getIndexName()

setIndexName

public void setIndexName(String indexName)

unsetIndexName

public void unsetIndexName()

isSetIndexName

public boolean isSetIndexName()
Returns true if field indexName is set (has been asigned a value) and false otherwise


setIndexNameIsSet

public void setIndexNameIsSet(boolean value)

getIndexType

public int getIndexType()

setIndexType

public void setIndexType(int indexType)

unsetIndexType

public void unsetIndexType()

isSetIndexType

public boolean isSetIndexType()
Returns true if field indexType is set (has been asigned a value) and false otherwise


setIndexTypeIsSet

public void setIndexTypeIsSet(boolean value)

getTableName

public String getTableName()

setTableName

public void setTableName(String tableName)

unsetTableName

public void unsetTableName()

isSetTableName

public boolean isSetTableName()
Returns true if field tableName is set (has been asigned a value) and false otherwise


setTableNameIsSet

public void setTableNameIsSet(boolean value)

getDbName

public String getDbName()

setDbName

public void setDbName(String dbName)

unsetDbName

public void unsetDbName()

isSetDbName

public boolean isSetDbName()
Returns true if field dbName is set (has been asigned a value) and false otherwise


setDbNameIsSet

public void setDbNameIsSet(boolean value)

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()
Returns true if field colNames is set (has been asigned a value) and false otherwise


setColNamesIsSet

public void setColNamesIsSet(boolean value)

getPartName

public String getPartName()

setPartName

public void setPartName(String partName)

unsetPartName

public void unsetPartName()

isSetPartName

public boolean isSetPartName()
Returns true if field partName is set (has been asigned a value) and false otherwise


setPartNameIsSet

public void setPartNameIsSet(boolean value)

setFieldValue

public void setFieldValue(Index._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<Index,Index._Fields>

getFieldValue

public Object getFieldValue(Index._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<Index,Index._Fields>

isSet

public boolean isSet(Index._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<Index,Index._Fields>

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

compareTo

public int compareTo(Index other)
Specified by:
compareTo in interface Comparable<Index>

fieldForId

public Index._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<Index,Index._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<Index,Index._Fields>
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<Index,Index._Fields>
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