class Trie
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Trie.ITrieHandler |
| Modifier and Type | Field and Description |
|---|---|
private int |
count |
private int |
liveNodes |
private byte |
min |
(package private) Trie[] |
next |
private int |
refcnt |
| Constructor and Description |
|---|
Trie() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Msg msg,
int start,
int size) |
void |
apply(Trie.ITrieHandler func,
Pipe arg) |
private void |
applyHelper(byte[] buff,
int buffsize,
int maxBuffsize,
Trie.ITrieHandler func,
Pipe pipe) |
boolean |
check(java.nio.ByteBuffer data) |
private boolean |
isRedundant() |
private Trie[] |
realloc(Trie[] table,
int size,
boolean ended) |
boolean |
rm(Msg msg,
int start,
int size) |
private int refcnt
private byte min
private int count
private int liveNodes
Trie[] next
public boolean add(Msg msg, int start, int size)
public boolean rm(Msg msg, int start, int size)
public boolean check(java.nio.ByteBuffer data)
public void apply(Trie.ITrieHandler func, Pipe arg)
private void applyHelper(byte[] buff,
int buffsize,
int maxBuffsize,
Trie.ITrieHandler func,
Pipe pipe)
private boolean isRedundant()