diff options
Diffstat (limited to 'config-model/src/main/java/com/yahoo/schema/fieldoperation/WeightOperation.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/schema/fieldoperation/WeightOperation.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/fieldoperation/WeightOperation.java b/config-model/src/main/java/com/yahoo/schema/fieldoperation/WeightOperation.java new file mode 100644 index 00000000000..57c28d9bdb5 --- /dev/null +++ b/config-model/src/main/java/com/yahoo/schema/fieldoperation/WeightOperation.java @@ -0,0 +1,25 @@ +// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.schema.fieldoperation; + +import com.yahoo.schema.document.SDField; + +/** + * @author Einar M R Rosenvinge + */ +public class WeightOperation implements FieldOperation { + + private int weight; + + public int getWeight() { + return weight; + } + + public void setWeight(int weight) { + this.weight = weight; + } + + public void apply(SDField field) { + field.setWeight(weight); + } + +} |