Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support of copying remote directory without specifying whether … #13666

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,21 @@ public IndexInput openInput(String name, IOContext context) throws IOException {
}
}

/**
* Copies a file from the source directory to a remote based on multi-stream upload support.
* If vendor plugin supports uploading multiple parts in parallel, <code>BlobContainer#writeBlobByStreams</code>
* will be used, else, the legacy {@link RemoteSegmentStoreDirectory#copyFrom(Directory, String, String, IOContext)}
* will be called.
*
* @param from The directory for the file to be uploaded
* @param src File to be uploaded
* @param context IOContext to be used to open IndexInput of file during remote upload
* @param listener Listener to handle upload callback events
*/
public void copyFrom(Directory from, String src, IOContext context, ActionListener<Void> listener) {
copyFrom(from, src, context, listener, false);
}

/**
* Copies a file from the source directory to a remote based on multi-stream upload support.
* If vendor plugin supports uploading multiple parts in parallel, <code>BlobContainer#writeBlobByStreams</code>
Expand Down
Loading