Example usage for org.apache.spark.util.sketch BloomFilter readFrom

List of usage examples for org.apache.spark.util.sketch BloomFilter readFrom

Introduction

In this page you can find the example usage for org.apache.spark.util.sketch BloomFilter readFrom.

Prototype

public static BloomFilter readFrom(InputStream in) throws IOException 

Source Link

Document

Reads in a BloomFilter from an input stream.

Usage

From source file:com.github.sadikovi.riff.column.BloomColumnFilter.java

License:Open Source License

@Override
protected void readState(ByteBuffer buffer) throws IOException {
    // buffer is updated by stream
    ByteBufferStream in = new ByteBufferStream(buffer);
    filter = BloomFilter.readFrom(in);
}