public class Word
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
commonHashLength
this is the lenght(12) of the hash key that is used:
- for seed hashes (this Object) - for word hashes (IndexEntry.wordHashLength) - for L-URL hashes (plasmaLURL.urlHashLength) these hashes all shall be generated by base64.enhancedCoder |
static Base64Order |
commonHashOrder |
int |
count |
Bitfield |
flags |
private static ARC<java.lang.String,byte[]> |
hashCache |
private static int |
hashCacheSize |
private static byte |
highByte |
private static byte |
lowByte |
int |
numOfPhrase |
int |
posInPhrase |
int |
posInText |
static byte |
PRIVATE_TYPE_COPY |
static byte |
PRIVATE_TYPE_PHONETIC |
Constructor and Description |
---|
Word(int handle,
int pip,
int nop) |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache() |
static byte[] |
hash2private(byte[] hash,
byte privateType) |
void |
inc() |
static boolean |
isPrivate(byte[] hash) |
int |
occurrences() |
java.lang.String |
toString() |
static byte[] |
word2hash(java.lang.String word) |
static byte[] |
word2hash(java.lang.StringBuilder word) |
static HandleSet |
words2hashesHandles(java.util.Collection<java.lang.String> words) |
static HandleSet |
words2hashesHandles(java.lang.String[] words) |
public static final int commonHashLength
public static final Base64Order commonHashOrder
private static final int hashCacheSize
private static ARC<java.lang.String,byte[]> hashCache
public int count
public int posInText
public int posInPhrase
public int numOfPhrase
public Bitfield flags
private static final byte lowByte
private static final byte highByte
public static final byte PRIVATE_TYPE_COPY
public static final byte PRIVATE_TYPE_PHONETIC
public static void clearCache()
public void inc()
public int occurrences()
public java.lang.String toString()
toString
in class java.lang.Object
public static byte[] word2hash(java.lang.StringBuilder word)
public static boolean isPrivate(byte[] hash)
public static final byte[] word2hash(java.lang.String word)
public static final byte[] hash2private(byte[] hash, byte privateType)
public static final HandleSet words2hashesHandles(java.util.Collection<java.lang.String> words)
public static final HandleSet words2hashesHandles(java.lang.String[] words)