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
-
Method Summary
Modifier and Type Method Description boolean
close()
long
copyFrom(AReadableFile source)
long
copyFrom(AReadableFile source, long sourcePosition)
long
copyFrom(AReadableFile source, long sourcePosition, long length)
long
copyTo(AWritableFile target)
long
copyTo(AWritableFile target, long sourcePosition)
long
copyTo(AWritableFile target, long sourcePosition, long length)
long
copyTo(StorageFile target)
long
copyTo(StorageFile target, long sourcePosition)
long
copyTo(StorageFile target, long sourcePosition, long length)
boolean
delete()
protected AReadableFile
ensureReadable()
protected AWritableFile
ensureWritable()
boolean
exists()
AFile
file()
protected boolean
internalOpenReading()
protected boolean
internalOpenWriting()
boolean
isOpen()
void
moveTo(AWritableFile target)
long
readBytes(ByteBuffer targetBuffer)
long
readBytes(ByteBuffer targetBuffer, long position)
long
readBytes(ByteBuffer targetBuffer, long position, long length)
long
readBytes(BufferProvider bufferProvider)
long
readBytes(BufferProvider bufferProvider, long position)
long
readBytes(BufferProvider bufferProvider, long position, long length)
long
size()
String
toString()
void
truncate(long newLength)
long
writeBytes(Iterable<? extends ByteBuffer> buffers)
-
Constructor Details
-
Method Details
-
file
- Specified by:
file
in interfaceStorageFile
-
size
public final long size()- Specified by:
size
in interfaceStorageFile
-
exists
public final boolean exists()- Specified by:
exists
in interfaceStorageFile
-
readBytes
- Specified by:
readBytes
in interfaceStorageFile
-
readBytes
- Specified by:
readBytes
in interfaceStorageFile
-
readBytes
- Specified by:
readBytes
in interfaceStorageFile
-
readBytes
- Specified by:
readBytes
in interfaceStorageFile
-
readBytes
- Specified by:
readBytes
in interfaceStorageFile
-
readBytes
- Specified by:
readBytes
in interfaceStorageFile
-
writeBytes
- Specified by:
writeBytes
in interfaceStorageFile
-
copyTo
- Specified by:
copyTo
in interfaceStorageFile
-
copyTo
- Specified by:
copyTo
in interfaceStorageFile
-
copyTo
- Specified by:
copyTo
in interfaceStorageFile
-
copyTo
- Specified by:
copyTo
in interfaceStorageFile
-
copyTo
- Specified by:
copyTo
in interfaceStorageFile
-
copyTo
- Specified by:
copyTo
in interfaceStorageFile
-
copyFrom
- Specified by:
copyFrom
in interfaceStorageFile
-
copyFrom
- Specified by:
copyFrom
in interfaceStorageFile
-
copyFrom
- Specified by:
copyFrom
in interfaceStorageFile
-
truncate
public final void truncate(long newLength) -
delete
public final boolean delete()- Specified by:
delete
in interfaceStorageFile
-
moveTo
- Specified by:
moveTo
in interfaceStorageFile
-
ensureReadable
-
ensureWritable
-
isOpen
public boolean isOpen() -
close
public boolean close() -
internalOpenWriting
protected boolean internalOpenWriting() -
internalOpenReading
protected boolean internalOpenReading() -
toString
-