-
Notifications
You must be signed in to change notification settings - Fork 489
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
Add base argument class for conditionally reading objects. #989
Add base argument class for conditionally reading objects. #989
Conversation
5f4a9dd
to
756da23
Compare
public class StatObjectArgs extends ObjectConditionalReadArgs { | ||
protected StatObjectArgs() {} | ||
|
||
public StatObjectArgs(ObjectConditionalReadArgs args) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the name suggest StatObjectArgs
is an builder type then why is the constructor used. IMO it should be renamed to StatObject
similar to ComposeObject
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
`GetObject`, `HeadObject` and `CopyObject` S3 API support conditions on reading objects. This patch introduces common base class `ObjectConditionalReadArgs` for `GetObjectArgs`, `StatObjectArgs`, `CopySource` and `ComposeSource` to avoid code duplication.
756da23
to
6f7c7e6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
GetObject
,HeadObject
andCopyObject
S3 API support conditionson reading objects. This patch introduces common base class
ObjectConditionalReadArgs
forGetObjectArgs
,StatObjectArgs
,CopySource
andComposeSource
to avoid code duplication.