-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add list part to double check upload part conflict (#102)
fix import Co-authored-by: alantong(佟明达) <[email protected]>
- Loading branch information
Showing
4 changed files
with
118 additions
and
6 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
33 changes: 33 additions & 0 deletions
33
src/main/java/org/apache/hadoop/fs/cosn/CosNPartListing.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,33 @@ | ||
package org.apache.hadoop.fs.cosn; | ||
|
||
import com.qcloud.cos.model.PartSummary; | ||
import org.apache.hadoop.classification.InterfaceAudience; | ||
import org.apache.hadoop.classification.InterfaceStability; | ||
import org.apache.hadoop.fs.NativeFileSystemStore; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* <p> | ||
* Holds information of one upload id listing for part summary | ||
* {@link NativeFileSystemStore}. | ||
* This includes the {@link PartSummary part summary} | ||
* (their names) contained in single MPU. | ||
* </p> | ||
* | ||
* @see NativeFileSystemStore#listParts(String, String) | ||
*/ | ||
|
||
@InterfaceAudience.Private | ||
@InterfaceStability.Unstable | ||
public class CosNPartListing { | ||
private final List<PartSummary> partSummaries; | ||
|
||
public CosNPartListing(List<PartSummary> partSummaries) { | ||
this.partSummaries = partSummaries; | ||
} | ||
|
||
public List<PartSummary> getPartSummaries() { | ||
return this.partSummaries; | ||
} | ||
} |