Package one.microstream.afs.sql
Interface SqlConnector
- All Known Implementing Classes:
SqlConnector.Default
public interface SqlConnector
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SqlConnector.Default
-
Method Summary
Modifier and Type Method Description static SqlConnector
Caching(SqlProvider provider)
Creates a newSqlConnector
which uses caching.long
copyFile(SqlPath sourceFile, SqlPath targetFile, long offset, long length)
boolean
createDirectory(SqlPath directory)
boolean
deleteFile(SqlPath file)
boolean
directoryExists(SqlPath directory)
boolean
fileExists(SqlPath file)
long
fileSize(SqlPath file)
void
moveFile(SqlPath sourceFile, SqlPath targetFile)
static SqlConnector
New(SqlProvider provider)
Creates a newSqlConnector
which doesn't use caching.ByteBuffer
readData(SqlPath file, long offset, long length)
long
readData(SqlPath file, ByteBuffer targetBuffer, long offset, long length)
void
truncateFile(SqlPath file, long newLength)
void
visitDirectories(SqlPath directory, SqlPathVisitor visitor)
void
visitFiles(SqlPath directory, SqlPathVisitor visitor)
long
writeData(SqlPath file, Iterable<? extends ByteBuffer> sourceBuffers)
-
Method Details
-
fileSize
-
fileExists
-
directoryExists
-
visitDirectories
-
visitFiles
-
createDirectory
-
deleteFile
-
readData
-
readData
-
writeData
-
moveFile
-
copyFile
-
truncateFile
-
New
Creates a newSqlConnector
which doesn't use caching.- See Also:
Caching(SqlProvider)
-
Caching
Creates a newSqlConnector
which uses caching.- See Also:
New(SqlProvider)
-