public class IndexTree extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
cn
Current iterator node.
|
protected static double |
FACTOR
Factor for resize.
|
TokenList |
keys
Keys saved in the tree.
|
protected TokenIntMap |
maps
Mapping for using existing tree.
|
TokenList |
values
Compressed id values.
|
Constructor and Description |
---|
IndexTree() |
Modifier and Type | Method and Description |
---|---|
void |
index(byte[] key,
int value)
Indexes the specified key and value.
|
protected int |
index(byte[] key,
int value,
boolean exist)
Indexes the specified key and value.
|
void |
init()
Initializes the index iterator.
|
boolean |
more()
Checks if the iterator returns more keys.
|
int |
next()
Returns the next pointer.
|
int |
size()
Returns the number of entries.
|
protected static final double FACTOR
public final TokenList keys
public TokenList values
protected TokenIntMap maps
protected int cn
public final void index(byte[] key, int value)
key
- key to be indexedvalue
- value to be indexesprotected final int index(byte[] key, int value, boolean exist)
key
- key to be indexedvalue
- value to be indexedexist
- flag for using existing indexpublic final int size()
public final void init()
public final boolean more()
public final int next()
Copyright © 2005–2015 BaseX Team. All rights reserved.