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.Weekly
assertsAreEnabled, 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, wrapReader
assertArrayEquals, 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, assertTrue, assertTrue, fail, fail
protected void addRandomFields(Document doc)
public void testOneNumber() throws java.io.IOException
java.io.IOException
public void testOneFloat() throws java.io.IOException
java.io.IOException
public void testTwoNumbers() throws java.io.IOException
java.io.IOException
public void testTwoBinaryValues() throws java.io.IOException
java.io.IOException
public void testTwoFieldsMixed() throws java.io.IOException
java.io.IOException
public void testThreeFieldsMixed() throws java.io.IOException
java.io.IOException
public void testThreeFieldsMixed2() throws java.io.IOException
java.io.IOException
public void testTwoDocumentsNumeric() throws java.io.IOException
java.io.IOException
public void testTwoDocumentsMerged() throws java.io.IOException
java.io.IOException
public void testBigNumericRange() throws java.io.IOException
java.io.IOException
public void testBigNumericRange2() throws java.io.IOException
java.io.IOException
public void testBytes() throws java.io.IOException
java.io.IOException
public void testBytesTwoDocumentsMerged() throws java.io.IOException
java.io.IOException
public void testBytesMergeAwayAllValues() throws java.io.IOException
java.io.IOException
public void testSortedBytes() throws java.io.IOException
java.io.IOException
public void testSortedBytesTwoDocuments() throws java.io.IOException
java.io.IOException
public void testSortedBytesThreeDocuments() throws java.io.IOException
java.io.IOException
public void testSortedBytesTwoDocumentsMerged() throws java.io.IOException
java.io.IOException
public void testSortedMergeAwayAllValues() throws java.io.IOException
java.io.IOException
public void testBytesWithNewline() throws java.io.IOException
java.io.IOException
public void testMissingSortedBytes() throws java.io.IOException
java.io.IOException
public void testSortedTermsEnum() throws java.io.IOException
java.io.IOException
public void testEmptySortedBytes() throws java.io.IOException
java.io.IOException
public void testEmptyBytes() throws java.io.IOException
java.io.IOException
public void testVeryLargeButLegalBytes() throws java.io.IOException
java.io.IOException
public void testVeryLargeButLegalSortedBytes() throws java.io.IOException
java.io.IOException
public void testCodecUsesOwnBytes() throws java.io.IOException
java.io.IOException
public void testCodecUsesOwnSortedBytes() throws java.io.IOException
java.io.IOException
public void testDocValuesSimple() throws java.io.IOException
java.io.IOException
public void testRandomSortedBytes() throws java.io.IOException
java.io.IOException
public void testBooleanNumericsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSparseBooleanNumericsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testByteNumericsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSparseByteNumericsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testShortNumericsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSparseShortNumericsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testIntNumericsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSparseIntNumericsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testLongNumericsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSparseLongNumericsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testBinaryFixedLengthVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSparseBinaryFixedLengthVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testBinaryVariableLengthVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSparseBinaryVariableLengthVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void doTestBinaryVariableLengthVsStoredFields(double density) throws java.lang.Exception
java.lang.Exception
protected void doTestSortedVsStoredFields(int numDocs, double density, java.util.function.Supplier<byte[]> bytes) throws java.lang.Exception
java.lang.Exception
public void testSortedFixedLengthVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSparseSortedFixedLengthVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedVariableLengthVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSparseSortedVariableLengthVsStoredFields() throws java.lang.Exception
java.lang.Exception
protected void doTestSortedVsStoredFields(int numDocs, double density, int minLength, int maxLength) throws java.lang.Exception
java.lang.Exception
public void testSortedSetOneValue() throws java.io.IOException
java.io.IOException
public void testSortedSetTwoFields() throws java.io.IOException
java.io.IOException
public void testSortedSetTwoDocumentsMerged() throws java.io.IOException
java.io.IOException
public void testSortedSetTwoValues() throws java.io.IOException
java.io.IOException
public void testSortedSetTwoValuesUnordered() throws java.io.IOException
java.io.IOException
public void testSortedSetThreeValuesTwoDocs() throws java.io.IOException
java.io.IOException
public void testSortedSetTwoDocumentsLastMissing() throws java.io.IOException
java.io.IOException
public void testSortedSetTwoDocumentsLastMissingMerge() throws java.io.IOException
java.io.IOException
public void testSortedSetTwoDocumentsFirstMissing() throws java.io.IOException
java.io.IOException
public void testSortedSetTwoDocumentsFirstMissingMerge() throws java.io.IOException
java.io.IOException
public void testSortedSetMergeAwayAllValues() throws java.io.IOException
java.io.IOException
public void testSortedSetTermsEnum() throws java.io.IOException
java.io.IOException
protected void doTestSortedSetVsStoredFields(int numDocs, int minLength, int maxLength, int maxValuesPerDoc, int maxUniqueValues) throws java.lang.Exception
java.lang.Exception
public void testSortedSetFixedLengthVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedNumericsSingleValuedVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedNumericsSingleValuedMissingVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedNumericsMultipleValuesVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedNumericsFewUniqueSetsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedSetVariableLengthVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedSetFixedLengthSingleValuedVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedSetVariableLengthSingleValuedVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedSetFixedLengthFewUniqueSetsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedSetVariableLengthFewUniqueSetsVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedSetVariableLengthManyValuesPerDocVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testSortedSetFixedLengthManyValuesPerDocVsStoredFields() throws java.lang.Exception
java.lang.Exception
public void testGCDCompression() throws java.lang.Exception
java.lang.Exception
public void testSparseGCDCompression() throws java.lang.Exception
java.lang.Exception
public void testZeros() throws java.lang.Exception
java.lang.Exception
public void testSparseZeros() throws java.lang.Exception
java.lang.Exception
public void testZeroOrMin() throws java.lang.Exception
java.lang.Exception
public void testTwoNumbersOneMissing() throws java.io.IOException
java.io.IOException
public void testTwoNumbersOneMissingWithMerging() throws java.io.IOException
java.io.IOException
public void testThreeNumbersOneMissingWithMerging() throws java.io.IOException
java.io.IOException
public void testTwoBytesOneMissing() throws java.io.IOException
java.io.IOException
public void testTwoBytesOneMissingWithMerging() throws java.io.IOException
java.io.IOException
public void testThreeBytesOneMissingWithMerging() throws java.io.IOException
java.io.IOException
public 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.Exception
public void testEmptyBinaryValueOnPageSizes() throws java.lang.Exception
java.lang.Exception
public void testOneSortedNumber() throws java.io.IOException
java.io.IOException
public void testOneSortedNumberOneMissing() throws java.io.IOException
java.io.IOException
public void testNumberMergeAwayAllValues() throws java.io.IOException
java.io.IOException
public void testTwoSortedNumber() throws java.io.IOException
java.io.IOException
public void testTwoSortedNumberSameValue() throws java.io.IOException
java.io.IOException
public void testTwoSortedNumberOneMissing() throws java.io.IOException
java.io.IOException
public void testSortedNumberMerge() throws java.io.IOException
java.io.IOException
public void testSortedNumberMergeAwayAllValues() throws java.io.IOException
java.io.IOException
public void testSortedEnumAdvanceIndependently() throws java.io.IOException
java.io.IOException
public void testSortedSetEnumAdvanceIndependently() throws java.io.IOException
java.io.IOException
protected void doTestSortedSetEnumAdvanceIndependently(SortedSetDocValues dv) throws java.io.IOException
java.io.IOException
public void testSortedMergeAwayAllValuesLargeSegment() throws java.io.IOException
java.io.IOException
public void testSortedSetMergeAwayAllValuesLargeSegment() throws java.io.IOException
java.io.IOException
public void testNumericMergeAwayAllValuesLargeSegment() throws java.io.IOException
java.io.IOException
public void testSortedNumericMergeAwayAllValuesLargeSegment() throws java.io.IOException
java.io.IOException
public void testBinaryMergeAwayAllValuesLargeSegment() throws java.io.IOException
java.io.IOException
public void testRandomAdvanceNumeric() throws java.io.IOException
java.io.IOException
public void testRandomAdvanceBinary() throws java.io.IOException
java.io.IOException
protected 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.IOException
public void setUp() throws java.lang.Exception
LuceneTestCase
super.setUp()
.setUp
in class LuceneTestCase
java.lang.Exception
public void tearDown() throws java.lang.Exception
LuceneTestCase
super.tearDown()
.tearDown
in class LuceneTestCase
java.lang.Exception
protected java.util.Collection<java.lang.String> excludedExtensionsFromByteCounts()
public void testMergeStability() throws java.lang.Exception
java.lang.Exception
protected boolean mergeIsStable()
@LuceneTestCase.Slow public void testRamBytesUsed() throws java.io.IOException
java.io.IOException
public void testMultiClose() throws java.io.IOException
java.io.IOException
public void testRandomExceptions() throws java.lang.Exception
java.lang.Exception
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.