Example usage for org.apache.thrift EncodingUtils testBit

List of usage examples for org.apache.thrift EncodingUtils testBit

Introduction

In this page you can find the example usage for org.apache.thrift EncodingUtils testBit.

Prototype

public static final boolean testBit(long v, int position) 

Source Link

Usage

From source file:cgl.iotcloud.core.master.thrift.THeartBeatRequest.java

License:Apache License

/** Returns true if field sensors is set (has been assigned a value) and false otherwise */
public boolean isSetSensors() {
    return EncodingUtils.testBit(__isset_bitfield, __SENSORS_ISSET_ID);
}

From source file:cgl.iotcloud.core.master.thrift.THeartBeatResponse.java

License:Apache License

/** Returns true if field totalSensors is set (has been assigned a value) and false otherwise */
public boolean isSetTotalSensors() {
    return EncodingUtils.testBit(__isset_bitfield, __TOTALSENSORS_ISSET_ID);
}

From source file:cgl.iotcloud.core.master.thrift.THeartBeatResponse.java

License:Apache License

/** Returns true if field responsiveSonsor is set (has been assigned a value) and false otherwise */
public boolean isSetResponsiveSonsor() {
    return EncodingUtils.testBit(__isset_bitfield, __RESPONSIVESONSOR_ISSET_ID);
}

From source file:co.cask.tephra.distributed.thrift.TBoolean.java

License:Apache License

/** Returns true if field value is set (has been assigned a value) and false otherwise */
public boolean isSetValue() {
    return EncodingUtils.testBit(__isset_bitfield, __VALUE_ISSET_ID);
}

From source file:co.cask.tephra.distributed.thrift.TTransaction.java

License:Apache License

/** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
public boolean isSetTransactionId() {
    return EncodingUtils.testBit(__isset_bitfield, __TRANSACTIONID_ISSET_ID);
}

From source file:co.cask.tephra.distributed.thrift.TTransaction.java

License:Apache License

/** Returns true if field readPointer is set (has been assigned a value) and false otherwise */
public boolean isSetReadPointer() {
    return EncodingUtils.testBit(__isset_bitfield, __READPOINTER_ISSET_ID);
}

From source file:co.cask.tephra.distributed.thrift.TTransaction.java

License:Apache License

/** Returns true if field firstShort is set (has been assigned a value) and false otherwise */
public boolean isSetFirstShort() {
    return EncodingUtils.testBit(__isset_bitfield, __FIRSTSHORT_ISSET_ID);
}

From source file:co.cask.tephra.distributed.thrift.TTransaction.java

License:Apache License

/** Returns true if field writePointer is set (has been assigned a value) and false otherwise */
public boolean isSetWritePointer() {
    return EncodingUtils.testBit(__isset_bitfield, __WRITEPOINTER_ISSET_ID);
}

From source file:com.cloudera.impala.extdatasource.thrift.TGetStatsResult.java

License:Apache License

/** Returns true if field num_rows_estimate is set (has been assigned a value) and false otherwise */
public boolean isSetNum_rows_estimate() {
    return EncodingUtils.testBit(__isset_bitfield, __NUM_ROWS_ESTIMATE_ISSET_ID);
}

From source file:com.facebook.nifty.perf.LoadError.java

License:Apache License

/** 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);
}