Package io.trino.hive.thrift.metastore
Class SchemaVersion
java.lang.Object
io.trino.hive.thrift.metastore.SchemaVersion
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<SchemaVersion>,org.apache.thrift.TBase<SchemaVersion,,SchemaVersion._Fields> org.apache.thrift.TSerializable
@Generated("Autogenerated by Thrift Compiler (0.17.0)")
public class SchemaVersion
extends Object
implements org.apache.thrift.TBase<SchemaVersion,SchemaVersion._Fields>, Serializable, Cloneable, Comparable<SchemaVersion>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<SchemaVersion._Fields,org.apache.thrift.meta_data.FieldMetaData> -
Constructor Summary
ConstructorsConstructorDescriptionSchemaVersion(ISchemaName schema, int version, long createdAt, List<FieldSchema> cols) SchemaVersion(SchemaVersion other) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCols(FieldSchema elem) voidclear()intcompareTo(SchemaVersion other) deepCopy()booleanequals(SchemaVersion that) booleanfieldForId(int fieldId) getCols()intlonggetName()getSerDe()getState()intinthashCode()booleanisSet(SchemaVersion._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field cols is set (has been assigned a value) and false otherwisebooleanReturns true if field createdAt is set (has been assigned a value) and false otherwisebooleanReturns true if field description is set (has been assigned a value) and false otherwisebooleanReturns true if field fingerprint is set (has been assigned a value) and false otherwisebooleanReturns true if field name is set (has been assigned a value) and false otherwisebooleanReturns true if field schema is set (has been assigned a value) and false otherwisebooleanReturns true if field schemaText is set (has been assigned a value) and false otherwisebooleanReturns true if field serDe is set (has been assigned a value) and false otherwisebooleanReturns true if field state is set (has been assigned a value) and false otherwisebooleanReturns true if field version is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setCols(List<FieldSchema> cols) voidsetColsIsSet(boolean value) setCreatedAt(long createdAt) voidsetCreatedAtIsSet(boolean value) setDescription(String description) voidsetDescriptionIsSet(boolean value) voidsetFieldValue(SchemaVersion._Fields field, Object value) setFingerprint(String fingerprint) voidsetFingerprintIsSet(boolean value) voidsetNameIsSet(boolean value) setSchema(ISchemaName schema) voidsetSchemaIsSet(boolean value) setSchemaText(String schemaText) voidsetSchemaTextIsSet(boolean value) voidsetSerDeIsSet(boolean value) setState(SchemaVersionState state) voidsetStateIsSet(boolean value) setVersion(int version) voidsetVersionIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
metaDataMap
public static final Map<SchemaVersion._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
SchemaVersion
public SchemaVersion() -
SchemaVersion
-
SchemaVersion
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<SchemaVersion,SchemaVersion._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<SchemaVersion,SchemaVersion._Fields>
-
getSchema
-
setSchema
-
unsetSchema
public void unsetSchema() -
isSetSchema
public boolean isSetSchema()Returns true if field schema is set (has been assigned a value) and false otherwise -
setSchemaIsSet
public void setSchemaIsSet(boolean value) -
getVersion
public int getVersion() -
setVersion
-
unsetVersion
public void unsetVersion() -
isSetVersion
public boolean isSetVersion()Returns true if field version is set (has been assigned a value) and false otherwise -
setVersionIsSet
public void setVersionIsSet(boolean value) -
getCreatedAt
public long getCreatedAt() -
setCreatedAt
-
unsetCreatedAt
public void unsetCreatedAt() -
isSetCreatedAt
public boolean isSetCreatedAt()Returns true if field createdAt is set (has been assigned a value) and false otherwise -
setCreatedAtIsSet
public void setCreatedAtIsSet(boolean value) -
getColsSize
public int getColsSize() -
getColsIterator
-
addToCols
-
getCols
-
setCols
-
unsetCols
public void unsetCols() -
isSetCols
public boolean isSetCols()Returns true if field cols is set (has been assigned a value) and false otherwise -
setColsIsSet
public void setColsIsSet(boolean value) -
getState
- See Also:
-
setState
- See Also:
-
unsetState
public void unsetState() -
isSetState
public boolean isSetState()Returns true if field state is set (has been assigned a value) and false otherwise -
setStateIsSet
public void setStateIsSet(boolean value) -
getDescription
-
setDescription
-
unsetDescription
public void unsetDescription() -
isSetDescription
public boolean isSetDescription()Returns true if field description is set (has been assigned a value) and false otherwise -
setDescriptionIsSet
public void setDescriptionIsSet(boolean value) -
getSchemaText
-
setSchemaText
-
unsetSchemaText
public void unsetSchemaText() -
isSetSchemaText
public boolean isSetSchemaText()Returns true if field schemaText is set (has been assigned a value) and false otherwise -
setSchemaTextIsSet
public void setSchemaTextIsSet(boolean value) -
getFingerprint
-
setFingerprint
-
unsetFingerprint
public void unsetFingerprint() -
isSetFingerprint
public boolean isSetFingerprint()Returns true if field fingerprint is set (has been assigned a value) and false otherwise -
setFingerprintIsSet
public void setFingerprintIsSet(boolean value) -
getName
-
setName
-
unsetName
public void unsetName() -
isSetName
public boolean isSetName()Returns true if field name is set (has been assigned a value) and false otherwise -
setNameIsSet
public void setNameIsSet(boolean value) -
getSerDe
-
setSerDe
-
unsetSerDe
public void unsetSerDe() -
isSetSerDe
public boolean isSetSerDe()Returns true if field serDe is set (has been assigned a value) and false otherwise -
setSerDeIsSet
public void setSerDeIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<SchemaVersion,SchemaVersion._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<SchemaVersion,SchemaVersion._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<SchemaVersion,SchemaVersion._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<SchemaVersion>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<SchemaVersion,SchemaVersion._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException - Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException - Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-