public class SimHashService.Index extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(String content)
增加正文到索引中
|
void |
addHashCode(long hash)
增加hashcode到索引中
|
Set<Long> |
allHashCode()
得到索引中所有的hashcode
|
int |
nearest(long hashCode)
返回和当前查询最近的汉明距离数字
|
int |
nearest(String content)
返回和当前查询最近的汉明距离数字
|
int |
nearestAndAdd(long hashCode)
查询最近的距离并且添加到索引中
|
int |
nearestAndAdd(String content)
查询最近的距离并且添加到索引中
|
public void addHashCode(long hash)
T - hash - public void add(String content)
content - public int nearest(long hashCode)
hashCode - public int nearest(String content)
hashCode - public int nearestAndAdd(long hashCode)
hashCode - public int nearestAndAdd(String content)
hashCode - Copyright © 2017. All rights reserved.