|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.data.MetaData
public final class MetaData
This class provides meta information on a database.
| Field Summary | |
|---|---|
boolean |
atvindex
Flag for creating a attribute value index. |
boolean |
chop
Flag for whitespace chopping. |
java.lang.String |
dbname
Database name. |
java.lang.String |
encoding
Encoding of XML document. |
boolean |
entity
Flag for entity parsing. |
java.lang.String |
filename
Original filename of XML document. |
long |
filesize
Original file size of XML document. |
boolean |
ftxindex
Flag for creating a fulltext index. |
int |
height
Maximum document height. |
long |
lastid
Last (highest) id assigned to a node. |
long |
time
Modification time. |
boolean |
txtindex
Flag for creating a text index. |
boolean |
wrdindex
Flag for creating a word index. |
| Constructor Summary | |
|---|---|
MetaData(java.lang.String db)
Constructor, specifying the database name. |
|
MetaData(java.lang.String file,
java.lang.String db)
Constructor, specifying the database name and the input file. |
|
| Method Summary | |
|---|---|
void |
noIndex()
Deletes/resets the indexes. |
int |
read()
Opens the metadata for the current database and returns the table size. |
static boolean |
sameAs(java.lang.String path,
java.lang.String db)
Checks if the specified database refers to the specified file. |
void |
write(int siz)
Writes the database to the specified path. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean atvindex
public boolean chop
public java.lang.String dbname
public java.lang.String encoding
public boolean entity
public java.lang.String filename
public long filesize
public boolean ftxindex
public int height
public long lastid
public long time
public boolean txtindex
public boolean wrdindex
| Constructor Detail |
|---|
public MetaData(java.lang.String db)
db - database name
public MetaData(java.lang.String file,
java.lang.String db)
file - input filedb - database name| Method Detail |
|---|
public void noIndex()
public int read()
throws java.io.IOException
java.io.IOException - IO Exception
public static boolean sameAs(java.lang.String path,
java.lang.String db)
path - file path (incl. file name)db - database name
public void write(int siz)
throws java.io.IOException
siz - current database size
java.io.IOException - IO Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||