test_class.file: oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/file/tar/index/IndexLoaderTest.java
test_class.identifier: IndexLoaderTest
test_case.body: @Test
      public void testLoadIndexV1() throws Exception {
          Buffer buffer = Buffer.allocate(2 * IndexEntryV1.SIZE + IndexV1.FOOTER_SIZE);
          buffer.duplicate()
                  .putLong(1).putLong(2).putInt(3).putInt(4).putInt(5)
                  .putLong(6).putLong(7).putInt(8).putInt(9).putInt(10)
                  .putInt(0x3F5F40E9)
                  .putInt(2)
                  .putInt(2 * IndexEntryV1.SIZE + IndexV1.FOOTER_SIZE)
                  .putInt(IndexLoaderV1.MAGIC);
          Index index = loadIndex(buffer);
          assertNotNull(index);
          assertEquals(2, index.count());
          assertEntry(index.entry(0), 1, 2, 3, 4, 5, 5, true);
          assertEntry(index.entry(1), 6, 7, 8, 9, 10, 10, true);
      }
test_case.class_method_signature: IndexLoaderTest.testLoadIndexV1()
test_case.full_signature: @Test public void testLoadIndexV1()
test_case.identifier: testLoadIndexV1
test_case.invocations: allocate putInt putInt putInt putInt putInt putInt putInt putLong putLong putInt putInt putInt putLong putLong duplicate loadIndex assertNotNull assertEquals count assertEntry entry assertEntry entry
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLoadIndexV1()
focal_class.declarator: v1
focal_class.modifier: private final
focal_class.original_string: private final IndexLoaderV1 v1;
focal_class.type: IndexLoaderV1
focal_class.var_name: v1
focal_class.declarator: v2
focal_class.modifier: private final
focal_class.original_string: private final IndexLoaderV2 v2;
focal_class.type: IndexLoaderV2
focal_class.var_name: v2
focal_class.file: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/index/IndexLoader.java
focal_class.identifier: IndexLoader
focal_class.class_method_signature: IndexLoader.newIndexLoader(int blockSize)
focal_class.full_signature: public static IndexLoader newIndexLoader(int blockSize)
focal_class.identifier: newIndexLoader
focal_class.modifiers: public static
focal_class.parameters: (int blockSize)
focal_class.return: IndexLoader
focal_class.signature: IndexLoader newIndexLoader(int blockSize)
focal_class.class_method_signature: IndexLoader.IndexLoader(int blockSize)
focal_class.full_signature: private  IndexLoader(int blockSize)
focal_class.identifier: IndexLoader
focal_class.modifiers: private
focal_class.parameters: (int blockSize)
focal_class.signature:  IndexLoader(int blockSize)
focal_class.class_method_signature: IndexLoader.readMagic(ReaderAtEnd reader)
focal_class.full_signature: private static int readMagic(ReaderAtEnd reader)
focal_class.identifier: readMagic
focal_class.modifiers: private static
focal_class.parameters: (ReaderAtEnd reader)
focal_class.return: int
focal_class.signature: int readMagic(ReaderAtEnd reader)
focal_class.class_method_signature: IndexLoader.loadIndex(ReaderAtEnd reader)
focal_class.full_signature: public Index loadIndex(ReaderAtEnd reader)
focal_class.identifier: loadIndex
focal_class.modifiers: public
focal_class.parameters: (ReaderAtEnd reader)
focal_class.return: Index
focal_class.signature: Index loadIndex(ReaderAtEnd reader)
focal_method.body: public Index loadIndex(ReaderAtEnd reader) throws IOException, InvalidIndexException {
          switch (readMagic(reader)) {
              case IndexLoaderV1.MAGIC:
                  return v1.loadIndex(reader);
              case IndexLoaderV2.MAGIC:
                  return v2.loadIndex(reader);
              default:
                  throw new InvalidIndexException("Unrecognized magic number");
          }
      }
focal_method.class_method_signature: IndexLoader.loadIndex(ReaderAtEnd reader)
focal_method.full_signature: public Index loadIndex(ReaderAtEnd reader)
focal_method.identifier: loadIndex
focal_method.invocations: readMagic loadIndex loadIndex
focal_method.modifiers: public
focal_method.parameters: (ReaderAtEnd reader)
focal_method.return: Index
focal_method.signature: Index loadIndex(ReaderAtEnd reader)