|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.core.Progress
org.basex.build.Builder
org.basex.build.DiskBuilder
public final class DiskBuilder
This class creates a disk based database instance.
| Constructor Summary | |
|---|---|
DiskBuilder()
|
|
| Method Summary | |
|---|---|
void |
addNode(int tag,
int par,
byte[][] atr,
int[] attRef,
int type)
Adds a complex node to the database. |
void |
addSize(int pre)
Adds the size value to the table. |
void |
addText(byte[] txt,
int par,
int type)
Adds a simple node to the database. |
void |
close()
Closes open references. |
static void |
main(java.lang.String[] args)
Test method for the, building the database and storing the table to disk. |
| Methods inherited from class org.basex.build.Builder |
|---|
build, comment, det, emptyNode, encoding, endNode, head, nodeAndText, pi, prog, startNode, state, text |
| Methods inherited from class org.basex.core.Progress |
|---|
detail, header, progress, progress, stop, stopped |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiskBuilder()
| Method Detail |
|---|
public void addNode(int tag,
int par,
byte[][] atr,
int[] attRef,
int type)
throws java.io.IOException
Builder
tag - the token to be added (tag name or content)par - relative parent value (distance)atr - optional attribute tokensattRef - numeric attribute referencestype - node type
java.io.IOException - in case of parsing or writing problems
public void addSize(int pre)
throws java.io.IOException
Builder
pre - closing pre tag
java.io.IOException - in case of parsing or writing problems
public void addText(byte[] txt,
int par,
int type)
throws java.io.IOException
Builder
txt - the token to be added (tag name or content)par - relative parent value (distance)type - the node type
java.io.IOException - in case of parsing or writing problems
public void close()
throws java.io.IOException
Builder
close in class Builderjava.io.IOException - in case of parsing or writing problemspublic static void main(java.lang.String[] args)
args - files to be built
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||