|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.java.sen.compiler.VirtualTupleList
public class VirtualTupleList
A file-mapped list of
s.
Slightly slower than a simple in-memory sort, but capable of storing and
sorting very long lists without using large quantities of heap memory.StringCTokenTuple
The index of entry positions in the list's file is stored in memory, leading
to a usage of one Integer's worth of memory for each entry.
Usage:
- Call add(java.lang.String, net.java.sen.dictionary.CToken)
one or more times
- Call sort()
once. Once the list has been sorted, it is no longer
valid to add new entries
- Call get(int)
to retrieve entries from the sorted list
コンストラクタの概要 | |
---|---|
VirtualTupleList()
|
メソッドの概要 | |
---|---|
void |
add(java.lang.String string,
CToken ctoken)
Adds a StringCTokenTuple to the list. |
StringCTokenTuple |
get(int index)
Retrieves an entry from the list. |
int |
size()
Returns the number of entries in the list |
void |
sort()
Sorts the list |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public VirtualTupleList() throws java.io.IOException
java.io.IOException
メソッドの詳細 |
---|
public void add(java.lang.String string, CToken ctoken) throws java.io.IOException
string
- The stringctoken
- The CToken
java.io.IOException
public StringCTokenTuple get(int index)
index
- The index of the entry to retrieve
public void sort() throws java.io.IOException
java.io.IOException
public int size()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |