org.basex.data
Class MetaData

java.lang.Object
  extended by org.basex.data.MetaData

public final class MetaData
extends java.lang.Object

This class provides meta information on a database.

Author:
Workgroup DBIS, University of Konstanz 2005-09, ISC License, Christian Gruen

Field Summary
 boolean atvindex
          Flag for creating a attribute value index.
 java.lang.String backing
          DeepFS backing path.
 boolean chop
          Flag for whitespace chopping.
 boolean dirty
          Dirty flag.
 java.lang.String encoding
          Encoding of XML document.
 boolean entity
          Flag for entity parsing.
 IO file
          Original filename of XML document.
 long filesize
          Original file size of XML document.
 boolean ftcs
          Flag for full-text case sensitivity.
 boolean ftdc
          Flag for full-text diacritics removal.
 boolean ftfz
          Flag for fuzzy indexing.
 boolean ftst
          Flag for full-text stemming.
 boolean ftxindex
          Flag for creating a full-text index.
 int height
          Maximum document height.
 int lastid
          Last (highest) id assigned to a node.
 java.lang.String mount
          DeepFS mount point.
 java.lang.String name
          Database name.
 int ndocs
          Number of XML documents.
 boolean oldindex
          Flag for out-of-dates indexes.
 boolean pathindex
          Flag for creating a path summary.
 Prop prop
          Properties.
 int size
          Table size.
 long time
          Modification time.
 boolean txtindex
          Flag for creating a text index.
 boolean uptodate
          Flag for removed index structures.
 
Constructor Summary
MetaData(java.lang.String db, DataInput in, Prop pr)
          Constructor, specifying the database name and the input reference.
MetaData(java.lang.String db, Prop pr)
          Constructor, specifying the database name.
 
Method Summary
static boolean found(java.lang.String path, java.lang.String db, Prop pr)
          Checks if the specified file path refers to the specified database.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prop

public final Prop prop
Properties.


name

public java.lang.String name
Database name.


mount

public java.lang.String mount
DeepFS mount point.


backing

public java.lang.String backing
DeepFS backing path.


encoding

public java.lang.String encoding
Encoding of XML document.


file

public IO file
Original filename of XML document.


filesize

public long filesize
Original file size of XML document.


ndocs

public int ndocs
Number of XML documents.


height

public int height
Maximum document height.


time

public long time
Modification time.


chop

public boolean chop
Flag for whitespace chopping.


entity

public boolean entity
Flag for entity parsing.


txtindex

public boolean txtindex
Flag for creating a text index.


atvindex

public boolean atvindex
Flag for creating a attribute value index.


ftxindex

public boolean ftxindex
Flag for creating a full-text index.


pathindex

public boolean pathindex
Flag for creating a path summary.


ftfz

public boolean ftfz
Flag for fuzzy indexing.


ftst

public boolean ftst
Flag for full-text stemming.


ftcs

public boolean ftcs
Flag for full-text case sensitivity.


ftdc

public boolean ftdc
Flag for full-text diacritics removal.


uptodate

public boolean uptodate
Flag for removed index structures.


dirty

public boolean dirty
Dirty flag.


oldindex

public boolean oldindex
Flag for out-of-dates indexes.


size

public int size
Table size.


lastid

public int lastid
Last (highest) id assigned to a node.

Constructor Detail

MetaData

public MetaData(java.lang.String db,
                Prop pr)
Constructor, specifying the database name.

Parameters:
db - database name
pr - database properties

MetaData

public MetaData(java.lang.String db,
                DataInput in,
                Prop pr)
         throws java.io.IOException
Constructor, specifying the database name and the input reference.

Parameters:
db - database name
in - input stream
pr - database properties
Throws:
java.io.IOException - I/O exception
Method Detail

found

public static boolean found(java.lang.String path,
                            java.lang.String db,
                            Prop pr)
Checks if the specified file path refers to the specified database.

Parameters:
path - file path
db - database name
pr - database properties
Returns:
result of check