Uses of Class
io.trino.filesystem.Location
Packages that use Location
Package
Description
-
Uses of Location in io.trino.filesystem
Methods in io.trino.filesystem that return LocationModifier and TypeMethodDescriptionLocation.appendPath(String newPathElement) Creates a new location by appending the given path element to the current path.Location.appendSuffix(String suffix) Creates a new location by appending the given suffix to the current path.FileEntry.location()Returns the value of thelocationrecord component.TrinoInputFile.location()TrinoOutputFile.location()static LocationLocation.parentDirectory()Creates a new location with all characters removed after the last slash in the path.Returns a new location with the same parent directory as the current location, but with the filename corresponding to the specified name.Methods in io.trino.filesystem that return types with arguments of type LocationModifier and TypeMethodDescriptionTrinoFileSystem.createTemporaryDirectory(Location targetPath, String temporaryPrefix, String relativePrefix) Creates a temporary directory for the target path.TrinoFileSystem.listDirectories(Location location) Lists all directories that are direct descendants of the specified directory.Methods in io.trino.filesystem with parameters of type LocationModifier and TypeMethodDescriptionstatic booleanLocations.areDirectoryLocationsEquivalent(Location leftLocation, Location rightLocation) Verifies whether the two provided directory location parameters point to the same actual location.voidTrinoFileSystem.createDirectory(Location location) Creates the specified directory and any parent directories that do not exist.TrinoFileSystem.createTemporaryDirectory(Location targetPath, String temporaryPrefix, String relativePrefix) Creates a temporary directory for the target path.voidTrinoFileSystem.deleteDirectory(Location location) Deletes all files and directories within the specified directory recursively, and deletes the directory itself.voidTrinoFileSystem.deleteFile(Location location) Deletes the specified file.TrinoFileSystem.directoryExists(Location location) Checks if a directory exists at the specified location.TrinoFileSystem.listDirectories(Location location) Lists all directories that are direct descendants of the specified directory.Lists all files within the specified directory recursively.TrinoFileSystem.newInputFile(Location location) Creates a TrinoInputFile which can be used to read the file data.TrinoFileSystem.newInputFile(Location location, long length) Creates a TrinoInputFile with a predeclared length which can be used to read the file data.TrinoFileSystem.newOutputFile(Location location) Creates a TrinoOutputFile which can be used to create or overwrite the file.voidTrinoFileSystem.renameDirectory(Location source, Location target) Renames source to target.voidTrinoFileSystem.renameFile(Location source, Location target) Rename source to target without overwriting target.Method parameters in io.trino.filesystem with type arguments of type LocationModifier and TypeMethodDescriptiondefault voidTrinoFileSystem.deleteFiles(Collection<Location> locations) Delete specified files.Constructors in io.trino.filesystem with parameters of type LocationModifierConstructorDescriptionFileEntry(Location location, long length, Instant lastModified, Optional<List<FileEntry.Block>> blocks) FileEntry(Location location, long length, Instant lastModified, Optional<List<FileEntry.Block>> blocks, Set<String> tags) Creates an instance of aFileEntryrecord class. -
Uses of Location in io.trino.filesystem.cache
Methods in io.trino.filesystem.cache that return LocationMethods in io.trino.filesystem.cache that return types with arguments of type LocationModifier and TypeMethodDescriptionCacheFileSystem.createTemporaryDirectory(Location targetPath, String temporaryPrefix, String relativePrefix) CacheFileSystem.listDirectories(Location location) Methods in io.trino.filesystem.cache with parameters of type LocationModifier and TypeMethodDescriptionvoidCacheFileSystem.createDirectory(Location location) CacheFileSystem.createTemporaryDirectory(Location targetPath, String temporaryPrefix, String relativePrefix) voidCacheFileSystem.deleteDirectory(Location location) voidCacheFileSystem.deleteFile(Location location) CacheFileSystem.directoryExists(Location location) voidGive a hint to the cache that the cache entry for location should be expired.CacheFileSystem.listDirectories(Location location) CacheFileSystem.newInputFile(Location location) CacheFileSystem.newInputFile(Location location, long length) CacheFileSystem.newOutputFile(Location location) voidCacheFileSystem.renameDirectory(Location source, Location target) voidCacheFileSystem.renameFile(Location source, Location target) Method parameters in io.trino.filesystem.cache with type arguments of type LocationModifier and TypeMethodDescriptionvoidCacheFileSystem.deleteFiles(Collection<Location> locations) -
Uses of Location in io.trino.filesystem.local
Methods in io.trino.filesystem.local that return LocationMethods in io.trino.filesystem.local that return types with arguments of type LocationModifier and TypeMethodDescriptionLocalFileSystem.createTemporaryDirectory(Location targetPath, String temporaryPrefix, String relativePrefix) LocalFileSystem.listDirectories(Location location) Methods in io.trino.filesystem.local with parameters of type LocationModifier and TypeMethodDescriptionvoidLocalFileSystem.createDirectory(Location location) LocalFileSystem.createTemporaryDirectory(Location targetPath, String temporaryPrefix, String relativePrefix) voidLocalFileSystem.deleteDirectory(Location location) voidLocalFileSystem.deleteFile(Location location) LocalFileSystem.directoryExists(Location location) LocalFileSystem.listDirectories(Location location) LocalFileSystem.newInputFile(Location location) LocalFileSystem.newInputFile(Location location, long length) LocalFileSystem.newOutputFile(Location location) voidLocalFileSystem.renameDirectory(Location source, Location target) voidLocalFileSystem.renameFile(Location source, Location target) Constructors in io.trino.filesystem.local with parameters of type LocationModifierConstructorDescriptionLocalInputFile(Location location, Path path) LocalInputFile(Location location, Path path, long length) LocalOutputFile(Location location, Path path) -
Uses of Location in io.trino.filesystem.memory
Methods in io.trino.filesystem.memory that return LocationMethods in io.trino.filesystem.memory that return types with arguments of type LocationModifier and TypeMethodDescriptionMemoryFileSystem.createTemporaryDirectory(Location targetPath, String temporaryPrefix, String relativePrefix) MemoryFileSystem.listDirectories(Location location) Methods in io.trino.filesystem.memory with parameters of type LocationModifier and TypeMethodDescriptionvoidMemoryFileSystem.createDirectory(Location location) MemoryFileSystem.createTemporaryDirectory(Location targetPath, String temporaryPrefix, String relativePrefix) voidMemoryFileSystem.deleteDirectory(Location location) voidMemoryFileSystem.deleteFile(Location location) MemoryFileSystem.directoryExists(Location location) MemoryFileSystem.listDirectories(Location location) MemoryFileSystem.newInputFile(Location location) MemoryFileSystem.newInputFile(Location location, long length) MemoryFileSystem.newOutputFile(Location location) voidMemoryFileSystem.renameDirectory(Location source, Location target) voidMemoryFileSystem.renameFile(Location source, Location target) Constructors in io.trino.filesystem.memory with parameters of type LocationModifierConstructorDescriptionMemoryInputFile(Location location, io.airlift.slice.Slice data) MemoryInputFile(Location location, Supplier<MemoryBlob> dataSupplier, OptionalLong length) MemoryOutputStream(Location location, MemoryOutputStream.OnStreamClose onStreamClose) -
Uses of Location in io.trino.filesystem.tracing
Methods in io.trino.filesystem.tracing with parameters of type Location