@Generated(value="Autogenerated by Thrift Compiler (0.12.0)", date="2020-07-29") public class DecimalType extends Object implements org.apache.thrift.TBase<DecimalType,DecimalType._Fields>, Serializable, Cloneable, Comparable<DecimalType>
| Modifier and Type | Class and Description |
|---|---|
static class |
DecimalType._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
static Map<DecimalType._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
precision |
int |
scale |
| Constructor and Description |
|---|
DecimalType() |
DecimalType(DecimalType other)
Performs a deep copy on other.
|
DecimalType(int scale,
int precision) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(DecimalType other) |
DecimalType |
deepCopy() |
boolean |
equals(DecimalType that) |
boolean |
equals(Object that) |
DecimalType._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(DecimalType._Fields field) |
int |
getPrecision() |
int |
getScale() |
int |
hashCode() |
boolean |
isSet(DecimalType._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetPrecision()
Returns true if field precision is set (has been assigned a value) and false otherwise
|
boolean |
isSetScale()
Returns true if field scale is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(DecimalType._Fields field,
Object value) |
DecimalType |
setPrecision(int precision) |
void |
setPrecisionIsSet(boolean value) |
DecimalType |
setScale(int scale) |
void |
setScaleIsSet(boolean value) |
String |
toString() |
void |
unsetPrecision() |
void |
unsetScale() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public int scale
public int precision
public static final Map<DecimalType._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public DecimalType()
public DecimalType(int scale,
int precision)
public DecimalType(DecimalType other)
public DecimalType deepCopy()
deepCopy in interface org.apache.thrift.TBase<DecimalType,DecimalType._Fields>public void clear()
clear in interface org.apache.thrift.TBase<DecimalType,DecimalType._Fields>public int getScale()
public DecimalType setScale(int scale)
public void unsetScale()
public boolean isSetScale()
public void setScaleIsSet(boolean value)
public int getPrecision()
public DecimalType setPrecision(int precision)
public void unsetPrecision()
public boolean isSetPrecision()
public void setPrecisionIsSet(boolean value)
public void setFieldValue(DecimalType._Fields field, Object value)
setFieldValue in interface org.apache.thrift.TBase<DecimalType,DecimalType._Fields>public Object getFieldValue(DecimalType._Fields field)
getFieldValue in interface org.apache.thrift.TBase<DecimalType,DecimalType._Fields>public boolean isSet(DecimalType._Fields field)
isSet in interface org.apache.thrift.TBase<DecimalType,DecimalType._Fields>public boolean equals(DecimalType that)
public int compareTo(DecimalType other)
compareTo in interface Comparable<DecimalType>public DecimalType._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<DecimalType,DecimalType._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
read in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.