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, String indexHandlerClass, String dbName, String origTableName, int createTime, int lastAccessTime, String indexTableName, StorageDescriptor sd, Map<String,String> parameters, boolean deferredRebuild)
           
 
Method Summary
 void clear()
           
 int compareTo(Index other)
           
 Index deepCopy()
           
 boolean equals(Index that)
           
 boolean equals(Object that)
           
 Index._Fields fieldForId(int fieldId)
           
 int getCreateTime()
           
 String getDbName()
           
 Object getFieldValue(Index._Fields field)
           
 String getIndexHandlerClass()
           
 String getIndexName()
           
 String getIndexTableName()
           
 int getLastAccessTime()
           
 String getOrigTableName()
           
 Map<String,String> getParameters()
           
 int getParametersSize()
           
 StorageDescriptor getSd()
           
 int hashCode()
           
 boolean isDeferredRebuild()
           
 boolean isSet(Index._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetCreateTime()
          Returns true if field createTime is set (has been assigned a value) and false otherwise
 boolean isSetDbName()
          Returns true if field dbName is set (has been assigned a value) and false otherwise
 boolean isSetDeferredRebuild()
          Returns true if field deferredRebuild is set (has been assigned a value) and false otherwise
 boolean isSetIndexHandlerClass()
          Returns true if field indexHandlerClass is set (has been assigned a value) and false otherwise
 boolean isSetIndexName()
          Returns true if field indexName is set (has been assigned a value) and false otherwise
 boolean isSetIndexTableName()
          Returns true if field indexTableName is set (has been assigned a value) and false otherwise
 boolean isSetLastAccessTime()
          Returns true if field lastAccessTime is set (has been assigned a value) and false otherwise
 boolean isSetOrigTableName()
          Returns true if field origTableName is set (has been assigned a value) and false otherwise
 boolean isSetParameters()
          Returns true if field parameters is set (has been assigned a value) and false otherwise
 boolean isSetSd()
          Returns true if field sd is set (has been assigned a value) and false otherwise
 void putToParameters(String key, String val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setCreateTime(int createTime)
           
 void setCreateTimeIsSet(boolean value)
           
 void setDbName(String dbName)
           
 void setDbNameIsSet(boolean value)
           
 void setDeferredRebuild(boolean deferredRebuild)
           
 void setDeferredRebuildIsSet(boolean value)
           
 void setFieldValue(Index._Fields field, Object value)
           
 void setIndexHandlerClass(String indexHandlerClass)
           
 void setIndexHandlerClassIsSet(boolean value)
           
 void setIndexName(String indexName)
           
 void setIndexNameIsSet(boolean value)
           
 void setIndexTableName(String indexTableName)
           
 void setIndexTableNameIsSet(boolean value)
           
 void setLastAccessTime(int lastAccessTime)
           
 void setLastAccessTimeIsSet(boolean value)
           
 void setOrigTableName(String origTableName)
           
 void setOrigTableNameIsSet(boolean value)
           
 void setParameters(Map<String,String> parameters)
           
 void setParametersIsSet(boolean value)
           
 void setSd(StorageDescriptor sd)
           
 void setSdIsSet(boolean value)
           
 String toString()
           
 void unsetCreateTime()
           
 void unsetDbName()
           
 void unsetDeferredRebuild()
           
 void unsetIndexHandlerClass()
           
 void unsetIndexName()
           
 void unsetIndexTableName()
           
 void unsetLastAccessTime()
           
 void unsetOrigTableName()
           
 void unsetParameters()
           
 void unsetSd()
           
 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,
             String indexHandlerClass,
             String dbName,
             String origTableName,
             int createTime,
             int lastAccessTime,
             String indexTableName,
             StorageDescriptor sd,
             Map<String,String> parameters,
             boolean deferredRebuild)

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 assigned a value) and false otherwise


setIndexNameIsSet

public void setIndexNameIsSet(boolean value)

getIndexHandlerClass

public String getIndexHandlerClass()

setIndexHandlerClass

public void setIndexHandlerClass(String indexHandlerClass)

unsetIndexHandlerClass

public void unsetIndexHandlerClass()

isSetIndexHandlerClass

public boolean isSetIndexHandlerClass()
Returns true if field indexHandlerClass is set (has been assigned a value) and false otherwise


setIndexHandlerClassIsSet

public void setIndexHandlerClassIsSet(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 assigned a value) and false otherwise


setDbNameIsSet

public void setDbNameIsSet(boolean value)

getOrigTableName

public String getOrigTableName()

setOrigTableName

public void setOrigTableName(String origTableName)

unsetOrigTableName

public void unsetOrigTableName()

isSetOrigTableName

public boolean isSetOrigTableName()
Returns true if field origTableName is set (has been assigned a value) and false otherwise


setOrigTableNameIsSet

public void setOrigTableNameIsSet(boolean value)

getCreateTime

public int getCreateTime()

setCreateTime

public void setCreateTime(int createTime)

unsetCreateTime

public void unsetCreateTime()

isSetCreateTime

public boolean isSetCreateTime()
Returns true if field createTime is set (has been assigned a value) and false otherwise


setCreateTimeIsSet

public void setCreateTimeIsSet(boolean value)

getLastAccessTime

public int getLastAccessTime()

setLastAccessTime

public void setLastAccessTime(int lastAccessTime)

unsetLastAccessTime

public void unsetLastAccessTime()

isSetLastAccessTime

public boolean isSetLastAccessTime()
Returns true if field lastAccessTime is set (has been assigned a value) and false otherwise


setLastAccessTimeIsSet

public void setLastAccessTimeIsSet(boolean value)

getIndexTableName

public String getIndexTableName()

setIndexTableName

public void setIndexTableName(String indexTableName)

unsetIndexTableName

public void unsetIndexTableName()

isSetIndexTableName

public boolean isSetIndexTableName()
Returns true if field indexTableName is set (has been assigned a value) and false otherwise


setIndexTableNameIsSet

public void setIndexTableNameIsSet(boolean value)

getSd

public StorageDescriptor getSd()

setSd

public void setSd(StorageDescriptor sd)

unsetSd

public void unsetSd()

isSetSd

public boolean isSetSd()
Returns true if field sd is set (has been assigned a value) and false otherwise


setSdIsSet

public void setSdIsSet(boolean value)

getParametersSize

public int getParametersSize()

putToParameters

public void putToParameters(String key,
                            String val)

getParameters

public Map<String,String> getParameters()

setParameters

public void setParameters(Map<String,String> parameters)

unsetParameters

public void unsetParameters()

isSetParameters

public boolean isSetParameters()
Returns true if field parameters is set (has been assigned a value) and false otherwise


setParametersIsSet

public void setParametersIsSet(boolean value)

isDeferredRebuild

public boolean isDeferredRebuild()

setDeferredRebuild

public void setDeferredRebuild(boolean deferredRebuild)

unsetDeferredRebuild

public void unsetDeferredRebuild()

isSetDeferredRebuild

public boolean isSetDeferredRebuild()
Returns true if field deferredRebuild is set (has been assigned a value) and false otherwise


setDeferredRebuildIsSet

public void setDeferredRebuildIsSet(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 assigned 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 © 2012 The Apache Software Foundation