org.apache.hadoop.hbase.util.Hash.getHashType()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中org.apache.hadoop.hbase.util.Hash.getHashType()方法的一些代码示例,展示了Hash.getHashType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hash.getHashType()方法的具体详情如下:
包路径:org.apache.hadoop.hbase.util.Hash
类名称:Hash
方法名:getHashType

Hash.getHashType介绍

[英]This utility method converts the name of the configured hash type to a symbolic constant.
[中]此实用程序方法将配置的哈希类型的名称转换为符号常量。

代码示例

代码示例来源:origin: apache/hbase

/**
 * Get a singleton instance of hash function of a type
 * defined in the configuration.
 * @param conf current configuration
 * @return defined hash type, or null if type is invalid
 */
public static Hash getInstance(Configuration conf) {
 int type = getHashType(conf);
 return getInstance(type);
}

代码示例来源:origin: apache/hbase

err, Hash.getHashType(conf), maxFold, cacheConf.shouldCacheBloomsOnWrite(),
  bloomType == BloomType.ROWCOL ? CellComparatorImpl.COMPARATOR : null, bloomType);
writer.addInlineBlockWriter(bloomWriter);

代码示例来源:origin: apache/hbase

err, Hash.getHashType(conf), maxFold, cacheConf.shouldCacheBloomsOnWrite(),
  null, BloomType.ROW);
writer.addInlineBlockWriter(bloomWriter);

代码示例来源:origin: com.aliyun.hbase/alihbase-common

/**
 * Get a singleton instance of hash function of a type
 * defined in the configuration.
 * @param conf current configuration
 * @return defined hash type, or null if type is invalid
 */
public static Hash getInstance(Configuration conf) {
 int type = getHashType(conf);
 return getInstance(type);
}

代码示例来源:origin: co.cask.hbase/hbase

/**
 * Get a singleton instance of hash function of a type
 * defined in the configuration.
 * @param conf current configuration
 * @return defined hash type, or null if type is invalid
 */
public static Hash getInstance(Configuration conf) {
 int type = getHashType(conf);
 return getInstance(type);
}

代码示例来源:origin: org.apache.hbase/hbase-common

/**
 * Get a singleton instance of hash function of a type
 * defined in the configuration.
 * @param conf current configuration
 * @return defined hash type, or null if type is invalid
 */
public static Hash getInstance(Configuration conf) {
 int type = getHashType(conf);
 return getInstance(type);
}

代码示例来源:origin: harbby/presto-connectors

/**
 * Get a singleton instance of hash function of a type
 * defined in the configuration.
 * @param conf current configuration
 * @return defined hash type, or null if type is invalid
 */
public static Hash getInstance(Configuration conf) {
 int type = getHashType(conf);
 return getInstance(type);
}

代码示例来源:origin: co.cask.hbase/hbase

getBloomBlockSize(conf), err, Hash.getHashType(conf), maxFold,
  cacheConf.shouldCacheBloomsOnWrite(), bloomType == BloomType.ROWCOL
    ? KeyValue.KEY_COMPARATOR : Bytes.BYTES_RAWCOMPARATOR);
} else if (maxKeys < tooBig) {
 BloomFilterWriter bloom = new ByteBloomFilter((int) maxKeys, err,
   Hash.getHashType(conf), maxFold);
 bloom.allocBloom();
 return bloom;

代码示例来源:origin: co.cask.hbase/hbase

getBloomBlockSize(conf), err, Hash.getHashType(conf),
maxFold,
cacheConf.shouldCacheBloomsOnWrite(), Bytes.BYTES_RAWCOMPARATOR);

代码示例来源:origin: harbby/presto-connectors

err, Hash.getHashType(conf), maxFold, cacheConf.shouldCacheBloomsOnWrite(),
  bloomType == BloomType.ROWCOL ? KeyValue.COMPARATOR : KeyValue.RAW_COMPARATOR);
writer.addInlineBlockWriter(bloomWriter);

代码示例来源:origin: harbby/presto-connectors

err, Hash.getHashType(conf), maxFold, cacheConf.shouldCacheBloomsOnWrite(),
  KeyValue.RAW_COMPARATOR);
writer.addInlineBlockWriter(bloomWriter);

相关文章

微信公众号

最新文章

更多