From 7f5bf230d1f8f5b1bb9a0ab42f5656dfe890aa53 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 | 6 ++++++ .../knn/index/codec/KNN80Codec/KNN80DocValuesFormat.java | 5 +++++ 2 files changed, 11 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 a1ce6145e..2f814453a 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 @@ -6,6 +6,7 @@ package org.opensearch.knn.index.codec.KNN80Codec; import org.opensearch.knn.common.KNNConstants; +import org.apache.lucene.codecs.Codec; import org.apache.lucene.codecs.CompoundDirectory; import org.apache.lucene.codecs.CompoundFormat; import org.apache.lucene.index.SegmentInfo; @@ -25,6 +26,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 a1657f93f..151bb20ce 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 *