Package io.trino.filesystem.gcs
Class GcsFileSystem
java.lang.Object
io.trino.filesystem.gcs.GcsFileSystem
- All Implemented Interfaces:
TrinoFileSystem
-
Constructor Summary
ConstructorsConstructorDescriptionGcsFileSystem(com.google.common.util.concurrent.ListeningExecutorService executorService, com.google.cloud.storage.Storage storage, int readBlockSizeBytes, long writeBlockSizeBytes, int pageSize, int batchSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDirectory(Location location) createTemporaryDirectory(Location targetPath, String temporaryPrefix, String relativePrefix) voiddeleteDirectory(Location location) voiddeleteFile(Location location) voiddeleteFiles(Collection<Location> locations) directoryExists(Location location) listDirectories(Location location) newInputFile(Location location) newInputFile(Location location, long length) newOutputFile(Location location) voidrenameDirectory(Location source, Location target) voidrenameFile(Location source, Location target)
-
Constructor Details
-
GcsFileSystem
public GcsFileSystem(com.google.common.util.concurrent.ListeningExecutorService executorService, com.google.cloud.storage.Storage storage, int readBlockSizeBytes, long writeBlockSizeBytes, int pageSize, int batchSize)
-
-
Method Details
-
newInputFile
- Specified by:
newInputFilein interfaceTrinoFileSystem
-
newInputFile
- Specified by:
newInputFilein interfaceTrinoFileSystem
-
newOutputFile
- Specified by:
newOutputFilein interfaceTrinoFileSystem
-
deleteFile
- Specified by:
deleteFilein interfaceTrinoFileSystem- Throws:
IOException
-
deleteFiles
- Specified by:
deleteFilesin interfaceTrinoFileSystem- Throws:
IOException
-
deleteDirectory
- Specified by:
deleteDirectoryin interfaceTrinoFileSystem- Throws:
IOException
-
renameFile
- Specified by:
renameFilein interfaceTrinoFileSystem- Throws:
IOException
-
listFiles
- Specified by:
listFilesin interfaceTrinoFileSystem- Throws:
IOException
-
directoryExists
- Specified by:
directoryExistsin interfaceTrinoFileSystem- Throws:
IOException
-
createDirectory
- Specified by:
createDirectoryin interfaceTrinoFileSystem- Throws:
IOException
-
renameDirectory
- Specified by:
renameDirectoryin interfaceTrinoFileSystem- Throws:
IOException
-
listDirectories
- Specified by:
listDirectoriesin interfaceTrinoFileSystem- Throws:
IOException
-
createTemporaryDirectory
public Optional<Location> createTemporaryDirectory(Location targetPath, String temporaryPrefix, String relativePrefix) - Specified by:
createTemporaryDirectoryin interfaceTrinoFileSystem
-