7#include <aws/core/utils/HashingUtils.h>
8#include <aws/core/utils/event/EventStreamHandler.h>
9#include <aws/core/client/AWSError.h>
10#include <aws/s3-crt/S3Crt_EXPORTS.h>
11#include <aws/s3-crt/S3CrtErrors.h>
13#include <aws/s3-crt/model/SelectObjectContentInitialResponse.h>
14#include <aws/s3-crt/model/RecordsEvent.h>
15#include <aws/s3-crt/model/StatsEvent.h>
16#include <aws/s3-crt/model/ProgressEvent.h>
39 typedef std::function<void(
const RecordsEvent&)> RecordsEventCallback;
40 typedef std::function<void(
const StatsEvent&)> StatsEventCallback;
41 typedef std::function<void(
const ProgressEvent&)> ProgressEventCallback;
42 typedef std::function<void()> ContinuationEventCallback;
43 typedef std::function<void()> EndEventCallback;
50 AWS_S3CRT_API
virtual void OnEvent()
override;
78 AWS_S3CRT_API
void HandleEventInMessage();
79 AWS_S3CRT_API
void HandleErrorInMessage();
82 SelectObjectContentInitialResponseCallbackEx m_onInitialResponse;
83 RecordsEventCallback m_onRecordsEvent;
84 StatsEventCallback m_onStatsEvent;
85 ProgressEventCallback m_onProgressEvent;
86 ContinuationEventCallback m_onContinuationEvent;
87 EndEventCallback m_onEndEvent;
88 ErrorCallback m_onError;
91namespace SelectObjectContentEventMapper
void SetInitialResponseCallbackEx(const SelectObjectContentInitialResponseCallbackEx &callback)
void SetProgressEventCallback(const ProgressEventCallback &callback)
void SetOnErrorCallback(const ErrorCallback &callback)
SelectObjectContentInitialResponseCallbackEx & GetInitialResponseCallbackEx()
virtual AWS_S3CRT_API void OnEvent() override
void SetRecordsEventCallback(const RecordsEventCallback &callback)
void SetStatsEventCallback(const StatsEventCallback &callback)
void SetEndEventCallback(const EndEventCallback &callback)
void SetContinuationEventCallback(const ContinuationEventCallback &callback)
AWS_S3CRT_API SelectObjectContentHandler()
AWS_S3CRT_API SelectObjectContentHandler & operator=(const SelectObjectContentHandler &)=default
void SetInitialResponseCallback(const SelectObjectContentInitialResponseCallback &noArgCallback)
AWS_S3CRT_API Aws::String GetNameForSelectObjectContentEventType(SelectObjectContentEventType value)
AWS_S3CRT_API SelectObjectContentEventType GetSelectObjectContentEventTypeForName(const Aws::String &name)
SelectObjectContentEventType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String