|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.fuse.DeepFuse
org.basex.fuse.DeepFS
public final class DeepFS
DeepFS: The XQuery Filesystem. Database-side implementation of DeepFS.
| Field Summary | |
|---|---|
int |
backingstoreID
Index backing store. |
int |
contentID
Index References. |
Data |
data
Data reference. |
int |
deepfsID
Index References. |
int |
dirID
Index References. |
int |
fileID
Index References. |
int |
modeID
Index References. |
int |
mountpointID
Index mount point. |
int |
mtimeID
Index References. |
int |
nameID
Index References. |
int |
sizeID
Index References. |
int |
suffixID
Index References. |
int |
unknownID
Index References. |
| Fields inherited from interface org.basex.data.DataText |
|---|
ATT, ATT1, ATT2, BACKINGSTORE, COM1, COM2, COMM, CONTENT, COUNT, DATAATV, DATAFTX, DATAINFO, DATATBL, DATATMP, DATATXT, DBATTS, DBATVIDX, DBBCK, DBCHOP, DBENC, DBENTITY, DBFNAME, DBFSIZE, DBFTCS, DBFTDC, DBFTST, DBFTXIDX, DBFZIDX, DBHGHT, DBLID, DBMNT, DBNDOCS, DBNS, DBPATH, DBPTHIDX, DBSIZE, DBSTR, DBTAGS, DBTIME, DBTXTIDX, DBUTD, DEEPFS, DIR, DOC, E_AMP, E_CR, E_GT, E_LT, E_NL, E_QU, E_TAB, ELEM1, ELEM2, ELEM3, ELEM4, FILE, IDBSTR, ISTORAGE, KIND, MODE, MOUNTPOINT, MTIME, NAME, NOBACKING, NODE, NOTMOUNTED, OFFSET, PATH, PI, PI1, PI2, RESULT, RESULTS, S_MTIME, S_NAME, S_SIZE, S_SUFFIX, SIZE, STORAGE, SUFFIX, TABLEATS, TABLEDIST, TABLEKIND, TABLEKINDS, TABLENS, TABLEPRE, TABLEPREF, TABLESIZE, TABLEURI, TEXT, TEXT_CONTENT, UNKNOWN, XML_CONTENT |
| Constructor Summary | |
|---|---|
DeepFS(Context ctx,
java.lang.String name)
Constructor for DeepShell and java only test cases (no mount). |
|
DeepFS(Data d)
Constructor. |
|
| Method Summary | |
|---|---|
int |
access(java.lang.String path,
int mode)
Checks file access permissions. |
int |
bmap(java.lang.String path,
long blocksize,
long idx)
Maps block index within file to block index within device. |
int |
chmod(java.lang.String path,
int mode)
Changes the permission bits of a file. |
int |
chown(java.lang.String path,
int uid,
int gid)
Changes the owner and group of a file. |
void |
close()
Closes the fuse instance. |
int |
create(java.lang.String path,
int mode)
Creates a new regular file. |
void |
delete(int pre)
Deletes a non-empty directory. |
int |
destroy()
Cleans up filesystem. |
int |
fgetattr(java.lang.String path)
Gets attributes from an open file. |
int |
flush(java.lang.String path)
Possibly flushes cached data. |
int |
fsync(java.lang.String path)
Synchronizes file contents. |
int |
fsyncdir(java.lang.String path)
Synchronizes directory contents. |
int |
ftruncate(java.lang.String path,
long off)
Changes the size of an open file. |
int |
getattr(java.lang.String path)
Resolves path and returns id. id serves as index into stat array in native fuse implementation. |
int |
getxattr(java.lang.String path)
Gets extended attributes. |
boolean |
isDir(int pre)
Checks if the specified node is a directory. |
boolean |
isFile(int pre)
Checks if the specified node is a file. |
void |
launch(int pre)
Opens the file which is defined by the specified pre value. |
int |
link(java.lang.String name1,
java.lang.String name2)
Creates a hard link to a file. |
int |
listxattr(java.lang.String path)
Lists extended attributes. |
int |
lock(java.lang.String path,
int cmd)
Performs POSIX file locking operation. |
int |
mkdir(java.lang.String path,
int mode)
Creates a new directory. |
int |
mknod(java.lang.String path,
int mode,
int dev)
Creates a file node. |
byte[] |
name(int pre)
Returns the name of a file. |
int |
nativeMount(java.lang.String mp,
java.lang.String bs)
Mount database as FUSE. |
void |
nativeShutDown()
Tell DeepFS that the database will shutdown. |
int |
nativeUnlink(java.lang.String pathname)
Unlink file in backing store. |
int |
open(java.lang.String path)
File open operation. |
int |
opendir(java.lang.String path)
Opens directory. |
byte[] |
path(int pre,
boolean backing)
Returns the absolute file path. |
byte[] |
read(java.lang.String path,
int length,
int offset)
Reads data from an open file. |
java.lang.String |
readdir(java.lang.String path,
int offset)
Reads directory. |
java.lang.String |
readlink(java.lang.String path)
Reads the target of a symbolic link. |
int |
release(java.lang.String path)
Releases an open file. |
int |
releasedir(java.lang.String path)
Releases directory. |
int |
removexattr(java.lang.String path)
Removes extended attributes. |
int |
rename(java.lang.String from,
java.lang.String to)
Renames a file. |
int |
rmdir(java.lang.String path)
Removes a directory file. |
int |
setxattr(java.lang.String path)
Sets extended attributes. |
byte[] |
size(int pre)
Returns the size of a file. |
int |
statfs(java.lang.String path)
Gets file system statistics. |
int |
symlink(java.lang.String from,
java.lang.String to)
Makes symbolic link to a file. |
int |
truncate(java.lang.String path,
long off)
Changes the size of a file. |
int |
unlink(java.lang.String path)
Removes a file. |
int |
utimens(java.lang.String path)
Changes the access and modification times of a file with nanosecond resolution. |
int |
write(java.lang.String path,
int length,
int offset,
byte[] mydata)
Writes data to an open file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Data data
public int deepfsID
public int fileID
public int dirID
public int suffixID
public int mtimeID
public int modeID
public int unknownID
public int mountpointID
public int backingstoreID
public int sizeID
public int nameID
public int contentID
| Constructor Detail |
|---|
public DeepFS(Data d)
d - data reference
public DeepFS(Context ctx,
java.lang.String name)
DeepShell and java only test cases (no mount).
name - name of initially empty database.ctx - database context| Method Detail |
|---|
public int nativeMount(java.lang.String mp,
java.lang.String bs)
mp - path where to mount BaseX.bs - path to backing storage root of this instance.
public int nativeUnlink(java.lang.String pathname)
pathname - to file to delete
public void nativeShutDown()
public void close()
throws java.io.IOException
java.io.IOException - I/O exceptionpublic boolean isFile(int pre)
pre - pre value
public boolean isDir(int pre)
pre - pre value
public 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)
pre - pre valuepublic void delete(int pre)
pre - pre valuepublic int destroy()
DeepFuse
destroy in class DeepFuse
public int mkdir(java.lang.String path,
int mode)
mkdir in class DeepFusepath - to directory to be createdmode - of directory
public int create(java.lang.String path,
int mode)
create in class DeepFusepath - to the file to be createdmode - of regular file
public int getattr(java.lang.String path)
getattr in class DeepFusepath - to be resolved
public int unlink(java.lang.String path)
DeepFuse
unlink in class DeepFusepath - to file to be removed
public int opendir(java.lang.String path)
DeepFuse
opendir in class DeepFusepath - name of the file
public int rmdir(java.lang.String path)
DeepFuse
rmdir in class DeepFusepath - to file to be removed
public java.lang.String readdir(java.lang.String path,
int offset)
DeepFuse
readdir in class DeepFusepath - name of the directory to readoffset - of directory entry requested
public int rename(java.lang.String from,
java.lang.String to)
DeepFuse
rename in class DeepFusefrom - path to file to be renamedto - new name
public int access(java.lang.String path,
int mode)
DeepFuse
access in class DeepFusepath - name of the filemode - permission to check
public int bmap(java.lang.String path,
long blocksize,
long idx)
DeepFuse
bmap in class DeepFusepath - name of the fileblocksize - block sizeidx - block index
public int chmod(java.lang.String path,
int mode)
DeepFuse
chmod in class DeepFusepath - name of the filemode - permissions to be set
public int chown(java.lang.String path,
int uid,
int gid)
DeepFuse
chown in class DeepFusepath - name of the fileuid - ownergid - group
public int fgetattr(java.lang.String path)
DeepFuse
fgetattr in class DeepFusepath - name of the file
public int flush(java.lang.String path)
DeepFuse
flush in class DeepFusepath - name of the file
public int fsync(java.lang.String path)
DeepFuse
fsync in class DeepFusepath - name of the file
public int fsyncdir(java.lang.String path)
DeepFuse
fsyncdir in class DeepFusepath - name of the file
public int ftruncate(java.lang.String path,
long off)
DeepFuse
ftruncate in class DeepFusepath - name of the fileoff - new file size
public int getxattr(java.lang.String path)
DeepFuse
getxattr in class DeepFusepath - name of the file
public int link(java.lang.String name1,
java.lang.String name2)
DeepFuse
link in class DeepFusename1 - link sourcename2 - link target
public int listxattr(java.lang.String path)
DeepFuse
listxattr in class DeepFusepath - name of the file
public int lock(java.lang.String path,
int cmd)
DeepFuse
lock in class DeepFusepath - name of the filecmd - locking command id
public int mknod(java.lang.String path,
int mode,
int dev)
DeepFuse
mknod in class DeepFusepath - name of the file to be created.mode - specifies both the permissions to use and the type of node to
be created.dev - If the file type is S_IFCHR or S_IFBLK then dev specifies the
major and minor numbers of the newly created device special file;
otherwise it is ignored.
public int open(java.lang.String path)
DeepFuse
open in class DeepFusepath - name of the file
public byte[] read(java.lang.String path,
int length,
int offset)
DeepFuse
read in class DeepFusepath - name of the filelength - number of bytes to readoffset - from which to read
public java.lang.String readlink(java.lang.String path)
DeepFuse
readlink in class DeepFusepath - to the link
public int release(java.lang.String path)
DeepFuse
release in class DeepFusepath - name of the file
public int releasedir(java.lang.String path)
DeepFuse
releasedir in class DeepFusepath - name of the file
public int removexattr(java.lang.String path)
DeepFuse
removexattr in class DeepFusepath - name of the file
public int setxattr(java.lang.String path)
DeepFuse
setxattr in class DeepFusepath - name of the file
public int statfs(java.lang.String path)
DeepFuse
statfs in class DeepFusepath - name of the file
public int symlink(java.lang.String from,
java.lang.String to)
DeepFuse
symlink in class DeepFusefrom - link sourceto - link target
public int truncate(java.lang.String path,
long off)
DeepFuse
truncate in class DeepFusepath - name of the fileoff - size to be set
public int utimens(java.lang.String path)
DeepFuse
utimens in class DeepFusepath - name of the file
public int write(java.lang.String path,
int length,
int offset,
byte[] mydata)
DeepFuse
write in class DeepFusepath - name of the filelength - number of bytes to writeoffset - from which to writemydata - buffer from which to write
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||