|
||||||||||
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.MemData
public final class MemData
This class stores and organizes the database table and the index structures
for textual content in a compressed memory 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 | |
---|---|
MemData(Data data)
Constructor, adopting meta data from the specified database. |
|
MemData(Names tag,
Names att,
Namespaces n,
PathSummary s,
Prop pr)
Constructor. |
|
MemData(Prop pr)
Constructor, creating a new, empty database. |
Method Summary | |
---|---|
void |
closeIndex(Data.Type index)
Closes the specified index. |
void |
cls()
Internal method to close the database. |
void |
flush()
Flushes the table data. |
void |
setIndex(Data.Type type,
Index ind)
Assigns the specified index. |
byte[] |
text(int pre,
boolean text)
Returns a text (text, comment, pi) or attribute value. |
void |
text(int pre,
byte[] val,
boolean txt)
Updates the specified text 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, init, 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 MemData(Names tag, Names att, Namespaces n, PathSummary s, Prop pr)
tag
- tag indexatt
- attribute name indexn
- namespacess
- path summarypr
- database propertiespublic MemData(Data data)
data
- data referencepublic MemData(Prop pr)
pr
- property referenceMethod Detail |
---|
public void flush()
Data
flush
in class Data
public void cls()
Data
public void closeIndex(Data.Type index)
Data
closeIndex
in class Data
index
- index to be closedpublic void setIndex(Data.Type type, Index ind)
Data
setIndex
in class Data
type
- index to be openedind
- 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
public void text(int pre, byte[] val, boolean txt)
Data
pre
- pre valueval
- contenttxt
- text (text, comment or pi) or attribute flag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |