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 getChildNodeLimitedByNonPreferred() {
          // have more than 1 preferred names
          Set<String> preferred = ImmutableSet.of("j:c", "md");
  
          CountingIterable<NodeStateEntry> citr = createList(preferred, asList("/a", "/a/b", "/a/c"));
  
          try (FlatFileStoreIterator fitr = newFlatFileStore(citr.iterator(), preferred)) {
  
              NodeStateEntry a = fitr.next();
              assertEquals("/a", a.getPath());
  
              NodeState aNS = a.getNodeState();
              aNS.getChildNode("j:c");
  
              // Don't read whole tree to conclude that "j:c" doesn't exist (reading /a/b should imply that it doesn't exist)
              assertEquals(1, fitr.getBufferSize());
  
              // read remaining entries to trigger release of resources
              Iterators.size(fitr);
          }
      }
test_case.class_method_signature: FlatFileStoreIteratorTest.getChildNodeLimitedByNonPreferred()
test_case.full_signature: @Test public void getChildNodeLimitedByNonPreferred()
test_case.identifier: getChildNodeLimitedByNonPreferred
test_case.invocations: of createList asList newFlatFileStore iterator next assertEquals getPath getNodeState getChildNode assertEquals getBufferSize size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getChildNodeLimitedByNonPreferred()
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()