Package org.apache.hadoop.hbase

Examples of org.apache.hadoop.hbase.BloomFilterDescriptor


    }

    // Now we gather all the specified options for this column.
    if (bloomFilterType != null) {
      if (specs.contains("NUM_ENTRIES")) {
        bloomFilterDesc = new BloomFilterDescriptor(bloomFilterType, numEntries);
      } else {
        bloomFilterDesc = new BloomFilterDescriptor(bloomFilterType,
            vectorSize, numHash);
      }
    }

    column = appendDelimiter(column);
View Full Code Here


    }

    // Now we gather all the specified options for this column.
    if (bloomFilterType != null) {
      if (specs.contains("NUM_ENTRIES")) {
        bloomFilterDesc = new BloomFilterDescriptor(bloomFilterType, numEntries);
      } else {
        bloomFilterDesc = new BloomFilterDescriptor(bloomFilterType, vectorSize,
            numHash);
      }
    }

    column = appendDelimiter(column);
View Full Code Here

   * @throws IllegalArgument
   */
  static public HColumnDescriptor colDescFromThrift(ColumnDescriptor in)
      throws IllegalArgument {
    CompressionType comp = CompressionType.valueOf(in.compression);
    BloomFilterDescriptor bloom = null;
    if (in.bloomFilterType.compareTo("NONE") != 0) {
      if (in.bloomFilterVectorSize > 0 && in.bloomFilterNbHashes > 0) {
        bloom = new BloomFilterDescriptor(BloomFilterDescriptor.BloomFilterType
            .valueOf(in.bloomFilterType), in.bloomFilterVectorSize,
            in.bloomFilterNbHashes);
      } else if (in.bloomFilterVectorSize > 0) {
        bloom = new BloomFilterDescriptor(BloomFilterDescriptor.BloomFilterType
            .valueOf(in.bloomFilterType), in.bloomFilterVectorSize);
      } else {
        throw new IllegalArgument(
            "must specify number of entries for bloom filter");
      }
View Full Code Here

    col.name = in.getName().getBytes();
    col.maxVersions = in.getMaxVersions();
    col.compression = in.getCompression().toString();
    col.inMemory = in.isInMemory();
    col.maxValueLength = in.getMaxValueLength();
    BloomFilterDescriptor bloom = in.getBloomFilter();
    if (bloom != null) {
      col.bloomFilterType = bloom.getType().toString();
      col.bloomFilterVectorSize = bloom.getVectorSize();
      col.bloomFilterNbHashes = bloom.getNbHash();
    }
    return col;
  }
View Full Code Here

    }

    // Now we gather all the specified options for this column.
    if (bloomFilterType != null) {
      if (specs.contains("NUM_ENTRIES")) {
        bloomFilterDesc = new BloomFilterDescriptor(bloomFilterType, numEntries);
      } else {
        bloomFilterDesc = new BloomFilterDescriptor(bloomFilterType, vectorSize,
            numHash);
      }
    }

    column = appendDelimiter(column);
View Full Code Here

    if (this.bloomFilter && versionNumber < 5) {
      // If a bloomFilter is enabled and the column descriptor is less than
      // version 5, we need to skip over it to read the rest of the column
      // descriptor. There are no BloomFilterDescriptors written to disk for
      // column descriptors with a version number >= 5
      BloomFilterDescriptor junk = new BloomFilterDescriptor();
      junk.readFields(in);
    }
    if (versionNumber > 1) {
      this.blockCacheEnabled = in.readBoolean();
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.BloomFilterDescriptor

Copyright © 2018 www.massapicom. 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.