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/S3_EXPORTS.h>
11#include <aws/s3/S3Errors.h>
13#include <aws/s3/model/SelectObjectContentInitialResponse.h>
14#include <aws/s3/model/RecordsEvent.h>
15#include <aws/s3/model/StatsEvent.h>
16#include <aws/s3/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_S3_API
virtual void OnEvent()
override;
78 AWS_S3_API
void HandleEventInMessage();
79 AWS_S3_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 SetRecordsEventCallback(const RecordsEventCallback &callback)
SelectObjectContentInitialResponseCallbackEx & GetInitialResponseCallbackEx()
void SetInitialResponseCallbackEx(const SelectObjectContentInitialResponseCallbackEx &callback)
AWS_S3_API SelectObjectContentHandler & operator=(const SelectObjectContentHandler &)=default
void SetContinuationEventCallback(const ContinuationEventCallback &callback)
void SetStatsEventCallback(const StatsEventCallback &callback)
void SetEndEventCallback(const EndEventCallback &callback)
void SetInitialResponseCallback(const SelectObjectContentInitialResponseCallback &noArgCallback)
AWS_S3_API SelectObjectContentHandler()
virtual AWS_S3_API void OnEvent() override
void SetOnErrorCallback(const ErrorCallback &callback)
void SetProgressEventCallback(const ProgressEventCallback &callback)
AWS_S3_API SelectObjectContentEventType GetSelectObjectContentEventTypeForName(const Aws::String &name)
AWS_S3_API Aws::String GetNameForSelectObjectContentEventType(SelectObjectContentEventType value)
SelectObjectContentEventType
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String