public abstract class BaseDocValuesFormatTestCase extends LuceneTestCase
LuceneTestCase.AwaitsFix, LuceneTestCase.BadApple, LuceneTestCase.Monster, LuceneTestCase.Nightly, LuceneTestCase.Slow, LuceneTestCase.SuppressCodecs, LuceneTestCase.SuppressFileSystems, LuceneTestCase.SuppressFsync, LuceneTestCase.SuppressReproduceLine, LuceneTestCase.SuppressSysoutChecks, LuceneTestCase.SuppressTempFileChecks, LuceneTestCase.ThrowingRunnable, LuceneTestCase.WeeklyassertsAreEnabled, classRules, DEFAULT_LINE_DOCS_FILE, INFOSTREAM, JENKINS_LARGE_LINE_DOCS_FILE, LEAVE_TEMPORARY, MAYBE_CACHE_POLICY, RANDOM_MULTIPLIER, ruleChain, suiteFailureMarker, SYSPROP_AWAITSFIX, SYSPROP_BADAPPLES, SYSPROP_FAILFAST, SYSPROP_MAXFAILURES, SYSPROP_MONSTER, SYSPROP_NIGHTLY, SYSPROP_SLOW, SYSPROP_WEEKLY, TEST_ASSERTS_ENABLED, TEST_AWAITSFIX, TEST_BADAPPLES, TEST_CODEC, TEST_DIRECTORY, TEST_DOCVALUESFORMAT, TEST_LINE_DOCS_FILE, TEST_MONSTER, TEST_NIGHTLY, TEST_POSTINGSFORMAT, TEST_SLOW, TEST_THROTTLING, TEST_WEEKLY, VERBOSE| Constructor and Description |
|---|
BaseDocValuesFormatTestCase() |
addVirusChecker, assertDeletedDocsEquals, assertDocsAndPositionsEnumEquals, assertDocsEnumEquals, assertDocsSkippingEquals, assertDocValuesEquals, assertDocValuesEquals, assertFieldInfosEquals, assertFieldsEquals, assertFieldStatisticsEquals, assertNormsEquals, assertPointsEquals, assertPositionsSkippingEquals, assertReaderEquals, assertReaderStatisticsEquals, assertStoredFieldEquals, assertStoredFieldsEquals, assertTermsEnumEquals, assertTermsEquals, assertTermsStatisticsEquals, assertTermStatsEquals, assertTermVectorsEquals, asSet, assumeFalse, assumeNoException, assumeTrue, assumeWorkingMMapOnWindows, atLeast, atLeast, closeAfterSuite, closeAfterTest, collate, createTempDir, createTempDir, createTempFile, createTempFile, dumpArray, dumpIterator, expectThrows, expectThrows, expectThrows, expectThrowsAnyOf, expectThrowsAnyOf, getBaseTempDirForTestClass, getDataInputStream, getDataPath, getOnlyLeafReader, getTestClass, getTestName, hasWorkingMMapOnWindows, isTestThread, localeForLanguageTag, maybeChangeLiveIndexWriterConfig, maybeWrapReader, newAlcoholicMergePolicy, newAlcoholicMergePolicy, newDirectory, newDirectory, newDirectory, newDirectory, newDirectory, newField, newField, newFSDirectory, newFSDirectory, newIndexWriterConfig, newIndexWriterConfig, newIndexWriterConfig, newIOContext, newIOContext, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newMaybeVirusCheckingDirectory, newMaybeVirusCheckingFSDirectory, newMergePolicy, newMergePolicy, newMergePolicy, newMockDirectory, newMockDirectory, newMockDirectory, newMockFSDirectory, newMockFSDirectory, newSearcher, newSearcher, newSearcher, newStringField, newStringField, newStringField, newStringField, newTextField, newTextField, newTieredMergePolicy, newTieredMergePolicy, overrideDefaultQueryCache, overrideTestDefaultQueryCache, random, randomLocale, randomTimeZone, rarely, rarely, replaceMaxFailureRule, resetDefaultQueryCache, restoreCPUCoreCount, restoreIndexWriterMaxDocs, restoreSpins, runWithRestrictedPermissions, setIndexWriterMaxDocs, setupCPUCoreCount, setupSpins, slowFileExists, usually, usually, wrapReaderassertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertThrows, assertThrows, assertTrue, assertTrue, fail, failprotected void addRandomFields(Document doc)
public void testOneNumber()
throws java.io.IOException
java.io.IOExceptionpublic void testOneFloat()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoNumbers()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoBinaryValues()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoFieldsMixed()
throws java.io.IOException
java.io.IOExceptionpublic void testThreeFieldsMixed()
throws java.io.IOException
java.io.IOExceptionpublic void testThreeFieldsMixed2()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoDocumentsNumeric()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoDocumentsMerged()
throws java.io.IOException
java.io.IOExceptionpublic void testBigNumericRange()
throws java.io.IOException
java.io.IOExceptionpublic void testBigNumericRange2()
throws java.io.IOException
java.io.IOExceptionpublic void testBytes()
throws java.io.IOException
java.io.IOExceptionpublic void testBytesTwoDocumentsMerged()
throws java.io.IOException
java.io.IOExceptionpublic void testBytesMergeAwayAllValues()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedBytes()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedBytesTwoDocuments()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedBytesThreeDocuments()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedBytesTwoDocumentsMerged()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedMergeAwayAllValues()
throws java.io.IOException
java.io.IOExceptionpublic void testBytesWithNewline()
throws java.io.IOException
java.io.IOExceptionpublic void testMissingSortedBytes()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedTermsEnum()
throws java.io.IOException
java.io.IOExceptionpublic void testEmptySortedBytes()
throws java.io.IOException
java.io.IOExceptionpublic void testEmptyBytes()
throws java.io.IOException
java.io.IOExceptionpublic void testVeryLargeButLegalBytes()
throws java.io.IOException
java.io.IOExceptionpublic void testVeryLargeButLegalSortedBytes()
throws java.io.IOException
java.io.IOExceptionpublic void testCodecUsesOwnBytes()
throws java.io.IOException
java.io.IOExceptionpublic void testCodecUsesOwnSortedBytes()
throws java.io.IOException
java.io.IOExceptionpublic void testDocValuesSimple()
throws java.io.IOException
java.io.IOExceptionpublic void testRandomSortedBytes()
throws java.io.IOException
java.io.IOExceptionpublic void testBooleanNumericsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseBooleanNumericsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testByteNumericsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseByteNumericsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testShortNumericsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseShortNumericsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testIntNumericsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseIntNumericsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testLongNumericsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseLongNumericsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testBinaryFixedLengthVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseBinaryFixedLengthVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testBinaryVariableLengthVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseBinaryVariableLengthVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestBinaryVariableLengthVsStoredFields(double density)
throws java.lang.Exception
java.lang.Exceptionprotected void doTestSortedVsStoredFields(int numDocs,
double density,
java.util.function.Supplier<byte[]> bytes)
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedFixedLengthVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseSortedFixedLengthVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedVariableLengthVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseSortedVariableLengthVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionprotected void doTestSortedVsStoredFields(int numDocs,
double density,
int minLength,
int maxLength)
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedSetOneValue()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetTwoFields()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetTwoDocumentsMerged()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetTwoValues()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetTwoValuesUnordered()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetThreeValuesTwoDocs()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetTwoDocumentsLastMissing()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetTwoDocumentsLastMissingMerge()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetTwoDocumentsFirstMissing()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetTwoDocumentsFirstMissingMerge()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetMergeAwayAllValues()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetTermsEnum()
throws java.io.IOException
java.io.IOExceptionprotected void doTestSortedSetVsStoredFields(int numDocs,
int minLength,
int maxLength,
int maxValuesPerDoc,
int maxUniqueValues)
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedSetFixedLengthVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedNumericsSingleValuedVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedNumericsSingleValuedMissingVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedNumericsMultipleValuesVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedNumericsFewUniqueSetsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedSetVariableLengthVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedSetFixedLengthSingleValuedVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedSetVariableLengthSingleValuedVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedSetFixedLengthFewUniqueSetsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedSetVariableLengthFewUniqueSetsVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedSetVariableLengthManyValuesPerDocVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testSortedSetFixedLengthManyValuesPerDocVsStoredFields()
throws java.lang.Exception
java.lang.Exceptionpublic void testGCDCompression()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseGCDCompression()
throws java.lang.Exception
java.lang.Exceptionpublic void testZeros()
throws java.lang.Exception
java.lang.Exceptionpublic void testSparseZeros()
throws java.lang.Exception
java.lang.Exceptionpublic void testZeroOrMin()
throws java.lang.Exception
java.lang.Exceptionpublic void testTwoNumbersOneMissing()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoNumbersOneMissingWithMerging()
throws java.io.IOException
java.io.IOExceptionpublic void testThreeNumbersOneMissingWithMerging()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoBytesOneMissing()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoBytesOneMissingWithMerging()
throws java.io.IOException
java.io.IOExceptionpublic void testThreeBytesOneMissingWithMerging()
throws java.io.IOException
java.io.IOExceptionpublic void testThreads()
throws java.lang.Exception
java.lang.Exception@LuceneTestCase.Slow public void testThreads2() throws java.lang.Exception
java.lang.Exception@LuceneTestCase.Slow public void testThreads3() throws java.lang.Exception
java.lang.Exceptionpublic void testEmptyBinaryValueOnPageSizes()
throws java.lang.Exception
java.lang.Exceptionpublic void testOneSortedNumber()
throws java.io.IOException
java.io.IOExceptionpublic void testOneSortedNumberOneMissing()
throws java.io.IOException
java.io.IOExceptionpublic void testNumberMergeAwayAllValues()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoSortedNumber()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoSortedNumberSameValue()
throws java.io.IOException
java.io.IOExceptionpublic void testTwoSortedNumberOneMissing()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedNumberMerge()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedNumberMergeAwayAllValues()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedEnumAdvanceIndependently()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetEnumAdvanceIndependently()
throws java.io.IOException
java.io.IOExceptionprotected void doTestSortedSetEnumAdvanceIndependently(SortedSetDocValues dv) throws java.io.IOException
java.io.IOExceptionpublic void testSortedMergeAwayAllValuesLargeSegment()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedSetMergeAwayAllValuesLargeSegment()
throws java.io.IOException
java.io.IOExceptionpublic void testNumericMergeAwayAllValuesLargeSegment()
throws java.io.IOException
java.io.IOExceptionpublic void testSortedNumericMergeAwayAllValuesLargeSegment()
throws java.io.IOException
java.io.IOExceptionpublic void testBinaryMergeAwayAllValuesLargeSegment()
throws java.io.IOException
java.io.IOExceptionpublic void testRandomAdvanceNumeric()
throws java.io.IOException
java.io.IOExceptionpublic void testRandomAdvanceBinary()
throws java.io.IOException
java.io.IOExceptionprotected boolean codecAcceptsHugeBinaryValues(java.lang.String field)
protected abstract Codec getCodec()
protected int getCreatedVersionMajor()
protected final <D extends Directory> D applyCreatedVersionMajor(D d) throws java.io.IOException
Directory and return it.java.io.IOExceptionpublic void setUp()
throws java.lang.Exception
LuceneTestCasesuper.setUp().setUp in class LuceneTestCasejava.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
LuceneTestCasesuper.tearDown().tearDown in class LuceneTestCasejava.lang.Exceptionprotected java.util.Collection<java.lang.String> excludedExtensionsFromByteCounts()
public void testMergeStability()
throws java.lang.Exception
java.lang.Exceptionprotected boolean mergeIsStable()
@LuceneTestCase.Slow public void testRamBytesUsed() throws java.io.IOException
java.io.IOExceptionpublic void testMultiClose()
throws java.io.IOException
java.io.IOExceptionpublic void testRandomExceptions()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.