Example usage for org.apache.cassandra.utils FBUtilities getAvailableProcessors

List of usage examples for org.apache.cassandra.utils FBUtilities getAvailableProcessors

Introduction

In this page you can find the example usage for org.apache.cassandra.utils FBUtilities getAvailableProcessors.

Prototype

public static int getAvailableProcessors() 

Source Link

Usage

From source file:com.tuplejump.calliope.hadoop.AbstractColumnFamilyRecordWriter.java

License:Apache License

protected AbstractColumnFamilyRecordWriter(Configuration conf) {
    this.conf = conf;
    this.ringCache = new RingCache(conf);
    this.queueSize = conf.getInt(AbstractColumnFamilyOutputFormat.QUEUE_SIZE,
            32 * FBUtilities.getAvailableProcessors());
    batchThreshold = conf.getLong(AbstractColumnFamilyOutputFormat.BATCH_THRESHOLD, 32);
    consistencyLevel = ConsistencyLevel.valueOf(ConfigHelper.getWriteConsistencyLevel(conf));
}