public class Decimal extends Object implements org.apache.thrift.TBase<Decimal,Decimal._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Decimal._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<Decimal._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
Decimal() |
Decimal(ByteBuffer unscaled,
short scale) |
Decimal(Decimal other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
bufferForUnscaled() |
void |
clear() |
int |
compareTo(Decimal other) |
Decimal |
deepCopy() |
boolean |
equals(Decimal that) |
boolean |
equals(Object that) |
Decimal._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(Decimal._Fields field) |
short |
getScale() |
byte[] |
getUnscaled() |
int |
hashCode() |
boolean |
isSet(Decimal._Fields field)
Returns true if field corresponding to fieldID 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
|
boolean |
isSetUnscaled()
Returns true if field unscaled is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(Decimal._Fields field,
Object value) |
void |
setScale(short scale) |
void |
setScaleIsSet(boolean value) |
void |
setUnscaled(byte[] unscaled) |
void |
setUnscaled(ByteBuffer unscaled) |
void |
setUnscaledIsSet(boolean value) |
String |
toString() |
void |
unsetScale() |
void |
unsetUnscaled() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<Decimal._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Decimal()
public Decimal(ByteBuffer unscaled, short scale)
public Decimal(Decimal other)
public Decimal deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Decimal,Decimal._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<Decimal,Decimal._Fields>
public byte[] getUnscaled()
public ByteBuffer bufferForUnscaled()
public void setUnscaled(byte[] unscaled)
public void setUnscaled(ByteBuffer unscaled)
public void unsetUnscaled()
public boolean isSetUnscaled()
public void setUnscaledIsSet(boolean value)
public short getScale()
public void setScale(short scale)
public void unsetScale()
public boolean isSetScale()
public void setScaleIsSet(boolean value)
public void setFieldValue(Decimal._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Decimal,Decimal._Fields>
public Object getFieldValue(Decimal._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Decimal,Decimal._Fields>
public boolean isSet(Decimal._Fields field)
isSet
in interface org.apache.thrift.TBase<Decimal,Decimal._Fields>
public boolean equals(Decimal that)
public int compareTo(Decimal other)
compareTo
in interface Comparable<Decimal>
public Decimal._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<Decimal,Decimal._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Decimal,Decimal._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<Decimal,Decimal._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.