Package one.microstream.storage.types
Class StorageFile.Abstract
- java.lang.Object
-
- one.microstream.storage.types.StorageFile.Abstract
-
- All Implemented Interfaces:
StorageFile
- Direct Known Subclasses:
StorageChannelFile.Abstract,StorageLiveFile.Abstract,StorageLockFile.Default
- Enclosing interface:
- StorageFile
public abstract static class StorageFile.Abstract extends Object implements StorageFile
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFile
StorageFile.Abstract
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstract(one.microstream.afs.types.AFile file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclose()longcopyFrom(one.microstream.afs.types.AReadableFile source)longcopyFrom(one.microstream.afs.types.AReadableFile source, long sourcePosition)longcopyFrom(one.microstream.afs.types.AReadableFile source, long sourcePosition, long length)longcopyTo(one.microstream.afs.types.AWritableFile target)longcopyTo(one.microstream.afs.types.AWritableFile target, long sourcePosition)longcopyTo(one.microstream.afs.types.AWritableFile target, long sourcePosition, long length)longcopyTo(StorageFile target)longcopyTo(StorageFile target, long sourcePosition)longcopyTo(StorageFile target, long sourcePosition, long length)booleandelete()protected one.microstream.afs.types.AReadableFileensureReadable()protected one.microstream.afs.types.AWritableFileensureWritable()booleanexists()one.microstream.afs.types.AFilefile()protected booleaninternalOpenReading()protected booleaninternalOpenWriting()booleanisOpen()voidmoveTo(one.microstream.afs.types.AWritableFile target)longreadBytes(ByteBuffer targetBuffer)longreadBytes(ByteBuffer targetBuffer, long position)longreadBytes(ByteBuffer targetBuffer, long position, long length)longreadBytes(one.microstream.io.BufferProvider bufferProvider)longreadBytes(one.microstream.io.BufferProvider bufferProvider, long position)longreadBytes(one.microstream.io.BufferProvider bufferProvider, long position, long length)longsize()StringtoString()voidtruncate(long newLength)longwriteBytes(Iterable<? extends ByteBuffer> buffers)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface one.microstream.storage.types.StorageFile
identifier
-
-
-
-
Method Detail
-
file
public one.microstream.afs.types.AFile file()
- Specified by:
filein interfaceStorageFile
-
size
public final long size()
- Specified by:
sizein interfaceStorageFile
-
exists
public final boolean exists()
- Specified by:
existsin interfaceStorageFile
-
readBytes
public final long readBytes(ByteBuffer targetBuffer)
- Specified by:
readBytesin interfaceStorageFile
-
readBytes
public final long readBytes(ByteBuffer targetBuffer, long position)
- Specified by:
readBytesin interfaceStorageFile
-
readBytes
public final long readBytes(ByteBuffer targetBuffer, long position, long length)
- Specified by:
readBytesin interfaceStorageFile
-
readBytes
public final long readBytes(one.microstream.io.BufferProvider bufferProvider)
- Specified by:
readBytesin interfaceStorageFile
-
readBytes
public final long readBytes(one.microstream.io.BufferProvider bufferProvider, long position)- Specified by:
readBytesin interfaceStorageFile
-
readBytes
public final long readBytes(one.microstream.io.BufferProvider bufferProvider, long position, long length)- Specified by:
readBytesin interfaceStorageFile
-
writeBytes
public final long writeBytes(Iterable<? extends ByteBuffer> buffers)
- Specified by:
writeBytesin interfaceStorageFile
-
copyTo
public final long copyTo(StorageFile target)
- Specified by:
copyToin interfaceStorageFile
-
copyTo
public final long copyTo(StorageFile target, long sourcePosition)
- Specified by:
copyToin interfaceStorageFile
-
copyTo
public final long copyTo(StorageFile target, long sourcePosition, long length)
- Specified by:
copyToin interfaceStorageFile
-
copyTo
public final long copyTo(one.microstream.afs.types.AWritableFile target)
- Specified by:
copyToin interfaceStorageFile
-
copyTo
public final long copyTo(one.microstream.afs.types.AWritableFile target, long sourcePosition)- Specified by:
copyToin interfaceStorageFile
-
copyTo
public final long copyTo(one.microstream.afs.types.AWritableFile target, long sourcePosition, long length)- Specified by:
copyToin interfaceStorageFile
-
copyFrom
public final long copyFrom(one.microstream.afs.types.AReadableFile source)
- Specified by:
copyFromin interfaceStorageFile
-
copyFrom
public final long copyFrom(one.microstream.afs.types.AReadableFile source, long sourcePosition)- Specified by:
copyFromin interfaceStorageFile
-
copyFrom
public final long copyFrom(one.microstream.afs.types.AReadableFile source, long sourcePosition, long length)- Specified by:
copyFromin interfaceStorageFile
-
truncate
public final void truncate(long newLength)
-
delete
public final boolean delete()
- Specified by:
deletein interfaceStorageFile
-
moveTo
public final void moveTo(one.microstream.afs.types.AWritableFile target)
- Specified by:
moveToin interfaceStorageFile
-
ensureReadable
protected one.microstream.afs.types.AReadableFile ensureReadable()
-
ensureWritable
protected one.microstream.afs.types.AWritableFile ensureWritable()
-
isOpen
public boolean isOpen()
-
close
public boolean close()
-
internalOpenWriting
protected boolean internalOpenWriting()
-
internalOpenReading
protected boolean internalOpenReading()
-
-