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:org.apache.storm.generated.SupervisorSummary.java

License:Apache License

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

From source file:org.apache.storm.generated.SupervisorSummary.java

License:Apache License

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

From source file:org.apache.storm.generated.WorkerMetricPoint.java

License:Apache License

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

From source file:org.apache.storm.generated.WorkerMetricPoint.java

License:Apache License

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

From source file:org.apache.storm.generated.WorkerTokenInfo.java

License:Apache License

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

From source file:qa.qcri.qnoise.external.TQnoiseSpec.java

License:MIT License

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

From source file:qa.qcri.qnoise.external.TQnoiseSpec.java

License:MIT License

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

From source file:qa.qcri.qnoise.external.TQnoiseSpec.java

License:MIT License

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