DefaultSegmentWriter implements SegmentWriter { @NotNull RecordId writeList(@NotNull final List<RecordId> list) throws IOException { return new SegmentWriteOperation(writeOperationHandler.getGCGeneration()) .writeList(list); } DefaultSegmentWriter(
            @NotNull SegmentStore store,
            @NotNull SegmentReader reader,
            @NotNull SegmentIdProvider idProvider,
            @Nullable BlobStore blobStore,
            @NotNull WriterCacheManager cacheManager,
            @NotNull WriteOperationHandler writeOperationHandler
    ); @Override void flush(); @Override @NotNull RecordId writeBlob(@NotNull final Blob blob); @Override @NotNull RecordId writeStream(@NotNull final InputStream stream); @Override @NotNull RecordId writeNode(@NotNull final NodeState state, @Nullable final Buffer stableIdBytes);  }
@Test public void testListWithLotsOfReferences() throws IOException { List<RecordId> list = newArrayList(); for (int i = 0; i < 1000; i++) { list.add(new RecordId(store.fileStore().getSegmentIdProvider().newBulkSegmentId(), 0)); } writer.writeList(list); }