public class IndexDefMergerUtils extends Object
| Constructor and Description |
|---|
IndexDefMergerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
merge(org.apache.jackrabbit.oak.commons.json.JsonObject newIndexes,
org.apache.jackrabbit.oak.commons.json.JsonObject allIndexes)
For indexes that were modified both by the customer and in the product, merge
the changes, and create a new index.
|
static org.apache.jackrabbit.oak.commons.json.JsonObject |
merge(org.apache.jackrabbit.oak.commons.json.JsonObject ancestor,
org.apache.jackrabbit.oak.commons.json.JsonObject custom,
org.apache.jackrabbit.oak.commons.json.JsonObject product)
Merge index definition changes.
|
public static org.apache.jackrabbit.oak.commons.json.JsonObject merge(org.apache.jackrabbit.oak.commons.json.JsonObject ancestor, org.apache.jackrabbit.oak.commons.json.JsonObject custom, org.apache.jackrabbit.oak.commons.json.JsonObject product)
ancestor - the common ancestor (the old product index, e.g. lucene)custom - the latest customized version (e.g. lucene-custom-1)product - the latest product index (e.g. lucene-2)public static void merge(org.apache.jackrabbit.oak.commons.json.JsonObject newIndexes, org.apache.jackrabbit.oak.commons.json.JsonObject allIndexes)
newIndexes - the new indexesallIndexes - all index definitions (including the new ones)Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.