public final class DataBuilder
extends java.lang.Object
| Constructor and Description |
|---|
DataBuilder(MemData md)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build(ANode n)
Fills the data instance with the specified node.
|
void |
build(NodeCache nc)
Fills the data instance with the specified nodes.
|
DataBuilder |
ftpos(byte[] tag,
FTPosData pos,
int len)
Attaches full-text position data.
|
static ANode |
stripNS(ANode node,
byte[] ns,
Context ctx)
Returns a new node without the specified namespace.
|
public DataBuilder(MemData md)
md - target datapublic DataBuilder ftpos(byte[] tag, FTPosData pos, int len)
tag - name of marker tagpos - full-text position datalen - length of extractpublic void build(ANode n)
n - nodepublic void build(NodeCache nc)
nc - node iterator