test_class.declarator: HELLO_WORLD = "Hello, World!"
test_class.modifier: private static final
test_class.original_string: private static final String HELLO_WORLD = "Hello, World!";
test_class.type: String
test_class.var_name: HELLO_WORLD
test_class.declarator: bytes = HELLO_WORLD.getBytes(Charsets.UTF_8)
test_class.modifier: private final
test_class.original_string: private final byte[] bytes = HELLO_WORLD.getBytes(Charsets.UTF_8);
test_class.type: byte[]
test_class.var_name: bytes
test_class.declarator: folder = new TemporaryFolder(new File("target"))
test_class.modifier: private
test_class.original_string: private TemporaryFolder folder = new TemporaryFolder(new File("target"));
test_class.type: TemporaryFolder
test_class.var_name: folder
test_class.declarator: store = new TemporaryFileStore(folder, false)
test_class.modifier: private
test_class.original_string: private TemporaryFileStore store = new TemporaryFileStore(folder, false);
test_class.type: TemporaryFileStore
test_class.var_name: store
test_class.declarator: rules = RuleChain.outerRule(folder).around(store)
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public RuleChain rules = RuleChain.outerRule(folder).around(store);
test_class.type: RuleChain
test_class.var_name: rules
test_class.declarator: writer
test_class.modifier: private
test_class.original_string: private DefaultSegmentWriter writer;
test_class.type: DefaultSegmentWriter
test_class.var_name: writer
test_class.file: oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/DefaultSegmentWriterTest.java
test_class.identifier: DefaultSegmentWriterTest
test_case.body: @Test
      public void testListWithLotsOfReferences() throws IOException { // OAK-1184
          List<RecordId> list = newArrayList();
          for (int i = 0; i < 1000; i++) {
              list.add(new RecordId(store.fileStore().getSegmentIdProvider().newBulkSegmentId(), 0));
          }
          writer.writeList(list);
      }
