Example usage for org.apache.cassandra.hadoop ConfigHelper getWriteConsistencyLevel

List of usage examples for org.apache.cassandra.hadoop ConfigHelper getWriteConsistencyLevel

Introduction

In this page you can find the example usage for org.apache.cassandra.hadoop ConfigHelper getWriteConsistencyLevel.

Prototype

public static String getWriteConsistencyLevel(Configuration conf) 

Source Link

Usage

From source file:com.buzzinate.dm.cassandra.ColumnFamilyRecordWriter.java

License:Apache License

ColumnFamilyRecordWriter(Configuration conf) throws IOException {
    this.conf = conf;
    this.ringCache = new RingCache(conf);
    this.queueSize = conf.getInt(ColumnFamilyOutputFormat.QUEUE_SIZE,
            32 * Runtime.getRuntime().availableProcessors());
    this.clients = new HashMap<Range, RangeClient>();
    batchThreshold = conf.getLong(ColumnFamilyOutputFormat.BATCH_THRESHOLD, 32);
    consistencyLevel = ConsistencyLevel.valueOf(ConfigHelper.getWriteConsistencyLevel(conf));
}