Class foreign_storage::FileOrderS3

class FileOrderS3 : public shared::FileOrderBase<S3ObjectComparator>

Public Functions

FileOrderS3(const std::optional<std::string> &sort_regex, const std::optional<std::string> &sort_by)
S3ObjectComparator getFileComparator()

Protected Attributes

const std::map<std::string, S3ObjectComparator> foreign_storage::FileOrderS3::comparator_map_{ {shared::PATHNAME_ORDER_TYPE, [](const Aws::S3::Model::Object& lhs, const Aws::S3::Model::Object& rhs) -> bool { return lhs.GetKey() < rhs.GetKey(); }}, {shared::DATE_MODIFIED_ORDER_TYPE, [](const Aws::S3::Model::Object& lhs, const Aws::S3::Model::Object& rhs) -> bool { return lhs.GetLastModified() < rhs.GetLastModified(); }}, {shared::REGEX_ORDER_TYPE, [this](const Aws::S3::Model::Object& lhs,const Aws::S3::Model::Object& rhs) -> bool { auto lhs_name = lhs.GetKey(); auto rhs_name = rhs.GetKey(); return this->concatCaptureGroups(lhs_name) < this->concatCaptureGroups(rhs_name); }}, {shared::REGEX_DATE_ORDER_TYPE, [this](const Aws::S3::Model::Object& lhs,const Aws::S3::Model::Object& rhs) -> bool { return shared::common_regex_date_comp_(this->concatCaptureGroups(lhs.GetKey()),this->concatCaptureGroups(rhs.GetKey())); }}, {shared::REGEX_NUMBER_ORDER_TYPE, [this](const Aws::S3::Model::Object& lhs,const Aws::S3::Model::Object& rhs) -> bool { return shared::common_regex_number_comp_(this->concatCaptureGroups(lhs.GetKey()),this->concatCaptureGroups(rhs.GetKey())); }}}