|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.Data
org.basex.data.DiskData
public final class DiskData
This class stores and organizes the database table and the index structures
for textual content in a compressed disk structure.
The table mapping is documented in Data
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.data.Data |
---|
Data.Type |
Field Summary |
---|
Fields inherited from class org.basex.data.Data |
---|
ATTR, atts, COMM, DOC, ELEM, fs, meta, nameID, ns, path, PI, sizeID, tags, TEXT |
Constructor Summary | |
---|---|
DiskData(MetaData md,
Names nm,
Names at,
PathSummary ps,
Namespaces n)
Internal constructor, specifying all meta data. |
|
DiskData(String db,
Prop pr)
Default constructor. |
Method Summary | |
---|---|
void |
closeIndex(Data.Type type)
Closes the specified index. |
void |
cls()
Internal method to close the database. |
void |
flush()
Flushes the table data. |
void |
init()
Dissolves the references to often used tag names and attributes. |
void |
setIndex(Data.Type type,
Index index)
Assigns the specified index. |
byte[] |
text(int pre,
boolean text)
Returns a text (text, comment, pi) or attribute value. |
int |
textLen(int pre,
boolean text)
Returns a text (text, comment, pi) length. |
double |
textNum(int pre,
boolean text)
Returns a text (text, comment, pi) as double value. |
Methods inherited from class org.basex.data.Data |
---|
atom, attr, attSize, buffer, close, delete, doc, doc, elem, id, ids, info, insert, insert, insertAttr, kind, name, name, nrIDs, ns, nsFlag, parent, pre, rename, replace, size, size, text, toString, toString, uri |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DiskData(String db, Prop pr) throws IOException
db
- name of databasepr
- database properties
IOException
- IO Exceptionpublic DiskData(MetaData md, Names nm, Names at, PathSummary ps, Namespaces n) throws IOException
md
- meta datanm
- tagsat
- attributesps
- path summaryn
- namespaces
IOException
- IO ExceptionMethod Detail |
---|
public void init() throws IOException
Data
init
in class Data
IOException
- I/O exceptionpublic void flush()
Data
flush
in class Data
public void cls() throws IOException
Data
IOException
- I/O exceptionpublic void closeIndex(Data.Type type) throws IOException
Data
closeIndex
in class Data
type
- index to be closed
IOException
- I/O exceptionpublic void setIndex(Data.Type type, Index index)
Data
setIndex
in class Data
type
- index to be openedindex
- index instancepublic byte[] text(int pre, boolean text)
Data
text
in class Data
pre
- pre valuetext
- text/attribute flag
public double textNum(int pre, boolean text)
Data
textNum
in class Data
pre
- pre valuetext
- text/attribute flag
public int textLen(int pre, boolean text)
Data
textLen
in class Data
pre
- pre valuetext
- text/attribute flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |