Uses of Class
io.trino.filesystem.Location
Packages that use Location
-
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 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.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.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 Location -
Uses of Location in io.trino.filesystem.local
Methods in io.trino.filesystem.local that return LocationMethods in io.trino.filesystem.local with parameters of type LocationModifier and TypeMethodDescriptionvoidLocalFileSystem.createDirectory(Location location) voidLocalFileSystem.deleteDirectory(Location location) voidLocalFileSystem.deleteFile(Location location) LocalFileSystem.directoryExists(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 with parameters of type LocationModifier and TypeMethodDescriptionvoidMemoryFileSystem.createDirectory(Location location) voidMemoryFileSystem.deleteDirectory(Location location) voidMemoryFileSystem.deleteFile(Location location) MemoryFileSystem.directoryExists(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)