public class SimHash
extends com.exalead.gni.GNINativeObject
Constructor and Description |
---|
SimHash()
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addToken(java.lang.String token)
Adds a token to the list of token to be used for the simhash computation.
|
void |
clear()
Reset the computation of the simhash value.
|
static int |
compare(long fp1,
long fp2)
Compare two hashes.
|
long |
compute()
Compute the simhash value.
|
public void clear()
public void addToken(java.lang.String token)
token
- the token to use.public long compute()
public static int compare(long fp1, long fp2)
fp1
- the first fingerprint.fp2
- the second fingerprint.Copyright © 2013 Dassault Systèmes, All Rights Reserved.