test_class.declarator: TEST_FOLDER = new File("target", "test")
test_class.modifier: private static final
test_class.original_string: private static final File TEST_FOLDER = new File("target", "test");
test_class.type: File
test_class.var_name: TEST_FOLDER
test_class.file: oak-run/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/FlatFileStoreIteratorTest.java
test_class.identifier: FlatFileStoreIteratorTest
test_case.body: @Test
      public void simpleTraversal() {
          Set<String> preferred = ImmutableSet.of("jcr:content");
          CountingIterable<NodeStateEntry> citr = createList(preferred, asList("/a", "/a/jcr:content", "/a/jcr:content/metadata",
                  "/a/d", "/e", "/e/e"));
  
          try (FlatFileStoreIterator fitr = newFlatFileStore(citr.iterator(), preferred)) {
              NodeStateEntry a = fitr.next();
              assertEquals("/a", a.getPath());
  
              NodeState ns1 = a.getNodeState().getChildNode("jcr:content");
              assertEquals("/a/jcr:content", ns1.getString("path"));
              assertEquals(1, fitr.getBufferSize());
  
              NodeState ns2 = ns1.getChildNode("metadata");
              assertEquals("/a/jcr:content/metadata", ns2.getString("path"));
              assertEquals(2, fitr.getBufferSize());
  
              NodeStateEntry nse1 = fitr.next();
              assertEquals("/a/jcr:content", nse1.getPath());
  
              NodeStateEntry nse2 = fitr.next();
              assertEquals("/a/jcr:content/metadata", nse2.getPath());
  
              NodeStateEntry nse3 = fitr.next();
              assertEquals("/a/d", nse3.getPath());
              assertEquals(0, nse3.getNodeState().getChildNodeCount(100));
  
              NodeStateEntry nse4 = fitr.next();
              assertEquals("/e", nse4.getPath());
              assertEquals(1, nse4.getNodeState().getChildNodeCount(100));
  
              NodeStateEntry nse5 = fitr.next();
              assertEquals("/e/e", nse5.getPath());
              assertEquals(0, nse5.getNodeState().getChildNodeCount(100));
  
              assertFalse(fitr.hasNext());
          }
      }
