List of usage examples for org.apache.cassandra.utils FBUtilities getAvailableProcessors
public static int getAvailableProcessors()
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)); }