Example usage for org.apache.cassandra.hadoop.cql3 CqlBulkOutputFormat getDeleteSourceOnSuccess

List of usage examples for org.apache.cassandra.hadoop.cql3 CqlBulkOutputFormat getDeleteSourceOnSuccess

Introduction

In this page you can find the example usage for org.apache.cassandra.hadoop.cql3 CqlBulkOutputFormat getDeleteSourceOnSuccess.

Prototype

public static boolean getDeleteSourceOnSuccess(Configuration conf) 

Source Link

Usage

From source file:de.hpi.isg.mdms.hadoop.cassandra.CqlBulkRecordWriter.java

License:Apache License

private void setConfigs() throws IOException {
    // if anything is missing, exceptions will be thrown here, instead of on write()
    keyspace = ConfigHelper.getOutputKeyspace(conf);
    columnFamily = ConfigHelper.getOutputColumnFamily(conf);
    schema = CqlBulkOutputFormat.getColumnFamilySchema(conf, columnFamily);
    insertStatement = CqlBulkOutputFormat.getColumnFamilyInsertStatement(conf, columnFamily);
    outputDir = getColumnFamilyDirectory();
    deleteSrc = CqlBulkOutputFormat.getDeleteSourceOnSuccess(conf);
}