Class AsyncFile
java.lang.Object
com.orientechnologies.orient.core.storage.fs.AsyncFile
- All Implemented Interfaces:
OClosableItem,OFile
-
Field Summary
Fields inherited from interface com.orientechnologies.orient.core.storage.fs.OFile
HEADER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongallocateSpace(int size) voidclose()voidcreate()voiddelete()booleanexists()longgetName()booleanisOpen()voidopen()voidread(long offset, ByteBuffer buffer, boolean throwOnEof) voidvoidreplaceContentWith(Path newContentFile) voidshrink(long size) voidsynch()voidwrite(long offset, ByteBuffer buffer) write(List<ORawPair<Long, ByteBuffer>> buffers)
-
Constructor Details
-
AsyncFile
-
-
Method Details
-
create
- Specified by:
createin interfaceOFile- Throws:
IOException
-
open
public void open()- Specified by:
openin interfaceOClosableItem- Specified by:
openin interfaceOFile
-
getFileSize
public long getFileSize()- Specified by:
getFileSizein interfaceOFile
-
getName
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceOClosableItem- Specified by:
isOpenin interfaceOFile
-
exists
public boolean exists() -
write
-
write
-
read
- Specified by:
readin interfaceOFile- Throws:
IOException
-
allocateSpace
public long allocateSpace(int size) - Specified by:
allocateSpacein interfaceOFile
-
shrink
- Specified by:
shrinkin interfaceOFile- Throws:
IOException
-
synch
public void synch() -
close
public void close()- Specified by:
closein interfaceOClosableItem- Specified by:
closein interfaceOFile
-
delete
- Specified by:
deletein interfaceOFile- Throws:
IOException
-
renameTo
- Specified by:
renameToin interfaceOFile- Throws:
IOException
-
replaceContentWith
- Specified by:
replaceContentWithin interfaceOFile- Throws:
IOException
-