test_case.class_method_signature: FlatFileStoreIteratorTest.simpleTraversal()
test_case.full_signature: @Test public void simpleTraversal()
test_case.identifier: simpleTraversal
test_case.invocations: of createList asList newFlatFileStore iterator next assertEquals getPath getChildNode getNodeState assertEquals getString assertEquals getBufferSize getChildNode assertEquals getString assertEquals getBufferSize next assertEquals getPath next assertEquals getPath next assertEquals getPath assertEquals getChildNodeCount getNodeState next assertEquals getPath assertEquals getChildNodeCount getNodeState next assertEquals getPath assertEquals getChildNodeCount getNodeState assertFalse hasNext
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void simpleTraversal()
focal_class.declarator: log = LoggerFactory.getLogger(getClass())
focal_class.modifier: private final
focal_class.original_string: private final Logger log = LoggerFactory.getLogger(getClass());
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: baseItr
focal_class.modifier: private final
focal_class.original_string: private final Iterator<NodeStateEntry> baseItr;
focal_class.type: Iterator<NodeStateEntry>
focal_class.var_name: baseItr
focal_class.declarator: buffer
focal_class.modifier: private final
focal_class.original_string: private final NodeStateEntryList buffer;
focal_class.type: NodeStateEntryList
focal_class.var_name: buffer
focal_class.declarator: current
focal_class.modifier: private
focal_class.original_string: private NodeStateEntry current;
focal_class.type: NodeStateEntry
focal_class.var_name: current
focal_class.declarator: preferredPathElements
focal_class.modifier: private final
focal_class.original_string: private final Set<String> preferredPathElements;
focal_class.type: Set<String>
focal_class.var_name: preferredPathElements
focal_class.declarator: maxBufferSize
focal_class.modifier: private
focal_class.original_string: private int maxBufferSize;
focal_class.type: int
focal_class.var_name: maxBufferSize
focal_class.declarator: BUFFER_MEM_LIMIT_CONFIG_NAME = "oak.indexer.memLimitInMB"
focal_class.modifier: static final
focal_class.original_string: static final String BUFFER_MEM_LIMIT_CONFIG_NAME = "oak.indexer.memLimitInMB";
focal_class.type: String
focal_class.var_name: BUFFER_MEM_LIMIT_CONFIG_NAME
focal_class.declarator: DEFAULT_BUFFER_MEM_LIMIT_IN_MB = 0
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_BUFFER_MEM_LIMIT_IN_MB = 0;
focal_class.type: int
focal_class.var_name: DEFAULT_BUFFER_MEM_LIMIT_IN_MB
focal_class.file: oak-run/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/FlatFileStoreIterator.java
focal_class.identifier: FlatFileStoreIterator
focal_class.interfaces: implements Iterator<NodeStateEntry>, Closeable
focal_class.class_method_signature: FlatFileStoreIterator.FlatFileStoreIterator(BlobStore blobStore, String fileName, Iterator<NodeStateEntry> baseItr, Set<String> preferredPathElements)
focal_class.full_signature: public  FlatFileStoreIterator(BlobStore blobStore, String fileName, Iterator<NodeStateEntry> baseItr, Set<String> preferredPathElements)
focal_class.identifier: FlatFileStoreIterator
focal_class.modifiers: public
focal_class.parameters: (BlobStore blobStore, String fileName, Iterator<NodeStateEntry> baseItr, Set<String> preferredPathElements)
focal_class.signature:  FlatFileStoreIterator(BlobStore blobStore, String fileName, Iterator<NodeStateEntry> baseItr, Set<String> preferredPathElements)
focal_class.class_method_signature: FlatFileStoreIterator.FlatFileStoreIterator(BlobStore blobStore, String fileName, Iterator<NodeStateEntry> baseItr, Set<String> preferredPathElements, int memLimitConfig)
focal_class.full_signature: public  FlatFileStoreIterator(BlobStore blobStore, String fileName, Iterator<NodeStateEntry> baseItr, Set<String> preferredPathElements, int memLimitConfig)
focal_class.identifier: FlatFileStoreIterator
focal_class.modifiers: public
focal_class.parameters: (BlobStore blobStore, String fileName, Iterator<NodeStateEntry> baseItr, Set<String> preferredPathElements, int memLimitConfig)
focal_class.signature:  FlatFileStoreIterator(BlobStore blobStore, String fileName, Iterator<NodeStateEntry> baseItr, Set<String> preferredPathElements, int memLimitConfig)
focal_class.class_method_signature: FlatFileStoreIterator.getBufferSize()
focal_class.full_signature:  int getBufferSize()
focal_class.identifier: getBufferSize
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getBufferSize()
focal_class.class_method_signature: FlatFileStoreIterator.getBufferMemoryUsage()
focal_class.full_signature:  long getBufferMemoryUsage()
focal_class.identifier: getBufferMemoryUsage
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getBufferMemoryUsage()
focal_class.class_method_signature: FlatFileStoreIterator.computeNext()
focal_class.full_signature: @Override protected NodeStateEntry computeNext()
focal_class.identifier: computeNext
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: NodeStateEntry
focal_class.signature: NodeStateEntry computeNext()
focal_class.class_method_signature: FlatFileStoreIterator.computeNextEntry()
focal_class.full_signature: private NodeStateEntry computeNextEntry()
focal_class.identifier: computeNextEntry
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: NodeStateEntry
focal_class.signature: NodeStateEntry computeNextEntry()
focal_class.class_method_signature: FlatFileStoreIterator.wrap(NodeStateEntry baseEntry)
focal_class.full_signature: private NodeStateEntry wrap(NodeStateEntry baseEntry)
focal_class.identifier: wrap
focal_class.modifiers: private
focal_class.parameters: (NodeStateEntry baseEntry)
focal_class.return: NodeStateEntry
focal_class.signature: NodeStateEntry wrap(NodeStateEntry baseEntry)
focal_class.class_method_signature: FlatFileStoreIterator.getEntries()
focal_class.full_signature: private Iterable<NodeStateEntry> getEntries()
focal_class.identifier: getEntries
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Iterable<NodeStateEntry>
focal_class.signature: Iterable<NodeStateEntry> getEntries()
focal_class.class_method_signature: FlatFileStoreIterator.queueIterator()
focal_class.full_signature: private Iterator<NodeStateEntry> queueIterator()
focal_class.identifier: queueIterator
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Iterator<NodeStateEntry>
focal_class.signature: Iterator<NodeStateEntry> queueIterator()
focal_class.class_method_signature: FlatFileStoreIterator.wrapIfNeeded(NodeStateEntry e)
focal_class.full_signature: private NodeStateEntry wrapIfNeeded(NodeStateEntry e)
focal_class.identifier: wrapIfNeeded
focal_class.modifiers: private
focal_class.parameters: (NodeStateEntry e)
focal_class.return: NodeStateEntry
focal_class.signature: NodeStateEntry wrapIfNeeded(NodeStateEntry e)
focal_class.class_method_signature: FlatFileStoreIterator.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.superclass: extends AbstractIterator<NodeStateEntry>
focal_method.body: int getBufferSize(){
          return buffer.size();
      }
focal_method.class_method_signature: FlatFileStoreIterator.getBufferSize()
focal_method.full_signature:  int getBufferSize()
focal_method.identifier: getBufferSize
focal_method.invocations: size
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int getBufferSize()