class Mtrie
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Mtrie.IMtrieHandler |
Modifier and Type | Field and Description |
---|---|
private int |
count |
private int |
liveNodes |
private int |
min |
private Mtrie[] |
next |
private java.util.Set<Pipe> |
pipes |
Constructor and Description |
---|
Mtrie() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Msg msg,
Pipe pipe) |
private boolean |
addHelper(Msg msg,
int start,
int size,
Pipe pipe) |
(package private) boolean |
addOnTop(Pipe pipe) |
private boolean |
isRedundant() |
void |
match(java.nio.ByteBuffer data,
int size,
Mtrie.IMtrieHandler func,
XPub pub) |
private Mtrie[] |
realloc(Mtrie[] table,
int size,
boolean ended) |
boolean |
rm(Msg msg,
Pipe pipe) |
boolean |
rm(Pipe pipe,
Mtrie.IMtrieHandler func,
XPub pub) |
private boolean |
rmHelper(Msg msg,
int start,
int size,
Pipe pipe) |
private boolean |
rmHelper(Pipe pipe,
byte[] buff,
int buffsize,
int maxBuffSize,
Mtrie.IMtrieHandler func,
XPub pub) |
private java.util.Set<Pipe> pipes
private int min
private int count
private int liveNodes
private Mtrie[] next
final boolean addOnTop(Pipe pipe)
public boolean rm(Pipe pipe, Mtrie.IMtrieHandler func, XPub pub)
private boolean rmHelper(Pipe pipe, byte[] buff, int buffsize, int maxBuffSize, Mtrie.IMtrieHandler func, XPub pub)
public void match(java.nio.ByteBuffer data, int size, Mtrie.IMtrieHandler func, XPub pub)
private boolean isRedundant()