Package one.microstream.afs.sql.types
Class SqlIoHandler.Default
java.lang.Object
one.microstream.afs.types.AIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
one.microstream.afs.sql.types.SqlIoHandler.Default
- All Implemented Interfaces:
SqlIoHandler
,AIoHandler
,WriteController
- Enclosing interface:
- SqlIoHandler
public static final class SqlIoHandler.Default extends AIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile> implements SqlIoHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.afs.types.AIoHandler
AIoHandler.Abstract<FS,DS,I extends AItem,F extends AFile,D extends ADirectory,R extends AReadableFile,W extends AWritableFile>
Nested classes/interfaces inherited from interface one.microstream.afs.sql.types.SqlIoHandler
SqlIoHandler.Default
Nested classes/interfaces inherited from interface one.microstream.afs.types.WriteController
WriteController.Disabled, WriteController.Enabled
-
Method Summary
Modifier and Type Method Description SqlConnector
connector()
void
create(ADirectory directory)
protected boolean
specificClose(SqlReadableFile file)
protected long
specificCopyFrom(AReadableFile source, long sourcePosition, long length, SqlWritableFile targetSubject)
protected long
specificCopyFrom(AReadableFile source, long sourcePosition, SqlWritableFile targetSubject)
protected long
specificCopyFrom(AReadableFile source, SqlWritableFile targetSubject)
protected long
specificCopyTo(SqlReadableFile sourceFile, long sourcePosition, long length, AWritableFile targetFile)
protected long
specificCopyTo(SqlReadableFile sourceFile, long sourcePosition, AWritableFile targetFile)
protected long
specificCopyTo(SqlReadableFile sourceFile, AWritableFile targetFile)
protected void
specificCreate(SqlWritableFile file)
protected void
specificCreate(ADirectory directory)
protected boolean
specificDeleteFile(SqlWritableFile file)
protected boolean
specificExists(SqlFileWrapper file)
protected boolean
specificExists(ADirectory directory)
protected void
specificInventorize(ADirectory directory)
protected boolean
specificIsOpen(SqlReadableFile file)
protected XGettingEnum<String>
specificListDirectories(ADirectory parent)
protected XGettingEnum<String>
specificListFiles(ADirectory parent)
protected XGettingEnum<String>
specificListItems(ADirectory parent)
protected void
specificMoveFile(SqlWritableFile sourceFile, AWritableFile targetFile)
protected boolean
specificOpenReading(SqlReadableFile file)
protected boolean
specificOpenWriting(SqlWritableFile file)
protected ByteBuffer
specificReadBytes(SqlReadableFile sourceFile)
protected ByteBuffer
specificReadBytes(SqlReadableFile sourceFile, long position)
protected ByteBuffer
specificReadBytes(SqlReadableFile sourceFile, long position, long length)
protected long
specificReadBytes(SqlReadableFile sourceFile, ByteBuffer targetBuffer)
protected long
specificReadBytes(SqlReadableFile sourceFile, ByteBuffer targetBuffer, long position)
protected long
specificReadBytes(SqlReadableFile sourceFile, ByteBuffer targetBuffer, long position, long length)
protected long
specificReadBytes(SqlReadableFile sourceFile, BufferProvider bufferProvider)
protected long
specificReadBytes(SqlReadableFile sourceFile, BufferProvider bufferProvider, long position)
protected long
specificReadBytes(SqlReadableFile sourceFile, BufferProvider bufferProvider, long position, long length)
protected long
specificSize(SqlFileWrapper file)
protected void
specificTruncateFile(SqlWritableFile file, long newSize)
protected long
specificWriteBytes(SqlWritableFile targetFile, Iterable<? extends ByteBuffer> sourceBuffers)
protected boolean
subjectDirectoryExists(SqlPath directory)
protected boolean
subjectFileExists(SqlPath file)
protected long
subjectFileSize(SqlPath file)
protected SqlPath
toSubjectDirectory(ADirectory directory)
protected SqlPath
toSubjectFile(AFile file)
Methods inherited from class one.microstream.afs.types.AIoHandler.Abstract
castReadableFile, castWritableFile, close, copyFrom, copyFrom, copyFrom, copyGeneric, copyGeneric, copyGeneric, copyTo, copyTo, copyTo, create, createUnhandledTypeException, createUnhandledTypeException, createUnhandledTypeExceptionDirectory, createUnhandledTypeExceptionFile, createUnhandledTypeExceptionItem, createUnhandledTypeExceptionReadableFile, createUnhandledTypeExceptionWritableFile, deleteFile, ensureExists, ensureExists, exists, exists, inventorize, isHandledDirectory, isHandledFile, isHandledItem, isHandledReadableFile, isHandledWritableFile, isOpen, isWritable, listDirectories, listFiles, listItems, moveFile, openReading, openWriting, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, size, truncate, validateHandledDirectory, validateHandledFile, validateHandledReadableFile, validateHandledWritableFile, validateIsWritable, writeBytes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.afs.types.AIoHandler
close, copyFrom, copyFrom, copyFrom, copyTo, copyTo, copyTo, create, deleteFile, ensureExists, ensureExists, exists, exists, inventorize, isHandledDirectory, isHandledFile, isHandledItem, isHandledReadableFile, isHandledWritableFile, isOpen, listDirectories, listFiles, listItems, moveFile, openReading, openWriting, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, size, truncate, validateHandledDirectory, validateHandledFile, validateHandledReadableFile, validateHandledWritableFile, writeBytes
Methods inherited from interface one.microstream.afs.types.WriteController
isWritable, validateIsWritable
-
Method Details
-
connector
- Specified by:
connector
in interfaceSqlIoHandler
-
toSubjectFile
- Specified by:
toSubjectFile
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
toSubjectDirectory
- Specified by:
toSubjectDirectory
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
subjectFileSize
- Specified by:
subjectFileSize
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
subjectFileExists
- Specified by:
subjectFileExists
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
subjectDirectoryExists
- Specified by:
subjectDirectoryExists
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificSize
- Specified by:
specificSize
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificExists
- Specified by:
specificExists
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificExists
- Specified by:
specificExists
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificListItems
- Specified by:
specificListItems
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificListDirectories
- Specified by:
specificListDirectories
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificListFiles
- Specified by:
specificListFiles
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificInventorize
- Specified by:
specificInventorize
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificOpenReading
- Specified by:
specificOpenReading
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificIsOpen
- Specified by:
specificIsOpen
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificClose
- Specified by:
specificClose
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificOpenWriting
- Specified by:
specificOpenWriting
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
create
- Specified by:
create
in interfaceAIoHandler
- Overrides:
create
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificCreate
- Specified by:
specificCreate
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificCreate
- Specified by:
specificCreate
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificDeleteFile
- Specified by:
specificDeleteFile
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytes
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytes
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytes
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytes
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificReadBytes
protected long specificReadBytes(SqlReadableFile sourceFile, ByteBuffer targetBuffer, long position)- Specified by:
specificReadBytes
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificReadBytes
protected long specificReadBytes(SqlReadableFile sourceFile, ByteBuffer targetBuffer, long position, long length)- Specified by:
specificReadBytes
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificReadBytes
- Specified by:
specificReadBytes
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificReadBytes
protected long specificReadBytes(SqlReadableFile sourceFile, BufferProvider bufferProvider, long position)- Specified by:
specificReadBytes
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificReadBytes
protected long specificReadBytes(SqlReadableFile sourceFile, BufferProvider bufferProvider, long position, long length)- Specified by:
specificReadBytes
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificWriteBytes
protected long specificWriteBytes(SqlWritableFile targetFile, Iterable<? extends ByteBuffer> sourceBuffers)- Specified by:
specificWriteBytes
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificMoveFile
- Specified by:
specificMoveFile
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificCopyTo
- Specified by:
specificCopyTo
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificCopyTo
protected long specificCopyTo(SqlReadableFile sourceFile, long sourcePosition, AWritableFile targetFile)- Specified by:
specificCopyTo
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificCopyTo
protected long specificCopyTo(SqlReadableFile sourceFile, long sourcePosition, long length, AWritableFile targetFile)- Specified by:
specificCopyTo
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificCopyFrom
- Specified by:
specificCopyFrom
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificCopyFrom
protected long specificCopyFrom(AReadableFile source, long sourcePosition, SqlWritableFile targetSubject)- Specified by:
specificCopyFrom
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificCopyFrom
protected long specificCopyFrom(AReadableFile source, long sourcePosition, long length, SqlWritableFile targetSubject)- Specified by:
specificCopyFrom
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-
specificTruncateFile
- Specified by:
specificTruncateFile
in classAIoHandler.Abstract<SqlPath,SqlPath,SqlItemWrapper,SqlFileWrapper,ADirectory,SqlReadableFile,SqlWritableFile>
-