Comments (3)
note: perhaps it's actually/also the implementation that's wrong, and it should return a Future<Result>
rather than a Future<Void>
? It for sure it's not easy to get the results from the ResponseHandler
from aws-sdk-java-v2.
CompletableFuture<Void>
is correct, it's not a bug.
SelectObjectContent is an event stream operation, so you need to use the SelectObjectContentResponseHandler to handle the response stream.
I see we don't have a S3 SelectObjectContent example in our Developer Guide, I'll work with our Docs Team and add one. In the meantime, take a look at the code in our Integration Tests and see if it's helpful -
https://github.com/aws/aws-sdk-java-v2/blob/master/services/s3/src/it/java/software/amazon/awssdk/services/SelectObjectContentIntegrationTest.java#L51
from aws-sdk-java-v2.
I see, I would have expected the returned value to hold some sort of API for streaming the response -- sort of like the V1 sync client does.
The examples do help, though it's a bit dishearting to see that the exposed API is so low level: Records message: Can contain a single record, partial records, or multiple records. Depending on the size of the result, a response can contain one or more of these messages.
getting a stream of records out of the stream of messages is something I would have expected the SDK to do, not something to be done on the application level.
Documentation with an example that shows getting a stream of messages in CSV and JSON output would be very handy, since that's the intended use.
from aws-sdk-java-v2.
Related Issues (20)
- S3 multipart upload unable to recover from server-side failures
- Make the S3Client GetObject API with `ChecksumMode.ENABLED` flag interpret the checksum field in the GetObjectResponse correctly HOT 2
- Validate S3 GetObject before reading -1 from the underlying input stream
- Allow setting platform specific classifier for aws-crt-client HOT 3
- Getting UnknownHostException with S3AsyncClient HOT 1
- Bedrock timeout in 2m even after setting apiCallTimeout and apiCallAttemptTimeout to 5m/10m HOT 4
- Profile File custom location not working HOT 2
- EC2 / modifySecurityGroupRules -> The request must contain the parameter groupId HOT 4
- XMLStreamException should be configured as a retryable exception HOT 4
- SignerUtils#moveContentLength Opens a Stream Unnecessarily HOT 2
- java.lang.NoSuchFieldError: AWS_PARTITIONS_FILE HOT 1
- NoSuchElementException error with DynamoDBEnhancedAsyncClient HOT 1
- Enhanced client bug when dealing with kotlin nullable booleans whose names start with "is"
- Multipart upload failure from crtBuilder() with S3 like Storage ex S3 Cohesity HOT 4
- Apache dependency convergence issues HOT 1
- [ERRORS] Issue with AWS SDK for java when adding a new feature flag to existing configuration Profile(short issue description) HOT 10
- Support HEAD requests for S3Presigner HOT 2
- SDK Ignores 'endpoint_url' property of AWS config profiles HOT 2
- Support construction of Document from java POJOs
- Dax Client requests hanging HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-java-v2.