Class AbstractBytesReferenceTestCase


  • public abstract class AbstractBytesReferenceTestCase
    extends ESTestCase
    • Constructor Detail

      • AbstractBytesReferenceTestCase

        public AbstractBytesReferenceTestCase()
    • Method Detail

      • testGet

        public void testGet()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • testLength

        public void testLength()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • testSlice

        public void testSlice()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • testStreamInput

        public void testStreamInput()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • testStreamInputMarkAndReset

        public void testStreamInputMarkAndReset()
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • testStreamInputBulkReadWithOffset

        public void testStreamInputBulkReadWithOffset()
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • testRandomReads

        public void testRandomReads()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • testSliceStreamInput

        public void testSliceStreamInput()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • testWriteToOutputStream

        public void testWriteToOutputStream()
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • testInputStreamSkip

        public void testInputStreamSkip()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • testSliceWriteToOutputStream

        public void testSliceWriteToOutputStream()
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • testToBytes

        public void testToBytes()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • testToBytesRefSharedPage

        public void testToBytesRefSharedPage()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • testToBytesRefMaterializedPages

        public void testToBytesRefMaterializedPages()
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • testCopyBytesRefSharesBytes

        public void testCopyBytesRefSharesBytes()
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • testSliceCopyBytesRef

        public void testSliceCopyBytesRef()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • testEmptyToBytesRefIterator

        public void testEmptyToBytesRefIterator()
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • testIterator

        public void testIterator()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • testSliceIterator

        public void testSliceIterator()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • testIteratorRandom

        public void testIteratorRandom()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • testArrayOffset

        public void testArrayOffset()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • testSliceArrayOffset

        public void testSliceArrayOffset()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • testToUtf8

        public void testToUtf8()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • testToBytesRef

        public void testToBytesRef()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • testSliceToBytesRef

        public void testSliceToBytesRef()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • testHashCode

        public void testHashCode()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • testEquals

        public void testEquals()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • testSliceEquals

        public void testSliceEquals()
      • newBytesReference

        protected abstract BytesReference newBytesReference​(int length)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • newBytesReferenceWithOffsetOfZero

        protected abstract BytesReference newBytesReferenceWithOffsetOfZero​(int length)
                                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • testCompareTo

        public void testCompareTo()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getSinglePageOrNull

        public static BytesRef getSinglePageOrNull​(BytesReference ref)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • getNumPages

        public static int getNumPages​(BytesReference ref)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • testBasicEquals

        public void testBasicEquals()
      • testGetInt

        public void testGetInt()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • testIndexOf

        public void testIndexOf()
                         throws java.io.IOException
        Throws:
        java.io.IOException