Example usage for org.apache.cassandra.io.util RandomAccessReader open

List of usage examples for org.apache.cassandra.io.util RandomAccessReader open

Introduction

In this page you can find the example usage for org.apache.cassandra.io.util RandomAccessReader open.

Prototype

@SuppressWarnings("resource")
public static RandomAccessReader open(File file) 

Source Link

Document

Open a RandomAccessReader (not compressed, not mmapped, no read throttling) that will own its channel.

Usage

From source file:c3.ops.priam.backup.AbstractBackupPath.java

License:Apache License

public InputStream localReader() throws IOException {
    assert backupFile != null;
    return new RafInputStream(RandomAccessReader.open(backupFile));
}