Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
indexing.h
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2018 The Earlham Institute
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 /*
17  * indexing.h
18  *
19  * Created on: 23 Aug 2019
20  * Author: billy
21  */
22 
23 #ifndef SERVICES_FIELD_TRIALS_INCLUDE_INDEXING_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_INDEXING_H_
25 
26 
29 #include "lucene_tool.h"
30 
31 
32 #ifdef __cplusplus
33 extern "C"
34 {
35 #endif
36 
37 
39 
40 
41 DFW_FIELD_TRIAL_SERVICE_LOCAL OperationStatus ReindexAllData (ServiceJob *job_p, const bool update_flag, const FieldTrialServiceData *service_data_p);
42 
43 
44 DFW_FIELD_TRIAL_SERVICE_LOCAL OperationStatus ReindexStudies (ServiceJob *job_p, LuceneTool *lucene_p, bool update_flag, const FieldTrialServiceData *service_data_p);
45 
46 
47 DFW_FIELD_TRIAL_SERVICE_LOCAL OperationStatus ReindexTrials (ServiceJob *job_p, LuceneTool *lucene_p, bool update_flag, const FieldTrialServiceData *service_data_p);
48 
49 
50 DFW_FIELD_TRIAL_SERVICE_LOCAL OperationStatus ReindexLocations (ServiceJob *job_p, LuceneTool *lucene_p, bool update_flag, const FieldTrialServiceData *service_data_p);
51 
52 
54 
55 
56 DFW_FIELD_TRIAL_SERVICE_LOCAL OperationStatus ReindexProgrammes (ServiceJob *job_p, LuceneTool *lucene_p, bool update_flag, const FieldTrialServiceData *service_data_p);
57 
58 
59 DFW_FIELD_TRIAL_SERVICE_LOCAL OperationStatus ReindexTreatments (ServiceJob *job_p, LuceneTool *lucene_p, bool update_flag, const FieldTrialServiceData *service_data_p);
60 
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 
67 
68 #endif /* SERVICES_FIELD_TRIALS_INCLUDE_INDEXING_H_ */
ServiceJob
A datatype to represent a running task.
Definition: service_job.h:72
GetFieldTrialIndexingService
Service * GetFieldTrialIndexingService(GrassrootsServer *grassroots_p)
ReindexLocations
OperationStatus ReindexLocations(ServiceJob *job_p, LuceneTool *lucene_p, bool update_flag, const FieldTrialServiceData *service_data_p)
dfw_field_trial_service_library.h
ReindexProgrammes
OperationStatus ReindexProgrammes(ServiceJob *job_p, LuceneTool *lucene_p, bool update_flag, const FieldTrialServiceData *service_data_p)
LuceneTool
A Tool for running Lucene jobs.
Definition: lucene_tool.h:67
DFW_FIELD_TRIAL_SERVICE_LOCAL
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
Service
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
ReindexMeasuredVariables
OperationStatus ReindexMeasuredVariables(ServiceJob *job_p, LuceneTool *lucene_p, bool update_flag, const FieldTrialServiceData *service_data_p)
OperationStatus
OperationStatus
The current status of an Operation.
Definition: operation.h:96
ReindexStudies
OperationStatus ReindexStudies(ServiceJob *job_p, LuceneTool *lucene_p, bool update_flag, const FieldTrialServiceData *service_data_p)
GrassrootsServer
Definition: grassroots_server.h:45
dfw_field_trial_service_data.h
ReindexAllData
OperationStatus ReindexAllData(ServiceJob *job_p, const bool update_flag, const FieldTrialServiceData *service_data_p)
ReindexTrials
OperationStatus ReindexTrials(ServiceJob *job_p, LuceneTool *lucene_p, bool update_flag, const FieldTrialServiceData *service_data_p)
ReindexTreatments
OperationStatus ReindexTreatments(ServiceJob *job_p, LuceneTool *lucene_p, bool update_flag, const FieldTrialServiceData *service_data_p)
FieldTrialServiceData
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
lucene_tool.h