@Generated(value="Autogenerated by Thrift Compiler (0.14.0)", date="2021-12-23") public class TimeUnit extends org.apache.thrift.TUnion<TimeUnit,TimeUnit._Fields>
Modifier and Type | Class and Description |
---|---|
static class |
TimeUnit._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<TimeUnit._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
TimeUnit() |
TimeUnit(TimeUnit._Fields setField,
Object value) |
TimeUnit(TimeUnit other) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkType(TimeUnit._Fields setField,
Object value) |
int |
compareTo(TimeUnit other) |
TimeUnit |
deepCopy() |
protected TimeUnit._Fields |
enumForId(short id) |
boolean |
equals(Object other) |
boolean |
equals(TimeUnit other) |
TimeUnit._Fields |
fieldForId(int fieldId) |
protected org.apache.thrift.protocol.TField |
getFieldDesc(TimeUnit._Fields setField) |
MicroSeconds |
getMICROS() |
MilliSeconds |
getMILLIS() |
NanoSeconds |
getNANOS() |
protected org.apache.thrift.protocol.TStruct |
getStructDesc() |
int |
hashCode() |
boolean |
isSetMICROS() |
boolean |
isSetMILLIS() |
boolean |
isSetNANOS() |
static TimeUnit |
MICROS(MicroSeconds value) |
static TimeUnit |
MILLIS(MilliSeconds value) |
static TimeUnit |
NANOS(NanoSeconds value) |
void |
setMICROS(MicroSeconds value) |
void |
setMILLIS(MilliSeconds value) |
void |
setNANOS(NanoSeconds value) |
protected Object |
standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TField field) |
protected void |
standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) |
protected Object |
tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot,
short fieldID) |
protected void |
tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<TimeUnit._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TimeUnit()
public TimeUnit(TimeUnit._Fields setField, Object value)
public TimeUnit(TimeUnit other)
public TimeUnit deepCopy()
public static TimeUnit MILLIS(MilliSeconds value)
public static TimeUnit MICROS(MicroSeconds value)
public static TimeUnit NANOS(NanoSeconds value)
protected void checkType(TimeUnit._Fields setField, Object value) throws ClassCastException
checkType
in class org.apache.thrift.TUnion<TimeUnit,TimeUnit._Fields>
ClassCastException
protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field) throws org.apache.thrift.TException
standardSchemeReadValue
in class org.apache.thrift.TUnion<TimeUnit,TimeUnit._Fields>
org.apache.thrift.TException
protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
standardSchemeWriteValue
in class org.apache.thrift.TUnion<TimeUnit,TimeUnit._Fields>
org.apache.thrift.TException
protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException
tupleSchemeReadValue
in class org.apache.thrift.TUnion<TimeUnit,TimeUnit._Fields>
org.apache.thrift.TException
protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
tupleSchemeWriteValue
in class org.apache.thrift.TUnion<TimeUnit,TimeUnit._Fields>
org.apache.thrift.TException
protected org.apache.thrift.protocol.TField getFieldDesc(TimeUnit._Fields setField)
getFieldDesc
in class org.apache.thrift.TUnion<TimeUnit,TimeUnit._Fields>
protected org.apache.thrift.protocol.TStruct getStructDesc()
getStructDesc
in class org.apache.thrift.TUnion<TimeUnit,TimeUnit._Fields>
protected TimeUnit._Fields enumForId(short id)
enumForId
in class org.apache.thrift.TUnion<TimeUnit,TimeUnit._Fields>
public TimeUnit._Fields fieldForId(int fieldId)
public MilliSeconds getMILLIS()
public void setMILLIS(MilliSeconds value)
public MicroSeconds getMICROS()
public void setMICROS(MicroSeconds value)
public NanoSeconds getNANOS()
public void setNANOS(NanoSeconds value)
public boolean isSetMILLIS()
public boolean isSetMICROS()
public boolean isSetNANOS()
public boolean equals(TimeUnit other)
public int compareTo(TimeUnit other)
Copyright © 2021 The Apache Software Foundation. All rights reserved.