test_class.declarator: folder = new TemporaryFolder(new File("target"))
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public TemporaryFolder folder = new TemporaryFolder(new File("target"));
test_class.type: TemporaryFolder
test_class.var_name: folder
test_class.file: oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/file/FileStoreTest.java
test_class.identifier: FileStoreTest
test_case.body: @Test
      public void containsSegment() throws Exception {
          FileStore fileStore = fileStoreBuilder(getFileStoreFolder()).build();
          try {
              SegmentId id = new SegmentId(fileStore, 0, 0);
              if (fileStore.containsSegment(id)) {
                  fileStore.readSegment(id);
              }
          } finally {
              fileStore.close();
          }
      }
test_case.class_method_signature: FileStoreTest.containsSegment()
test_case.full_signature: @Test public void containsSegment()
test_case.identifier: containsSegment
test_case.invocations: build fileStoreBuilder getFileStoreFolder containsSegment readSegment close
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void containsSegment()
focal_class.declarator: log = LoggerFactory.getLogger(FileStore.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(FileStore.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: MB = 1024 * 1024
focal_class.modifier: private static final
focal_class.original_string: private static final int MB = 1024 * 1024;
focal_class.type: int
focal_class.var_name: MB
focal_class.declarator: TAR_READER_COUNT = "TAR_READER_COUNT"
focal_class.modifier: private static final
focal_class.original_string: private static final String TAR_READER_COUNT = "TAR_READER_COUNT";
focal_class.type: String
focal_class.var_name: TAR_READER_COUNT
focal_class.declarator: SEGMENT_COUNT = "SEGMENT_COUNT"
focal_class.modifier: private static final
focal_class.original_string: private static final String SEGMENT_COUNT = "SEGMENT_COUNT";
focal_class.type: String
focal_class.var_name: SEGMENT_COUNT
focal_class.declarator: segmentWriter
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final SegmentWriter segmentWriter;
focal_class.type: SegmentWriter
focal_class.var_name: segmentWriter
focal_class.declarator: garbageCollector
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final GarbageCollector garbageCollector;
focal_class.type: GarbageCollector
focal_class.var_name: garbageCollector
focal_class.declarator: tarFiles
focal_class.modifier: private final
focal_class.original_string: private final TarFiles tarFiles;
focal_class.type: TarFiles
focal_class.var_name: tarFiles
focal_class.declarator: repositoryLock
focal_class.modifier: private final
focal_class.original_string: private final RepositoryLock repositoryLock;
focal_class.type: RepositoryLock
focal_class.var_name: repositoryLock
focal_class.declarator: revisions
focal_class.modifier: private volatile
focal_class.original_string: private volatile TarRevisions revisions;
focal_class.type: TarRevisions
focal_class.var_name: revisions
focal_class.declarator: fileStoreScheduler = new Scheduler("FileStore background tasks")
focal_class.modifier: private final
focal_class.original_string: private final Scheduler fileStoreScheduler = new Scheduler("FileStore background tasks");
focal_class.type: Scheduler
focal_class.var_name: fileStoreScheduler
focal_class.declarator: fileReaper
focal_class.modifier: private final
focal_class.original_string: private final FileReaper fileReaper;
focal_class.type: FileReaper
focal_class.var_name: fileReaper
focal_class.declarator: sufficientDiskSpace = new AtomicBoolean(true)
focal_class.modifier: private final
focal_class.original_string: private final AtomicBoolean sufficientDiskSpace = new AtomicBoolean(true);
focal_class.type: AtomicBoolean
focal_class.var_name: sufficientDiskSpace
focal_class.declarator: sufficientMemory = new AtomicBoolean(true)
focal_class.modifier: private final
focal_class.original_string: private final AtomicBoolean sufficientMemory = new AtomicBoolean(true);
focal_class.type: AtomicBoolean
focal_class.var_name: sufficientMemory
focal_class.declarator: stats
focal_class.modifier: private final
focal_class.original_string: private final FileStoreStats stats;
focal_class.type: FileStoreStats
focal_class.var_name: stats
focal_class.declarator: shutDown = new ShutDown()
focal_class.modifier: private final
focal_class.original_string: private final ShutDown shutDown = new ShutDown();
focal_class.type: ShutDown
focal_class.var_name: shutDown
focal_class.declarator: snfeListener
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final SegmentNotFoundExceptionListener snfeListener;
focal_class.type: SegmentNotFoundExceptionListener
focal_class.var_name: snfeListener
focal_class.declarator: garbageCollectionStrategy = newGarbageCollectionStrategy()
focal_class.modifier: private final
focal_class.original_string: private final GarbageCollectionStrategy garbageCollectionStrategy = newGarbageCollectionStrategy();
focal_class.type: GarbageCollectionStrategy
focal_class.var_name: garbageCollectionStrategy
focal_class.declarator: eagerSegmentCaching
focal_class.modifier: private final
focal_class.original_string: private final boolean eagerSegmentCaching;
focal_class.type: boolean
focal_class.var_name: eagerSegmentCaching
focal_class.file: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/FileStore.java
focal_class.identifier: FileStore
focal_class.class_method_signature: FileStore.newGarbageCollectionStrategy()
focal_class.full_signature: private static GarbageCollectionStrategy newGarbageCollectionStrategy()
focal_class.identifier: newGarbageCollectionStrategy
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: GarbageCollectionStrategy
focal_class.signature: GarbageCollectionStrategy newGarbageCollectionStrategy()
focal_class.class_method_signature: FileStore.FileStore(final FileStoreBuilder builder)
focal_class.full_signature:   FileStore(final FileStoreBuilder builder)
focal_class.identifier: FileStore
focal_class.parameters: (final FileStoreBuilder builder)
focal_class.signature:  FileStore(final FileStoreBuilder builder)
focal_class.class_method_signature: FileStore.bind(TarRevisions revisions)
focal_class.full_signature:  FileStore bind(TarRevisions revisions)
focal_class.identifier: bind
focal_class.parameters: (TarRevisions revisions)
focal_class.return: FileStore
focal_class.signature: FileStore bind(TarRevisions revisions)
focal_class.class_method_signature: FileStore.initialNode()
focal_class.full_signature: @NotNull private Supplier<RecordId> initialNode()
focal_class.identifier: initialNode
focal_class.modifiers: @NotNull private
focal_class.parameters: ()
focal_class.return: Supplier<RecordId>
focal_class.signature: Supplier<RecordId> initialNode()
focal_class.class_method_signature: FileStore.getGcGeneration()
focal_class.full_signature: @NotNull private GCGeneration getGcGeneration()
focal_class.identifier: getGcGeneration
focal_class.modifiers: @NotNull private
focal_class.parameters: ()
focal_class.return: GCGeneration
focal_class.signature: GCGeneration getGcGeneration()
focal_class.class_method_signature: FileStore.getGCRunner()
focal_class.full_signature: public Runnable getGCRunner()
focal_class.identifier: getGCRunner
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Runnable
focal_class.signature: Runnable getGCRunner()
focal_class.class_method_signature: FileStore.getGCNodeWriteMonitor()
focal_class.full_signature: public GCNodeWriteMonitor getGCNodeWriteMonitor()
focal_class.identifier: getGCNodeWriteMonitor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: GCNodeWriteMonitor
focal_class.signature: GCNodeWriteMonitor getGCNodeWriteMonitor()
focal_class.class_method_signature: FileStore.size()
focal_class.full_signature: private long size()
focal_class.identifier: size
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long size()
focal_class.class_method_signature: FileStore.readerCount()
focal_class.full_signature: public int readerCount()
focal_class.identifier: readerCount
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int readerCount()
focal_class.class_method_signature: FileStore.getSegmentCount()
focal_class.full_signature: public int getSegmentCount()
focal_class.identifier: getSegmentCount
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getSegmentCount()
focal_class.class_method_signature: FileStore.getStats()
focal_class.full_signature: public FileStoreStats getStats()
focal_class.identifier: getStats
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: FileStoreStats
focal_class.signature: FileStoreStats getStats()
focal_class.class_method_signature: FileStore.doFlush()
focal_class.full_signature: private void doFlush()
focal_class.identifier: doFlush
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void doFlush()
focal_class.class_method_signature: FileStore.flush()
focal_class.full_signature: public void flush()
focal_class.identifier: flush
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flush()
focal_class.class_method_signature: FileStore.tryFlush()
focal_class.full_signature: public void tryFlush()
focal_class.identifier: tryFlush
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void tryFlush()
focal_class.class_method_signature: FileStore.fullGC()
focal_class.full_signature: public void fullGC()
focal_class.identifier: fullGC
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void fullGC()
focal_class.class_method_signature: FileStore.tailGC()
focal_class.full_signature: public void tailGC()
focal_class.identifier: tailGC
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void tailGC()
focal_class.class_method_signature: FileStore.compactFull()
focal_class.full_signature: public boolean compactFull()
focal_class.identifier: compactFull
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean compactFull()
focal_class.class_method_signature: FileStore.compactTail()
focal_class.full_signature: public boolean compactTail()
focal_class.identifier: compactTail
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean compactTail()
focal_class.class_method_signature: FileStore.cleanup()
focal_class.full_signature: public void cleanup()
focal_class.identifier: cleanup
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void cleanup()
focal_class.class_method_signature: FileStore.collectBlobReferences(Consumer<String> collector)
focal_class.full_signature: @Override public void collectBlobReferences(Consumer<String> collector)
focal_class.identifier: collectBlobReferences
focal_class.modifiers: @Override public
focal_class.parameters: (Consumer<String> collector)
focal_class.return: void
focal_class.signature: void collectBlobReferences(Consumer<String> collector)
focal_class.class_method_signature: FileStore.cancelGC()
focal_class.full_signature: public void cancelGC()
focal_class.identifier: cancelGC
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void cancelGC()
focal_class.class_method_signature: FileStore.getWriter()
focal_class.full_signature: @Override @NotNull public SegmentWriter getWriter()
focal_class.identifier: getWriter
focal_class.modifiers: @Override @NotNull public
focal_class.parameters: ()
focal_class.return: SegmentWriter
focal_class.signature: SegmentWriter getWriter()
focal_class.class_method_signature: FileStore.getRevisions()
focal_class.full_signature: @Override @NotNull public TarRevisions getRevisions()
focal_class.identifier: getRevisions
focal_class.modifiers: @Override @NotNull public
focal_class.parameters: ()
focal_class.return: TarRevisions
focal_class.signature: TarRevisions getRevisions()
focal_class.class_method_signature: FileStore.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: FileStore.containsSegment(SegmentId id)
focal_class.full_signature: @Override public boolean containsSegment(SegmentId id)
focal_class.identifier: containsSegment
focal_class.modifiers: @Override public
focal_class.parameters: (SegmentId id)
focal_class.return: boolean
focal_class.signature: boolean containsSegment(SegmentId id)
focal_class.class_method_signature: FileStore.readSegment(final SegmentId id)
focal_class.full_signature: @Override @NotNull public Segment readSegment(final SegmentId id)
focal_class.identifier: readSegment
focal_class.modifiers: @Override @NotNull public
focal_class.parameters: (final SegmentId id)
focal_class.return: Segment
focal_class.signature: Segment readSegment(final SegmentId id)
focal_class.class_method_signature: FileStore.writeSegment(SegmentId id, byte[] buffer, int offset, int length)
focal_class.full_signature: @Override public void writeSegment(SegmentId id, byte[] buffer, int offset, int length)
focal_class.identifier: writeSegment
focal_class.modifiers: @Override public
focal_class.parameters: (SegmentId id, byte[] buffer, int offset, int length)
focal_class.return: void
focal_class.signature: void writeSegment(SegmentId id, byte[] buffer, int offset, int length)
focal_class.class_method_signature: FileStore.checkDiskSpace(SegmentGCOptions gcOptions)
focal_class.full_signature: private void checkDiskSpace(SegmentGCOptions gcOptions)
focal_class.identifier: checkDiskSpace
focal_class.modifiers: private
focal_class.parameters: (SegmentGCOptions gcOptions)
focal_class.return: void
focal_class.signature: void checkDiskSpace(SegmentGCOptions gcOptions)
focal_class.superclass: extends AbstractFileStore
focal_method.body: @Override
      public boolean containsSegment(SegmentId id) {
          try (ShutDownCloser ignored = shutDown.keepAlive()) {
              return tarFiles.containsSegment(id.getMostSignificantBits(), id.getLeastSignificantBits());
          }
      }
focal_method.class_method_signature: FileStore.containsSegment(SegmentId id)
focal_method.full_signature: @Override public boolean containsSegment(SegmentId id)
focal_method.identifier: containsSegment
focal_method.invocations: keepAlive containsSegment getMostSignificantBits getLeastSignificantBits
focal_method.modifiers: @Override public
focal_method.parameters: (SegmentId id)
focal_method.return: boolean
focal_method.signature: boolean containsSegment(SegmentId id)