本文整理了Java中org.apache.hadoop.io.Text.hashCode()
方法的一些代码示例,展示了Text.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Text.hashCode()
方法的具体详情如下:
包路径:org.apache.hadoop.io.Text
类名称:Text
方法名:hashCode
暂无
代码示例来源:origin: apache/hive
public int hashCode() {
return value.hashCode();
}
}
代码示例来源:origin: org.apache.hadoop/hadoop-common
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + publicService.hashCode();
return result;
}
}
代码示例来源:origin: apache/hive
public int hashCode() {
return getStrippedValue().hashCode();
}
代码示例来源:origin: apache/accumulo
@Override
public int hashCode() {
return colf.hashCode() + colq.hashCode();
}
代码示例来源:origin: mahmoudparsian/data-algorithms-book
@Override
public int getPartition(DateTemperaturePair pair,
Text text,
int numberOfPartitions) {
// make sure that partitions are non-negative
return Math.abs(pair.getYearMonth().hashCode() % numberOfPartitions);
}
}
代码示例来源:origin: mahmoudparsian/data-algorithms-book
@Override
public int hashCode() {
int result = yearMonth != null ? yearMonth.hashCode() : 0;
result = 31 * result + (temperature != null ? temperature.hashCode() : 0);
return result;
}
代码示例来源:origin: apache/accumulo
@Override
public int hashCode() {
if (hashCode != 0)
return hashCode;
int prevEndRowHash = 0;
int endRowHash = 0;
if (this.getEndRow() != null) {
endRowHash = this.getEndRow().hashCode();
}
if (this.getPrevEndRow() != null) {
prevEndRowHash = this.getPrevEndRow().hashCode();
}
hashCode = getTableId().hashCode() + endRowHash + prevEndRowHash;
return hashCode;
}
代码示例来源:origin: io.fluo/fluo-core
private int hashCode(Text t) {
if (t == null) {
return 0;
}
return t.hashCode();
}
代码示例来源:origin: org.apache.accumulo/accumulo-core
@Override
public int hashCode() {
return colf.hashCode() + colq.hashCode();
}
代码示例来源:origin: sonalgoyal/hiho
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((value1 == null) ? 0 : value1.hashCode());
result = prime * result + ((value2 == null) ? 0 : value2.hashCode());
return result;
}
代码示例来源:origin: io.prestosql.hadoop/hadoop-apache
@Override
public int hashCode() {
return jtIdentifier.hashCode() + id;
}
代码示例来源:origin: apache/incubator-rya
@Override
public int hashCode() {
int result = 7;
result = result * 17 + first.hashCode();
result = result * 17 + second.hashCode();
result = result * 17 + firstPos.hashCode();
result = result * 17 + secondPos.hashCode();
result = result * 17 + keyPos.hashCode();
return result;
}
代码示例来源:origin: org.apache.orc/orc-core
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + (minimum != null ? minimum.hashCode() : 0);
result = 31 * result + (maximum != null ? maximum.hashCode() : 0);
result = 31 * result + (int) (sum ^ (sum >>> 32));
return result;
}
}
代码示例来源:origin: org.seqdoop/hadoop-bam
@Override
public int hashCode() {
int result = sequence.hashCode();
result = 31 * result + (position != null ? position.hashCode() : 0);
result = 31 * result + (indexSequence != null ? indexSequence.hashCode() : 0);
return result;
}
代码示例来源:origin: org.hammerlab/hadoop-bam
@Override
public int hashCode() {
int result = sequence.hashCode();
result = 31 * result + (position != null ? position.hashCode() : 0);
result = 31 * result + (indexSequence != null ? indexSequence.hashCode() : 0);
return result;
}
代码示例来源:origin: HadoopGenomics/Hadoop-BAM
@Override
public int hashCode() {
int result = sequence.hashCode();
result = 31 * result + (position != null ? position.hashCode() : 0);
result = 31 * result + (indexSequence != null ? indexSequence.hashCode() : 0);
return result;
}
代码示例来源:origin: io.hops/hadoop-common
@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + publicService.hashCode();
return result;
}
}
代码示例来源:origin: NationalSecurityAgency/datawave
/**
* Build the computed hash code.
*/
protected void buildHashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((key == null) ? 0 : key.hashCode());
result = prime * result + ((tableName == null) ? 0 : tableName.hashCode());
hashCode = result;
}
代码示例来源:origin: NationalSecurityAgency/datawave
@Override
protected int getKeyHashcode(BulkIngestKey bKey) {
return bKey.getKey().getRow().hashCode();
}
}
代码示例来源:origin: apache/incubator-rya
@Override
public int hashCode() {
int result = 7;
result = result * 17 + card.hashCode();
result = result * 17 + cardType.hashCode();
result = result * 17 + ts.hashCode();
return result;
}
内容来源于网络,如有侵权,请联系作者删除!