Example usage for org.apache.cassandra.io.sstable.format SSTableWriter create

List of usage examples for org.apache.cassandra.io.sstable.format SSTableWriter create

Introduction

In this page you can find the example usage for org.apache.cassandra.io.sstable.format SSTableWriter create.

Prototype

@VisibleForTesting
    public static SSTableWriter create(Descriptor descriptor, long keyCount, long repairedAt, UUID pendingRepair,
            boolean isTransient, SerializationHeader header, Collection<Index> indexes,
            LifecycleNewTracker lifecycleNewTracker) 

Source Link

Usage

From source file:com.jeffjirsa.cassandra.db.compaction.writers.CleaningTimeWindowCompactionWriter.java

License:Apache License

@Override
protected void switchCompactionLocation(Directories.DataDirectory directory) {
    @SuppressWarnings("resource")
    SSTableWriter writer = SSTableWriter.create(
            Descriptor.fromFilename(cfs.getSSTablePath(getDirectories().getLocationForDisk(directory))),
            estimatedTotalKeys, minRepairedAt, cfs.metadata,
            new MetadataCollector(txn.originals(), cfs.metadata.comparator, 0),
            SerializationHeader.make(cfs.metadata, nonExpiredSSTables), cfs.indexManager.listIndexes(), txn);
    sstableWriter.switchWriter(writer);/*  w  w  w . j a va2s . c  o  m*/
}