Class BufferWriteAsyncResponseTransformer<ResponseT>
java.lang.Object
io.trino.plugin.exchange.filesystem.s3.BufferWriteAsyncResponseTransformer<ResponseT>
- Type Parameters:
ResponseT- Response POJO type.
- All Implemented Interfaces:
software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT,ResponseT>
public final class BufferWriteAsyncResponseTransformer<ResponseT>
extends Object
implements software.amazon.awssdk.core.async.AsyncResponseTransformer<ResponseT,ResponseT>
An implementation of
AsyncResponseTransformer that writes data to the specified range of the given buffer.
This class mimics the implementation of ByteArrayAsyncResponseTransformer but avoids memory copying.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.async.AsyncResponseTransformer
software.amazon.awssdk.core.async.AsyncResponseTransformer.SplitResult<ResponseT,ResultT> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexceptionOccurred(Throwable throwable) voidonResponse(ResponseT response) voidonStream(software.amazon.awssdk.core.async.SdkPublisher<ByteBuffer> publisher) prepare()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.async.AsyncResponseTransformer
split, split
-
Constructor Details
-
BufferWriteAsyncResponseTransformer
public BufferWriteAsyncResponseTransformer(byte[] buffer, int offset)
-
-
Method Details