public class DoubleArrayTrie extends Object
| 构造器和说明 |
|---|
DoubleArrayTrie() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
build(List<String> key) |
int |
build(List<String> _key,
int[] _length,
int[] _value,
int _keySize) |
List<Integer> |
commonPrefixSearch(String key) |
List<Integer> |
commonPrefixSearch(String key,
int pos,
int len,
int nodePos) |
void |
dump() |
int |
exactMatchSearch(String key) |
int |
exactMatchSearch(String key,
int pos,
int len,
int nodePos) |
int |
getNonzeroSize() |
int |
getSize() |
int |
getTotalSize() |
int |
getUnitSize() |
void |
open(String fileName) |
void |
save(String fileName) |
public int getUnitSize()
public int getSize()
public int getTotalSize()
public int getNonzeroSize()
public void open(String fileName) throws IOException
IOExceptionpublic void save(String fileName) throws IOException
IOExceptionpublic int exactMatchSearch(String key)
public int exactMatchSearch(String key, int pos, int len, int nodePos)
public List<Integer> commonPrefixSearch(String key, int pos, int len, int nodePos)
public void dump()
Copyright © 2013–2016. All rights reserved.