test_case.class_method_signature: DefaultSegmentWriterTest.testListWithLotsOfReferences()
test_case.full_signature: @Test public void testListWithLotsOfReferences()
test_case.identifier: testListWithLotsOfReferences
test_case.invocations: newArrayList add newBulkSegmentId getSegmentIdProvider fileStore writeList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testListWithLotsOfReferences()
focal_class.declarator: LOG = LoggerFactory.getLogger(DefaultSegmentWriter.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(DefaultSegmentWriter.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: CHILD_NODE_UPDATE_LIMIT = Integer
              .getInteger("child.node.update.limit", 10000)
focal_class.modifier: private static final
focal_class.original_string: private static final int CHILD_NODE_UPDATE_LIMIT = Integer
              .getInteger("child.node.update.limit", 10000);
focal_class.type: int
focal_class.var_name: CHILD_NODE_UPDATE_LIMIT
focal_class.declarator: MAX_MAP_RECORD_SIZE_KEY = "oak.segmentNodeStore.maxMapRecordSize"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String MAX_MAP_RECORD_SIZE_KEY = "oak.segmentNodeStore.maxMapRecordSize";
focal_class.type: String
focal_class.var_name: MAX_MAP_RECORD_SIZE_KEY
focal_class.declarator: cacheManager
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final WriterCacheManager cacheManager;
focal_class.type: WriterCacheManager
focal_class.var_name: cacheManager
focal_class.declarator: store
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final SegmentStore store;
focal_class.type: SegmentStore
focal_class.var_name: store
focal_class.declarator: reader
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final SegmentReader reader;
focal_class.type: SegmentReader
focal_class.var_name: reader
focal_class.declarator: idProvider
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final SegmentIdProvider idProvider;
focal_class.type: SegmentIdProvider
focal_class.var_name: idProvider
focal_class.declarator: blobStore
focal_class.modifier: @Nullable
      private final
focal_class.original_string: @Nullable
      private final BlobStore blobStore;
focal_class.type: BlobStore
focal_class.var_name: blobStore
focal_class.declarator: writeOperationHandler
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final WriteOperationHandler writeOperationHandler;
focal_class.type: WriteOperationHandler
focal_class.var_name: writeOperationHandler
focal_class.file: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/DefaultSegmentWriter.java
focal_class.identifier: DefaultSegmentWriter
focal_class.interfaces: implements SegmentWriter
focal_class.class_method_signature: DefaultSegmentWriter.DefaultSegmentWriter(
              @NotNull SegmentStore store,
              @NotNull SegmentReader reader,
              @NotNull SegmentIdProvider idProvider,
              @Nullable BlobStore blobStore,
              @NotNull WriterCacheManager cacheManager,
              @NotNull WriteOperationHandler writeOperationHandler
      )
focal_class.full_signature: public  DefaultSegmentWriter(
              @NotNull SegmentStore store,
              @NotNull SegmentReader reader,
              @NotNull SegmentIdProvider idProvider,
              @Nullable BlobStore blobStore,
              @NotNull WriterCacheManager cacheManager,
              @NotNull WriteOperationHandler writeOperationHandler
      )
focal_class.identifier: DefaultSegmentWriter
focal_class.modifiers: public
focal_class.parameters: (
              @NotNull SegmentStore store,
              @NotNull SegmentReader reader,
              @NotNull SegmentIdProvider idProvider,
              @Nullable BlobStore blobStore,
              @NotNull WriterCacheManager cacheManager,
              @NotNull WriteOperationHandler writeOperationHandler
      )
focal_class.signature:  DefaultSegmentWriter(
              @NotNull SegmentStore store,
              @NotNull SegmentReader reader,
              @NotNull SegmentIdProvider idProvider,
              @Nullable BlobStore blobStore,
              @NotNull WriterCacheManager cacheManager,
              @NotNull WriteOperationHandler writeOperationHandler
      )
focal_class.class_method_signature: DefaultSegmentWriter.flush()
focal_class.full_signature: @Override public void flush()
focal_class.identifier: flush
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flush()
focal_class.class_method_signature: DefaultSegmentWriter.writeMap(@Nullable final MapRecord base, @NotNull final Map<String, RecordId> changes)
focal_class.full_signature: @NotNull RecordId writeMap(@Nullable final MapRecord base, @NotNull final Map<String, RecordId> changes)
focal_class.identifier: writeMap
focal_class.modifiers: @NotNull
focal_class.parameters: (@Nullable final MapRecord base, @NotNull final Map<String, RecordId> changes)
focal_class.return: RecordId
focal_class.signature: RecordId writeMap(@Nullable final MapRecord base, @NotNull final Map<String, RecordId> changes)
focal_class.class_method_signature: DefaultSegmentWriter.writeList(@NotNull final List<RecordId> list)
focal_class.full_signature: @NotNull RecordId writeList(@NotNull final List<RecordId> list)
focal_class.identifier: writeList
focal_class.modifiers: @NotNull
focal_class.parameters: (@NotNull final List<RecordId> list)
focal_class.return: RecordId
focal_class.signature: RecordId writeList(@NotNull final List<RecordId> list)
focal_class.class_method_signature: DefaultSegmentWriter.writeString(@NotNull final String string)
focal_class.full_signature: @NotNull RecordId writeString(@NotNull final String string)
focal_class.identifier: writeString
focal_class.modifiers: @NotNull
focal_class.parameters: (@NotNull final String string)
focal_class.return: RecordId
focal_class.signature: RecordId writeString(@NotNull final String string)
focal_class.class_method_signature: DefaultSegmentWriter.writeBlob(@NotNull final Blob blob)
focal_class.full_signature: @Override @NotNull public RecordId writeBlob(@NotNull final Blob blob)
focal_class.identifier: writeBlob
focal_class.modifiers: @Override @NotNull public
focal_class.parameters: (@NotNull final Blob blob)
focal_class.return: RecordId
focal_class.signature: RecordId writeBlob(@NotNull final Blob blob)
focal_class.class_method_signature: DefaultSegmentWriter.writeBlock(@NotNull final byte[] bytes, final int offset, final int length)
focal_class.full_signature: @NotNull RecordId writeBlock(@NotNull final byte[] bytes, final int offset, final int length)
focal_class.identifier: writeBlock
focal_class.modifiers: @NotNull
focal_class.parameters: (@NotNull final byte[] bytes, final int offset, final int length)
focal_class.return: RecordId
focal_class.signature: RecordId writeBlock(@NotNull final byte[] bytes, final int offset, final int length)
focal_class.class_method_signature: DefaultSegmentWriter.writeStream(@NotNull final InputStream stream)
focal_class.full_signature: @Override @NotNull public RecordId writeStream(@NotNull final InputStream stream)
focal_class.identifier: writeStream
focal_class.modifiers: @Override @NotNull public
focal_class.parameters: (@NotNull final InputStream stream)
focal_class.return: RecordId
focal_class.signature: RecordId writeStream(@NotNull final InputStream stream)
focal_class.class_method_signature: DefaultSegmentWriter.writeProperty(@NotNull final PropertyState state)
focal_class.full_signature: @NotNull RecordId writeProperty(@NotNull final PropertyState state)
focal_class.identifier: writeProperty
focal_class.modifiers: @NotNull
focal_class.parameters: (@NotNull final PropertyState state)
focal_class.return: RecordId
focal_class.signature: RecordId writeProperty(@NotNull final PropertyState state)
focal_class.class_method_signature: DefaultSegmentWriter.writeNode(@NotNull final NodeState state, @Nullable final Buffer stableIdBytes)
focal_class.full_signature: @Override @NotNull public RecordId writeNode(@NotNull final NodeState state, @Nullable final Buffer stableIdBytes)
focal_class.identifier: writeNode
focal_class.modifiers: @Override @NotNull public
focal_class.parameters: (@NotNull final NodeState state, @Nullable final Buffer stableIdBytes)
focal_class.return: RecordId
focal_class.signature: RecordId writeNode(@NotNull final NodeState state, @Nullable final Buffer stableIdBytes)
focal_method.body: @NotNull
      RecordId writeList(@NotNull final List<RecordId> list) throws IOException {
          return new SegmentWriteOperation(writeOperationHandler.getGCGeneration())
                  .writeList(list);
      }
focal_method.class_method_signature: DefaultSegmentWriter.writeList(@NotNull final List<RecordId> list)
focal_method.full_signature: @NotNull RecordId writeList(@NotNull final List<RecordId> list)
focal_method.identifier: writeList
focal_method.invocations: writeList getGCGeneration
focal_method.modifiers: @NotNull
focal_method.parameters: (@NotNull final List<RecordId> list)
focal_method.return: RecordId
focal_method.signature: RecordId writeList(@NotNull final List<RecordId> list)