Skip to content

Commit

Permalink
Add back no arg ctors
Browse files Browse the repository at this point in the history
Signed-off-by: John Mazanec <[email protected]>
  • Loading branch information
jmazanec15 committed Mar 17, 2022
1 parent 41ed25f commit 7f5bf23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 7f5bf23

Please sign in to comment.