From df7ae0517240b6b17a30381f96a5f21111d15581 Mon Sep 17 00:00:00 2001 From: John Mazanec Date: Thu, 17 Mar 2022 09:41:39 -0700 Subject: [PATCH] Add back no arg ctors Signed-off-by: John Mazanec --- .../knn/index/codec/KNN80Codec/KNN80CompoundFormat.java | 5 +++++ .../knn/index/codec/KNN80Codec/KNN80DocValuesFormat.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80CompoundFormat.java b/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80CompoundFormat.java index a1ce6145ec..0159103e0d 100644 --- a/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80CompoundFormat.java +++ b/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80CompoundFormat.java @@ -25,6 +25,11 @@ public class KNN80CompoundFormat extends CompoundFormat { private final CompoundFormat delegate; + + public KNN80CompoundFormat() { + this.delegate = Codec.getDefault().compoundFormat(); + } + /** * Constructor that takes a delegate to handle non-overridden methods * diff --git a/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80DocValuesFormat.java b/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80DocValuesFormat.java index a1657f93f3..151bb20ce5 100644 --- a/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80DocValuesFormat.java +++ b/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80DocValuesFormat.java @@ -19,6 +19,11 @@ public class KNN80DocValuesFormat extends DocValuesFormat { private final DocValuesFormat delegate; + public KNN80DocValuesFormat() { + super(KNN80Codec.LUCENE_80); + this.delegate = DocValuesFormat.forName(KNN80Codec.LUCENE_80); + } + /** * Constructor that takes delegate in order to handle non-overridden methods *