Skip to content

Commit

Permalink
Moved unitTestCodec from src to tst folder to cleanup src files
Browse files Browse the repository at this point in the history
Signed-off-by: Navneet Verma <[email protected]>
  • Loading branch information
navneet1v committed Nov 7, 2024
1 parent 7d34456 commit 67fa441
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ org.opensearch.knn.index.codec.KNN940Codec.KNN940Codec
org.opensearch.knn.index.codec.KNN950Codec.KNN950Codec
org.opensearch.knn.index.codec.KNN990Codec.KNN990Codec
org.opensearch.knn.index.codec.KNN9120Codec.KNN9120Codec
org.opensearch.knn.index.codec.KNN990Codec.UnitTestCodec
11 changes: 11 additions & 0 deletions src/test/META-INF.services/org.apache.lucene.codecs.Codec
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
#
# Modifications Copyright OpenSearch Contributors. See
# GitHub history for details.
#
org.opensearch.knn.index.codec.KNN990Codec.UnitTestCodec
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
import org.apache.lucene.codecs.perfield.PerFieldKnnVectorsFormat;
import org.opensearch.knn.index.codec.KNNCodecVersion;

/**
* This codec is for testing. The reason for putting this codec here is SPI is only scanning the src folder and not
* able to pick this class if its in test folder. Don't use this codec outside of testing
*/

public class UnitTestCodec extends FilterCodec {
private static final Integer BUILD_GRAPH_ALWAYS = 0;

Expand Down

0 comments on commit 67fa441

Please sign in to comment.