|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deepfs.fs.DeepFS
public final class DeepFS
DeepFS: The XQuery Filesystem. Database-side implementation of DeepFS.
Field Summary | |
---|---|
static byte[] |
ATIME
Time of last access token. |
int |
atimeID
Index References. |
static byte[] |
BACKINGSTORE
Backing store attribute. |
int |
backingstoreID
Index backing store. |
static byte[] |
CONTENT
Content token. |
int |
contentID
Index References. |
static byte[] |
CTIME
Time of creation token. |
int |
ctimeID
Index References. |
static byte[] |
DEEPFS
DeepFS token. |
int |
deepfsID
Index References. |
static byte[] |
DIR
Directory token. |
int |
dirID
Index References. |
static byte[] |
FILE
File token. |
int |
fileID
Index References. |
static byte[] |
FSML
FSML token. |
int |
fsmlID
Index References. |
static byte[] |
GID
Group ID token. |
int |
gidID
Index References. |
static byte[] |
MODE
File mode attribute. |
int |
modeID
Index References. |
static byte[] |
MOUNTPOINT
Mount point attribute. |
int |
mountpointID
Index mount point. |
static byte[] |
MTIME
Time of last modification token. |
int |
mtimeID
Index References. |
static byte[] |
NAME
Name attribute token. |
int |
nameID
Index References. |
static byte[] |
NLINK
Number of links token. |
int |
nlinkID
Index References. |
static byte[] |
NOTMOUNTED
Negative mount point attribute. |
static byte[] |
OFFSET
Offset attribute. |
static String |
S_ATIME
Time of last access. |
static String |
S_BACKINGSTORE
backingstore path. |
static String |
S_CONTENT
Content tag in fs namespace. |
static String |
S_CTIME
Time of creation. |
static String |
S_DEEPFS
Name of the root node for a file system. |
static String |
S_DIR
Directory tag in fs namespace. |
static String |
S_FILE
File tag in fs namespace. |
static String |
S_FSML
Name of the root node for a fsml document. |
static String |
S_MTIME
Time of last modification. |
static String |
S_NAME
file/dir name. |
static String |
S_SIZE
file/dir size. |
static String |
S_SUFFIX
File suffix. |
static String |
S_TEXT_CONTENT
Text content tag in fs namespace. |
static String |
S_XML_CONTENT
XML content tag in fs namespace. |
static byte[] |
SIZE
Size attribute token. |
int |
sizeID
Index References. |
static byte[] |
SUFFIX
Suffix attribute. |
int |
suffixID
Index References. |
static byte[] |
TEXT_CONTENT
Text content token. |
static byte[] |
UID
User ID token. |
int |
uidID
Index References. |
Fields inherited from interface org.basex.data.DataText |
---|
ATT, ATT1, ATT2, COM1, COM2, COMM, DATAATV, DATAFTX, DATAINFO, DATASWL, DATATBL, DATATMP, DATATXT, DBATTS, DBATVIDX, DBBCK, DBCHOP, DBDEEPFS, DBENC, DBENTITY, DBFNAME, DBFSIZE, DBFTCS, DBFTDC, DBFTST, DBFTXIDX, DBHGHT, DBLID, DBMNT, DBNDOCS, DBNS, DBPATH, DBPERM, DBPTHIDX, DBSCMAX, DBSCMIN, DBSCTYPE, DBSIZE, DBSTR, DBTAGS, DBTIME, DBTXTIDX, DBUTD, DBWCIDX, DOC, DOCDECL, DOCTYPE, E_AMP, E_CR, E_GT, E_LT, E_NL, E_QU, E_TAB, ELEM1, ELEM2, ELEM3, ELEM4, IDBSTR, ISTORAGE, KIND, NODE, PATH, PI, PI1, PI2, RESULT, RESULTS, STORAGE, SYSTEM, TABLEATS, TABLECON, TABLEDIST, TABLEID, TABLEKINDS, TABLEKND, TABLENS, TABLEPRE, TABLEPREF, TABLESIZE, TABLEURI, TEXT |
Constructor Summary | |
---|---|
DeepFS(Context c)
Constructor. |
|
DeepFS(Data d)
Constructor. |
|
DeepFS(String dbname,
String mountpoint)
Constructor for DeepShell and java only test cases (no mount). |
Method Summary | |
---|---|
static Atts |
atts(File f,
boolean root)
Constructs attributes for file and directory tags. |
void |
close()
Closes the fuse instance. |
int |
create(String path,
int mode)
Creates a new regular file. |
Context |
getContext()
Getter for actual context. |
static byte[] |
getSuffix(String name)
Extracts file name suffix. |
boolean |
isDir(int pre)
Checks if this node is a directory. |
boolean |
isFile(int pre)
Checks if this node is a file. |
boolean |
isFSnode(int pre)
Checks if this node is a file, directory, fsml or deepfs node. |
void |
launch(int pre)
Opens the file which is defined by the specified pre value. |
int |
mkdir(String path,
int mode)
Creates a new directory. |
byte[] |
name(int pre)
Returns the name of a file. |
byte[] |
path(int pre,
boolean backing)
Returns the absolute file path. |
byte[][] |
readdir(String path)
Reads directory entries. |
int |
rmdir(String path)
Removes directory. |
byte[] |
size(int pre)
Returns the size of a file. |
DeepStat |
stat(String path)
Resolves filesystem pathname and fill stat information. |
void |
umount()
Called when filesystem is unmounted. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String S_FSML
public static final String S_DEEPFS
public static final String S_FILE
public static final String S_DIR
public static final String S_XML_CONTENT
public static final String S_TEXT_CONTENT
public static final String S_CONTENT
public static final String S_NAME
public static final String S_BACKINGSTORE
public static final String S_SUFFIX
public static final String S_SIZE
public static final String S_ATIME
public static final String S_CTIME
public static final String S_MTIME
public static final byte[] FSML
public static final byte[] DEEPFS
public static final byte[] DIR
public static final byte[] FILE
public static final byte[] CONTENT
public static final byte[] TEXT_CONTENT
public static final byte[] NAME
public static final byte[] SIZE
public static final byte[] MTIME
public static final byte[] SUFFIX
public static final byte[] ATIME
public static final byte[] CTIME
public static final byte[] NLINK
public static final byte[] UID
public static final byte[] GID
public static final byte[] OFFSET
public static final byte[] MODE
public static final byte[] MOUNTPOINT
public static final byte[] BACKINGSTORE
public static final byte[] NOTMOUNTED
public int fsmlID
public int deepfsID
public int fileID
public int dirID
public int modeID
public int mountpointID
public int backingstoreID
public int sizeID
public int nameID
public int suffixID
public int mtimeID
public int ctimeID
public int atimeID
public int nlinkID
public int uidID
public int gidID
public int contentID
Constructor Detail |
---|
public DeepFS(String dbname, String mountpoint)
DeepShell
and java only test cases (no mount).
dbname
- name of (initially empty) databasemountpoint
- of DeepFS databasepublic DeepFS(Data d)
d
- data referencepublic DeepFS(Context c)
c
- existing contextMethod Detail |
---|
public static byte[] getSuffix(String name)
name
- of the file
public static Atts atts(File f, boolean root)
f
- file nameroot
- if true, attributes for a filesystem root node are created
instead of attributes for a simple directory
public boolean isFile(int pre)
pre
- pre value
public boolean isDir(int pre)
pre
- pre value
public boolean isFSnode(int pre)
pre
- pre value
public DeepStat stat(String path)
path
- to file
public byte[][] readdir(String path)
path
- directory to be listed
public void umount()
public Context getContext()
public int rmdir(String path)
path
- to directory to be removed
public void close() throws IOException
IOException
- I/O exceptionpublic byte[] path(int pre, boolean backing)
pre
- pre valuebacking
- whether to return backing path or mountpath
public byte[] name(int pre)
pre
- pre value
public byte[] size(int pre)
pre
- pre value
public void launch(int pre) throws IOException
pre
- pre value
IOException
- thrown if no default application to launch existspublic int mkdir(String path, int mode)
path
- to directory to be createdmode
- of directory
public int create(String path, int mode)
path
- to the file to be createdmode
- of regular file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |