Example usage for org.apache.cassandra.utils MergeIterator get

List of usage examples for org.apache.cassandra.utils MergeIterator get

Introduction

In this page you can find the example usage for org.apache.cassandra.utils MergeIterator get.

Prototype

@SuppressWarnings("resource")
    public static <In, Out> MergeIterator<In, Out> get(List<? extends Iterator<In>> sources,
            Comparator<? super In> comparator, Reducer<In, Out> reducer) 

Source Link

Usage

From source file:com.cloudian.support.SSTableCompactedRowIterable.java

License:Apache License

@Override
public CloseableIterator<CompactedRowDescriptor> iterator() {

    // THE comparator IS NOT STRING BASED, BUT token
    return MergeIterator.get(this.scanners, comparator, new Reducer());

}