-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add file channel support for writes instead of merges
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
- Loading branch information
1 parent
7ae816a
commit 6145fa2
Showing
12 changed files
with
300 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 0 additions & 106 deletions
106
...src/main/java/org/opensearch/common/blobstore/stream/listener/FileCompletionListener.java
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
...c/main/java/org/opensearch/common/blobstore/stream/listener/StreamCompletionListener.java
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
server/src/main/java/org/opensearch/common/blobstore/stream/read/ReadContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.common.blobstore.stream.read; | ||
|
||
import org.opensearch.common.CheckedTriFunction; | ||
import org.opensearch.common.StreamContext; | ||
import org.opensearch.common.io.InputStreamContainer; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* ReadContext is used to encapsulate all data needed by <code>BlobContainer#readStreams</code> | ||
* | ||
* @opensearch.internal | ||
*/ | ||
public class ReadContext extends StreamContext { | ||
private final String blobChecksum; | ||
|
||
public ReadContext( | ||
CheckedTriFunction<Integer, Long, Long, InputStreamContainer, IOException> streamSupplier, | ||
long partSize, | ||
long lastPartSize, | ||
int numberOfParts, | ||
String blobChecksum | ||
) { | ||
super(streamSupplier, partSize, lastPartSize, numberOfParts); | ||
this.blobChecksum = blobChecksum; | ||
} | ||
|
||
public String getBlobChecksum() { | ||
return blobChecksum; | ||
} | ||
} |
Oops, something went wrong.