diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-05-31 19:09:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 19:09:45 +0200 |
commit | f68838b632e8af9cad24568bd5354ed1db0aa685 (patch) | |
tree | 0d151f4af256cd41ce71b2079578fc6a036d220d /config-model/src/main/java/com/yahoo/schema/fieldoperation/SummaryInFieldShortOperation.java | |
parent | 0b3b4099742306aeb2706e6be7251d66152f12ae (diff) | |
parent | e836c45f4b9900bdfa72987a96a13087b106b757 (diff) |
Merge pull request #22817 from vespa-engine/arnej/remove-field-opsv7.592.17
remove some cruft
Diffstat (limited to 'config-model/src/main/java/com/yahoo/schema/fieldoperation/SummaryInFieldShortOperation.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/schema/fieldoperation/SummaryInFieldShortOperation.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/fieldoperation/SummaryInFieldShortOperation.java b/config-model/src/main/java/com/yahoo/schema/fieldoperation/SummaryInFieldShortOperation.java deleted file mode 100644 index ccc22719f25..00000000000 --- a/config-model/src/main/java/com/yahoo/schema/fieldoperation/SummaryInFieldShortOperation.java +++ /dev/null @@ -1,32 +0,0 @@ -// 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; -import com.yahoo.vespa.documentmodel.SummaryField; - -/** - * @author Einar M R Rosenvinge - */ -public class SummaryInFieldShortOperation extends SummaryInFieldOperation { - - public SummaryInFieldShortOperation(String name) { - super(name); - } - - public void apply(SDField field) { - SummaryField ret = field.getSummaryField(name); - if (ret == null) { - ret = new SummaryField(name, field.getDataType()); - ret.addSource(field.getName()); - ret.addDestination("default"); - } - ret.setImplicit(false); - - ret.setTransform(transform); - for (SummaryField.Source source : sources) { - ret.addSource(source); - } - field.addSummaryField(ret); - } - -} |