Class BaseKnnVectorsFormatTestCase

    • Constructor Detail

      • BaseKnnVectorsFormatTestCase

        public BaseKnnVectorsFormatTestCase()
    • Method Detail

      • init

        public void init()
      • testFieldConstructor

        public void testFieldConstructor()
      • testFieldConstructorExceptions

        public void testFieldConstructorExceptions()
      • testFieldSetValue

        public void testFieldSetValue()
      • testIllegalDimChangeTwoDocs

        public void testIllegalDimChangeTwoDocs()
                                         throws Exception
        Throws:
        Exception
      • testIllegalSimilarityFunctionChange

        public void testIllegalSimilarityFunctionChange()
                                                 throws Exception
        Throws:
        Exception
      • testIllegalDimChangeTwoWriters

        public void testIllegalDimChangeTwoWriters()
                                            throws Exception
        Throws:
        Exception
      • testIllegalSimilarityFunctionChangeTwoWriters

        public void testIllegalSimilarityFunctionChangeTwoWriters()
                                                           throws Exception
        Throws:
        Exception
      • testAddIndexesDirectory0

        public void testAddIndexesDirectory0()
                                      throws Exception
        Throws:
        Exception
      • testAddIndexesDirectory1

        public void testAddIndexesDirectory1()
                                      throws Exception
        Throws:
        Exception
      • testAddIndexesDirectory01

        public void testAddIndexesDirectory01()
                                       throws Exception
        Throws:
        Exception
      • testIllegalDimChangeViaAddIndexesDirectory

        public void testIllegalDimChangeViaAddIndexesDirectory()
                                                        throws Exception
        Throws:
        Exception
      • testIllegalSimilarityFunctionChangeViaAddIndexesDirectory

        public void testIllegalSimilarityFunctionChangeViaAddIndexesDirectory()
                                                                       throws Exception
        Throws:
        Exception
      • testIllegalDimChangeViaAddIndexesCodecReader

        public void testIllegalDimChangeViaAddIndexesCodecReader()
                                                          throws Exception
        Throws:
        Exception
      • testIllegalSimilarityFunctionChangeViaAddIndexesCodecReader

        public void testIllegalSimilarityFunctionChangeViaAddIndexesCodecReader()
                                                                         throws Exception
        Throws:
        Exception
      • testIllegalDimChangeViaAddIndexesSlowCodecReader

        public void testIllegalDimChangeViaAddIndexesSlowCodecReader()
                                                              throws Exception
        Throws:
        Exception
      • testIllegalSimilarityFunctionChangeViaAddIndexesSlowCodecReader

        public void testIllegalSimilarityFunctionChangeViaAddIndexesSlowCodecReader()
                                                                             throws Exception
        Throws:
        Exception
      • testIllegalMultipleValues

        public void testIllegalMultipleValues()
                                       throws Exception
        Throws:
        Exception
      • testIllegalDimensionTooLarge

        public void testIllegalDimensionTooLarge()
                                          throws Exception
        Throws:
        Exception
      • testIllegalEmptyVector

        public void testIllegalEmptyVector()
                                    throws Exception
        Throws:
        Exception
      • testDifferentCodecs1

        public void testDifferentCodecs1()
                                  throws Exception
        Throws:
        Exception
      • testDifferentCodecs2

        public void testDifferentCodecs2()
                                  throws Exception
        Throws:
        Exception
      • testInvalidKnnVectorFieldUsage

        public void testInvalidKnnVectorFieldUsage()
      • testDeleteAllVectorDocs

        public void testDeleteAllVectorDocs()
                                     throws Exception
        Throws:
        Exception
      • testKnnVectorFieldMissingFromOneSegment

        public void testKnnVectorFieldMissingFromOneSegment()
                                                     throws Exception
        Throws:
        Exception
      • testFloatVectorScorerIteration

        public void testFloatVectorScorerIteration()
                                            throws Exception
        Throws:
        Exception
      • testByteVectorScorerIteration

        public void testByteVectorScorerIteration()
                                           throws Exception
        Throws:
        Exception
      • testEmptyFloatVectorData

        public void testEmptyFloatVectorData()
                                      throws Exception
        Throws:
        Exception
      • testEmptyByteVectorData

        public void testEmptyByteVectorData()
                                     throws Exception
        Throws:
        Exception
      • testIndexedValueNotAliased

        public void testIndexedValueNotAliased()
                                        throws Exception
        Throws:
        Exception
      • testSortedIndexBytes

        public void testSortedIndexBytes()
                                  throws Exception
        Throws:
        Exception
      • testIndexMultipleKnnVectorFields

        public void testIndexMultipleKnnVectorFields()
                                              throws Exception
        Throws:
        Exception
      • testRandom

        public void testRandom()
                        throws Exception
        Index random vectors, sometimes skipping documents, sometimes deleting a document, sometimes merging, sometimes sorting the index, and verify that the expected values can be read back consistently.
        Throws:
        Exception
      • testRandomBytes

        public void testRandomBytes()
                             throws Exception
        Index random vectors as bytes, sometimes skipping documents, sometimes deleting a document, sometimes merging, sometimes sorting the index, and verify that the expected values can be read back consistently.
        Throws:
        Exception
      • testRandomWithUpdatesAndGraph

        public void testRandomWithUpdatesAndGraph()
                                           throws Exception
        Index random vectors, sometimes skipping documents, sometimes updating a document, sometimes merging, sometimes sorting the index, using an HNSW similarity function so as to also produce a graph, and verify that the expected values can be read back consistently.
        Throws:
        Exception
      • randomVector

        public static float[] randomVector​(int dim)
      • randomNormalizedVector

        public static float[] randomNormalizedVector​(int dim)
      • randomVector8

        public static byte[] randomVector8​(int dim)
      • testCheckIndexIncludesVectors

        public void testCheckIndexIncludesVectors()
                                           throws Exception
        Throws:
        Exception
      • testSimilarityFunctionIdentifiers

        public void testSimilarityFunctionIdentifiers()
      • testVectorEncodingOrdinals

        public void testVectorEncodingOrdinals()
      • testVectorValuesReportCorrectDocs

        public void testVectorValuesReportCorrectDocs()
                                               throws Exception
        Throws:
        Exception