Class OpenSearchIndexInputTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.opensearch.test.OpenSearchTestCase
org.opensearch.common.lucene.store.OpenSearchIndexInputTestCase

public class OpenSearchIndexInputTestCase extends OpenSearchTestCase
Test harness for verifying IndexInput implementations.
  • Constructor Details

    • OpenSearchIndexInputTestCase

      public OpenSearchIndexInputTestCase()
  • Method Details

    • createExecutor

      public static void createExecutor()
    • destroyExecutor

      public static void destroyExecutor()
    • randomReadAndSlice

      protected byte[] randomReadAndSlice(org.apache.lucene.store.IndexInput indexInput, int length) throws IOException
      Reads the contents of an IndexInput from indexInput.getFilePointer() to length using a wide variety of different access methods. Returns an array of length length containing the bytes that were read starting at index indexInput.getFilePointer(). The bytes of the returned array with indices below the initial value of indexInput.getFilePointer() may contain anything. The final value of indexInput.getFilePointer() is length.
      Throws:
      IOException