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() |
protected org.apache.thrift.protocol.TStruct |
getStructDesc() |
int |
hashCode() |
boolean |
isSetMICROS() |
boolean |
isSetMILLIS() |
static TimeUnit |
MICROS(MicroSeconds value) |
static TimeUnit |
MILLIS(MilliSeconds value) |
void |
setMICROS(MicroSeconds value) |
void |
setMILLIS(MilliSeconds 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)
protected void checkType(TimeUnit._Fields setField, Object value) throws ClassCastException
checkType in class org.apache.thrift.TUnion<TimeUnit,TimeUnit._Fields>ClassCastExceptionprotected 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.TExceptionprotected 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.TExceptionprotected 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.TExceptionprotected 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.TExceptionprotected 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 boolean isSetMILLIS()
public boolean isSetMICROS()
public boolean equals(TimeUnit other)
public int compareTo(TimeUnit other)
Copyright © 2017 The Apache Software Foundation. All rights reserved.