5 #include <aws/s3/model/Object.h>
10 namespace foreign_storage {
12 const std::vector<Aws::S3::Model::Object>& file_paths,
16 std::function<bool(const Aws::S3::Model::Object&, const Aws::S3::Model::Object&)>;
25 return comparator_pair->second;
31 [](
const Aws::S3::Model::Object& lhs,
const Aws::S3::Model::Object& rhs) ->
bool {
32 return lhs.GetKey() < rhs.GetKey();
35 [](
const Aws::S3::Model::Object& lhs,
const Aws::S3::Model::Object& rhs) ->
bool {
36 return lhs.GetLastModified() < rhs.GetLastModified();
39 [
this](
const Aws::S3::Model::Object& lhs,
40 const Aws::S3::Model::Object& rhs) ->
bool {
41 auto lhs_name = lhs.GetKey();
42 auto rhs_name = rhs.GetKey();
46 [
this](
const Aws::S3::Model::Object& lhs,
47 const Aws::S3::Model::Object& rhs) ->
bool {
52 [
this](
const Aws::S3::Model::Object& lhs,
53 const Aws::S3::Model::Object& rhs) ->
bool {
S3ObjectComparator getFileComparator() override
const std::string REGEX_NUMBER_ORDER_TYPE
const std::string REGEX_ORDER_TYPE
shared utility for globbing files, paths can be specified as either a single file, directory or wildcards
const std::map< std::string, S3ObjectComparator > comparator_map_
virtual std::string getSortBy()
FileOrderBase(const FilePathOptions &options)
const std::string REGEX_DATE_ORDER_TYPE
std::vector< Aws::S3::Model::Object > s3_objects_filter_sort_files(const std::vector< Aws::S3::Model::Object > &file_paths, const shared::FilePathOptions &options)
std::function< bool(const Aws::S3::Model::Object &, const Aws::S3::Model::Object &)> S3ObjectComparator
const std::string PATHNAME_ORDER_TYPE
FileOrderS3(const shared::FilePathOptions &options)
const std::string DATE_MODIFIED_ORDER_TYPE
virtual std::string concatCaptureGroups(const std::string &file_name) const
const std::function< bool(const std::string &, const std::string &)> common_regex_number_comp_
const std::function< bool(const std::string &, const std::string &)> common_regex_date_comp_