| 1 | /* |
| 2 | * index_ce.c |
| 3 | * |
| 4 | * Copyright (C) 2016 Aerospike, Inc. |
| 5 | * |
| 6 | * Portions may be licensed to Aerospike, Inc. under one or more contributor |
| 7 | * license agreements. |
| 8 | * |
| 9 | * This program is free software: you can redistribute it and/or modify it under |
| 10 | * the terms of the GNU Affero General Public License as published by the Free |
| 11 | * Software Foundation, either version 3 of the License, or (at your option) any |
| 12 | * later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 16 | * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more |
| 17 | * details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU Affero General Public License |
| 20 | * along with this program. If not, see http://www.gnu.org/licenses/ |
| 21 | */ |
| 22 | |
| 23 | //========================================================== |
| 24 | // Includes. |
| 25 | // |
| 26 | |
| 27 | #include "base/index.h" |
| 28 | |
| 29 | #include "arenax.h" |
| 30 | #include "fault.h" |
| 31 | |
| 32 | #include "base/datamodel.h" |
| 33 | |
| 34 | |
| 35 | //========================================================== |
| 36 | // Public API. |
| 37 | // |
| 38 | |
| 39 | as_index_tree * |
| 40 | as_index_tree_resume(as_index_tree_shared *shared, as_treex *xmem_trees, |
| 41 | uint32_t pid, as_index_tree_done_fn cb, void *udata) |
| 42 | { |
| 43 | cf_crash(AS_INDEX, "CE code called as_index_tree_resume()" ); |
| 44 | return NULL; |
| 45 | } |
| 46 | |
| 47 | |
| 48 | void |
| 49 | as_index_reduce_live(as_index_tree *tree, as_index_reduce_fn cb, void *udata) |
| 50 | { |
| 51 | as_index_reduce(tree, cb, udata); |
| 52 | } |
| 53 | |
| 54 | |
| 55 | void |
| 56 | as_index_reduce_partial_live(as_index_tree *tree, uint64_t sample_count, |
| 57 | as_index_reduce_fn cb, void *udata) |
| 58 | { |
| 59 | as_index_reduce_partial(tree, sample_count, cb, udata); |
| 60 | } |
| 61 | |
| 62 | |
| 63 | //========================================================== |
| 64 | // Private API - for enterprise separation only. |
| 65 | // |
| 66 | |
| 67 | uint64_t |
| 68 | as_index_sprig_keyd_reduce_partial(as_index_sprig *isprig, |
| 69 | uint64_t sample_count, as_index_reduce_fn cb, void *udata) |
| 70 | { |
| 71 | cf_crash(AS_INDEX, "CE code called as_index_sprig_keyd_reduce_partial()" ); |
| 72 | return 0; |
| 73 | } |
| 74 | |