Class AbstractColumnarArrayOrderSyntheticSourceTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase

public abstract class AbstractColumnarArrayOrderSyntheticSourceTestCase extends MapperServiceTestCase
Shared round-trip coverage for high-cardinality fields in strictly columnar mode that store their values in document order with inline nulls (MultiValuedBinaryDocValuesField.ArrayOrderInlineNull) instead of a sidecar .offsets field. Concrete subclasses supply the field type (keyword, text, match_only_text). Exercises order preservation, duplicates, interleaved nulls, lone/all nulls, empty arrays, and the empty-string-vs-null distinction.
  • Constructor Details

    • AbstractColumnarArrayOrderSyntheticSourceTestCase

      public AbstractColumnarArrayOrderSyntheticSourceTestCase()
  • Method Details

    • fieldTypeName

      protected abstract String fieldTypeName()
      The type of the field under test; the field is always named field and is mapped with its columnar-mode defaults.
    • setUp

      public final void setUp() throws Exception
      Overrides:
      setUp in class org.apache.lucene.tests.util.LuceneTestCase
      Throws:
      Exception
    • columnarMapperService

      protected MapperService columnarMapperService() throws IOException
      Throws:
      IOException
    • columnarMapper

      protected DocumentMapper columnarMapper() throws IOException
      Throws:
      IOException
    • testOffsetsFieldNotUsed

      public void testOffsetsFieldNotUsed() throws IOException
      Throws:
      IOException
    • testOrderAndDuplicatesPreserved

      public void testOrderAndDuplicatesPreserved() throws IOException
      Throws:
      IOException
    • testSingleValueCollapsesToScalar

      public void testSingleValueCollapsesToScalar() throws IOException
      Throws:
      IOException
    • testInterleavedNullsPreserved

      public void testInterleavedNullsPreserved() throws IOException
      Throws:
      IOException
    • testAllNullArray

      public void testAllNullArray() throws IOException
      Throws:
      IOException
    • testLoneNull

      public void testLoneNull() throws IOException
      Throws:
      IOException
    • testEmptyArray

      public void testEmptyArray() throws IOException
      Throws:
      IOException
    • testEmptyStringDistinctFromNull

      public void testEmptyStringDistinctFromNull() throws IOException
      Throws:
      IOException
    • testColumnarSingleValuedSelectsFastPathReader

      public void testColumnarSingleValuedSelectsFastPathReader() throws IOException
      Throws:
      IOException
    • testColumnarMultiValuedSelectsArrayOrderReader

      public void testColumnarMultiValuedSelectsArrayOrderReader() throws IOException
      Throws:
      IOException