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.OwnerResourceSummary.java

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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

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

License:Apache License

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