本文整理了Java中org.apache.hadoop.fs.Path.hashCode()
方法的一些代码示例,展示了Path.hashCode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Path.hashCode()
方法的具体详情如下:
包路径:org.apache.hadoop.fs.Path
类名称:Path
方法名:hashCode
暂无
代码示例来源:origin: apache/storm
@Override
public int hashCode() {
return file != null ? file.hashCode() : 0;
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
return logFile.hashCode();
}
代码示例来源:origin: org.apache.hadoop/hadoop-common
@Override
public int hashCode() {
return path.hashCode();
}
}
代码示例来源:origin: org.apache.hadoop/hadoop-common
/**
* Returns a hash code value for the object, which is defined as
* the hash code of the path name.
*
* @return a hash code value for the path name.
*/
@Override
public int hashCode() {
return getPath().hashCode();
}
代码示例来源:origin: apache/incubator-gobblin
@Override
public int hashCode() {
return this.path.hashCode() + this.version.hashCode();
}
代码示例来源:origin: apache/incubator-gobblin
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((clustername == null) ? 0 : clustername.hashCode());
result = prime * result + ((colo == null) ? 0 : colo.hashCode());
result = prime * result + ((fsURI == null) ? 0 : fsURI.hashCode());
result = prime * result + ((path == null) ? 0 : path.hashCode());
return result;
}
代码示例来源:origin: apache/hive
@Override
public int hashCode() {
return path.hashCode() + 31 * length;
}
代码示例来源:origin: apache/hive
@Override
public int hashCode() {
return path.hashCode() + 31 * length;
}
代码示例来源:origin: apache/incubator-gobblin
@Override
public int hashCode() {
return this.version.hashCode() + this.path.hashCode();
}
代码示例来源:origin: apache/incubator-gobblin
/**
* Returns a hash code value for the object, which is defined as
* the hash code of the path name.
*
* @return a hash code value for the path name.
*/
@Override
public int hashCode() {
return getPath().hashCode();
}
}
代码示例来源:origin: apache/hbase
@Override
public int hashCode() {
int hash = 17;
hash = hash * 31 + ((reference == null) ? 0 : reference.hashCode());
hash = hash * 31 + ((initialPath == null) ? 0 : initialPath.hashCode());
hash = hash * 31 + ((link == null) ? 0 : link.hashCode());
return hash;
}
代码示例来源:origin: apache/drill
public int hashCode() {
final int IdxDescHashCode = (indexDesc == null) ? 0 : indexDesc.getIndexFid().hashCode();
return (path.hashCode() + IdxDescHashCode + ugi.hashCode());
}
代码示例来源:origin: apache/hive
@Override
public int hashCode() {
if (fs == null) return 0;
final int prime = 31;
int result = prime * 1 + fs.getPath().hashCode();
result = prime * result + Long.valueOf(fs.getStart()).hashCode();
return prime * result + Long.valueOf(fs.getLength()).hashCode();
}
代码示例来源:origin: apache/accumulo
@Override
public int hashCode() {
return suffix.hashCode();
}
代码示例来源:origin: org.apache.tez/tez-runtime-library
@Override
public int hashCode() {
int result = path.hashCode();
result = 31 * result + (int) (offset ^ (offset >>> 32));
result = 31 * result + (int) (length ^ (length >>> 32));
return result;
}
代码示例来源:origin: ch.cern.hadoop/hadoop-common
@Override
public int hashCode() {
return path.hashCode();
}
}
代码示例来源:origin: com.github.jiayuhan-it/hadoop-common
@Override
public int hashCode() {
return path.hashCode();
}
}
代码示例来源:origin: apache/datafu
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((date == null) ? 0 : date.hashCode());
result = prime * result + ((path == null) ? 0 : path.hashCode());
return result;
}
代码示例来源:origin: com.linkedin.gobblin/gobblin-utility
/**
* Returns a hash code value for the object, which is defined as
* the hash code of the path name.
*
* @return a hash code value for the path name.
*/
@Override
public int hashCode() {
return getPath().hashCode();
}
}
代码示例来源:origin: io.hops/hadoop-yarn-server-nodemanager
@Override
public int hashCode() {
int hash = loc.hashCode() ^
(int)((timestamp >>> 32) ^ timestamp) *
type.hashCode();
if(pattern != null) {
hash = hash ^ pattern.hashCode();
}
return hash;
}
内容来源于网络,如有侵权,请联系作者删除!