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

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.api.HiveObjectRef
All Implemented Interfaces:
Serializable, Cloneable, Comparable<HiveObjectRef>, org.apache.thrift.TBase<HiveObjectRef,HiveObjectRef._Fields>

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

See Also:
Serialized Form

Nested Class Summary
static class HiveObjectRef._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<HiveObjectRef._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
HiveObjectRef()
           
HiveObjectRef(HiveObjectRef other)
          Performs a deep copy on other.
HiveObjectRef(HiveObjectType objectType, String dbName, String objectName, List<String> partValues, String columnName)
           
 
Method Summary
 void addToPartValues(String elem)
           
 void clear()
           
 int compareTo(HiveObjectRef other)
           
 HiveObjectRef deepCopy()
           
 boolean equals(HiveObjectRef that)
           
 boolean equals(Object that)
           
 HiveObjectRef._Fields fieldForId(int fieldId)
           
 String getColumnName()
           
 String getDbName()
           
 Object getFieldValue(HiveObjectRef._Fields field)
           
 String getObjectName()
           
 HiveObjectType getObjectType()
           
 List<String> getPartValues()
           
 Iterator<String> getPartValuesIterator()
           
 int getPartValuesSize()
           
 int hashCode()
           
 boolean isSet(HiveObjectRef._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetColumnName()
          Returns true if field columnName 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 isSetObjectName()
          Returns true if field objectName is set (has been asigned a value) and false otherwise
 boolean isSetObjectType()
          Returns true if field objectType is set (has been asigned a value) and false otherwise
 boolean isSetPartValues()
          Returns true if field partValues is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setColumnName(String columnName)
           
 void setColumnNameIsSet(boolean value)
           
 void setDbName(String dbName)
           
 void setDbNameIsSet(boolean value)
           
 void setFieldValue(HiveObjectRef._Fields field, Object value)
           
 void setObjectName(String objectName)
           
 void setObjectNameIsSet(boolean value)
           
 void setObjectType(HiveObjectType objectType)
           
 void setObjectTypeIsSet(boolean value)
           
 void setPartValues(List<String> partValues)
           
 void setPartValuesIsSet(boolean value)
           
 String toString()
           
 void unsetColumnName()
           
 void unsetDbName()
           
 void unsetObjectName()
           
 void unsetObjectType()
           
 void unsetPartValues()
           
 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<HiveObjectRef._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

HiveObjectRef

public HiveObjectRef()

HiveObjectRef

public HiveObjectRef(HiveObjectType objectType,
                     String dbName,
                     String objectName,
                     List<String> partValues,
                     String columnName)

HiveObjectRef

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

Method Detail

deepCopy

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

clear

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

getObjectType

public HiveObjectType getObjectType()
See Also:
HiveObjectType

setObjectType

public void setObjectType(HiveObjectType objectType)
See Also:
HiveObjectType

unsetObjectType

public void unsetObjectType()

isSetObjectType

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


setObjectTypeIsSet

public void setObjectTypeIsSet(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)

getObjectName

public String getObjectName()

setObjectName

public void setObjectName(String objectName)

unsetObjectName

public void unsetObjectName()

isSetObjectName

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


setObjectNameIsSet

public void setObjectNameIsSet(boolean value)

getPartValuesSize

public int getPartValuesSize()

getPartValuesIterator

public Iterator<String> getPartValuesIterator()

addToPartValues

public void addToPartValues(String elem)

getPartValues

public List<String> getPartValues()

setPartValues

public void setPartValues(List<String> partValues)

unsetPartValues

public void unsetPartValues()

isSetPartValues

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


setPartValuesIsSet

public void setPartValuesIsSet(boolean value)

getColumnName

public String getColumnName()

setColumnName

public void setColumnName(String columnName)

unsetColumnName

public void unsetColumnName()

isSetColumnName

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


setColumnNameIsSet

public void setColumnNameIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

public boolean isSet(HiveObjectRef._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<HiveObjectRef,HiveObjectRef._Fields>

equals

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

equals

public boolean equals(HiveObjectRef that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public HiveObjectRef._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<HiveObjectRef,HiveObjectRef._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<HiveObjectRef,HiveObjectRef._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<HiveObjectRef,HiveObjectRef._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 © 2011 The Apache Software Foundation