org.apache.thrift.EncodingUtils Java Examples

The following examples show how to use org.apache.thrift.EncodingUtils. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Result.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/** Returns true if field code is set (has been assigned a value) and false otherwise */
public boolean isSetCode() {
  return EncodingUtils.testBit(__isset_bitfield, __CODE_ISSET_ID);
}
 
Example #2
Source File: ConsumerService.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
  return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
}
 
Example #3
Source File: RestMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void unsetTimestamp() {
  __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TIMESTAMP_ISSET_ID);
}
 
Example #4
Source File: QidResponse.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/** Returns true if field nextRequestOffset is set (has been assigned a value) and false otherwise */
public boolean isSetNextRequestOffset() {
  return EncodingUtils.testBit(__isset_bitfield, __NEXTREQUESTOFFSET_ISSET_ID);
}
 
Example #5
Source File: DelayMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/** Returns true if field action is set (has been assigned a value) and false otherwise */
public boolean isSetAction() {
  return EncodingUtils.testBit(__isset_bitfield, __ACTION_ISSET_ID);
}
 
Example #6
Source File: FetchRequest.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setMaxLingerTimeIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXLINGERTIME_ISSET_ID, value);
}
 
Example #7
Source File: FetchRequest.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setMaxBatchSizeIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXBATCHSIZE_ISSET_ID, value);
}
 
Example #8
Source File: PullRequest.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/** Returns true if field maxBatchSize is set (has been assigned a value) and false otherwise */
public boolean isSetMaxBatchSize() {
  return EncodingUtils.testBit(__isset_bitfield, __MAXBATCHSIZE_ISSET_ID);
}
 
Example #9
Source File: RestMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setTypeIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TYPE_ISSET_ID, value);
}
 
Example #10
Source File: DelayMeta.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setTimesIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMES_ISSET_ID, value);
}
 
Example #11
Source File: FetchRequest.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void unsetMaxLingerTime() {
  __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXLINGERTIME_ISSET_ID);
}
 
Example #12
Source File: DelayMeta.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setTimestampIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMESTAMP_ISSET_ID, value);
}
 
Example #13
Source File: DelayMeta.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void unsetExpire() {
  __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __EXPIRE_ISSET_ID);
}
 
Example #14
Source File: FetchRequest.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setMaxLingerTimeIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXLINGERTIME_ISSET_ID, value);
}
 
Example #15
Source File: Result.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setCodeIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CODE_ISSET_ID, value);
}
 
Example #16
Source File: RestMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/** Returns true if field timeout is set (has been assigned a value) and false otherwise */
public boolean isSetTimeout() {
  return EncodingUtils.testBit(__isset_bitfield, __TIMEOUT_ISSET_ID);
}
 
Example #17
Source File: PullRequest.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void unsetMaxBatchSize() {
  __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXBATCHSIZE_ISSET_ID);
}
 
Example #18
Source File: DelayMeta.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/** Returns true if field dmsgtype is set (has been assigned a value) and false otherwise */
public boolean isSetDmsgtype() {
  return EncodingUtils.testBit(__isset_bitfield, __DMSGTYPE_ISSET_ID);
}
 
Example #19
Source File: DelayMeta.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setTimesIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TIMES_ISSET_ID, value);
}
 
Example #20
Source File: RestMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/** Returns true if field mode is set (has been assigned a value) and false otherwise */
public boolean isSetMode() {
  return EncodingUtils.testBit(__isset_bitfield, __MODE_ISSET_ID);
}
 
Example #21
Source File: DelayMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setExpireIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EXPIRE_ISSET_ID, value);
}
 
Example #22
Source File: FetchResponse.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void unsetCode() {
  __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CODE_ISSET_ID);
}
 
Example #23
Source File: DelayMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setIntervalIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERVAL_ISSET_ID, value);
}
 
Example #24
Source File: FetchRequest.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setMaxBatchSizeIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXBATCHSIZE_ISSET_ID, value);
}
 
Example #25
Source File: DelayMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/** Returns true if field interval is set (has been assigned a value) and false otherwise */
public boolean isSetInterval() {
  return EncodingUtils.testBit(__isset_bitfield, __INTERVAL_ISSET_ID);
}
 
Example #26
Source File: DelayMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void unsetInterval() {
  __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERVAL_ISSET_ID);
}
 
Example #27
Source File: DelayMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void setDmsgtypeIsSet(boolean value) {
  __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DMSGTYPE_ISSET_ID, value);
}
 
Example #28
Source File: DelayMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/** Returns true if field dmsgtype is set (has been assigned a value) and false otherwise */
public boolean isSetDmsgtype() {
  return EncodingUtils.testBit(__isset_bitfield, __DMSGTYPE_ISSET_ID);
}
 
Example #29
Source File: DelayMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
public void unsetDmsgtype() {
  __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DMSGTYPE_ISSET_ID);
}
 
Example #30
Source File: DelayMessage.java    From DDMQ with Apache License 2.0 4 votes vote down vote up
/** Returns true if field interval is set (has been assigned a value) and false otherwise */
public boolean isSetInterval() {
  return EncodingUtils.testBit(__isset_bitfield, __INTERVAL_ISSET_ID);
}