Package org.apache.flink.core.fs
Interface PathsCopyingFileSystem.CopyRequest
-
- Enclosing interface:
- PathsCopyingFileSystem
public static interface PathsCopyingFileSystem.CopyRequestA pair of source and destination to duplicate a file.At least one of, either source or destination belongs to this
PathsCopyingFileSystem. One of them can point to the local file system. In other words this request can correspond to either: downloading a file from the remote file system, uploading a file to the remote file system or duplicating a file in the remote file system.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description PathgetDestination()The path where to duplicate the source file.longgetSize()The size in bytes of the requested file to copy.PathgetSource()The path of the source file to duplicate.static PathsCopyingFileSystem.CopyRequestof(Path source, Path destination, long size)A factory method for creating a simple pair of source/destination.
-
-
-
Method Detail
-
getSource
Path getSource()
The path of the source file to duplicate.
-
getDestination
Path getDestination()
The path where to duplicate the source file.
-
getSize
long getSize()
The size in bytes of the requested file to copy.
-
of
static PathsCopyingFileSystem.CopyRequest of(Path source, Path destination, long size)
A factory method for creating a simple pair of source/destination.
-
-