IODA Bundle
Partitioner.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 1996-2012 ECMWF.
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  * In applying this licence, ECMWF does not waive the privileges and immunities
7  * granted to it by virtue of its status as an intergovernmental organisation nor
8  * does it submit to any jurisdiction.
9  */
10 
11 /// @author Piotr Kuchta, ECMWF, January 2016
12 
13 #ifndef odc_Partitioner_H
14 #define odc_Partitioner_H
15 
16 #include "odc/Partition.h"
17 #include "odc/Partitions.h"
18 #include "odc/Indexer.h"
19 
20 namespace odc {
21 
22 class Partitioner {
23 public:
24  static Partitions createPartitions(const std::vector<eckit::PathName>&, size_t);
25  static Partitions createPartitions(const std::vector<eckit::PathName>&, const std::vector<eckit::PathName>&, size_t);
26 
27 private:
28  static ullong countRows(const std::vector<eckit::PathName>& files, const std::vector<eckit::PathName>& indices);
29 };
30 
31 } // namespace odc
32 
33 #endif
static Partitions createPartitions(const std::vector< eckit::PathName > &, size_t)
Definition: Partitioner.cc:27
static ullong countRows(const std::vector< eckit::PathName > &files, const std::vector< eckit::PathName > &indices)
Definition: Partitioner.cc:78
Definition: ColumnInfo.h:23
unsigned long long ullong
Definition: Block.h:27