Package org.apache.hadoop.util.bloom

Examples of org.apache.hadoop.util.bloom.BloomFilter.readFields()


    protected BloomFilter bloomIn(DataByteArray b) throws IOException {
        DataInputStream dis = new DataInputStream(new
            ByteArrayInputStream(b.get()));
        BloomFilter f = new BloomFilter();
        f.readFields(dis);
        return f;
    }

    private int convertHashType(String hashType) {
        if (hashType.toLowerCase().contains("jenkins")) {
View Full Code Here


    try {
      Preconditions.checkArgument(serialized != null);
      DataInputStream in = new DataInputStream(new ByteArrayInputStream(
          serialized));
      BloomFilter bloom = new BloomFilter(); // empty constructor
      bloom.readFields(in);
      return bloom;
    } catch (IOException e) {
      throw new IllegalArgumentException(e.getMessage());
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.