test_class.file: suite/tinytables/src/test/java/dk/alexandra/fresco/suite/tinytables/storage/TestBatchTinyTablesTripleProvider.java
test_class.identifier: TestBatchTinyTablesTripleProvider
test_case.body: @Test
    public void testNextTriple() {
      TinyTablesTripleGenerator fac = new TinyTablesTripleGenerator(0, null, null) {
  
        @Override
        public List<TinyTablesTriple> generate(int amount) {
          List<TinyTablesTriple> triples = new ArrayList<>();
          for (int i = 0; i < amount; i++) {
            triples.add(TinyTablesTriple.fromShares(true, true, true));
          }
          return triples;
        }
      };
      BatchTinyTablesTripleProvider gen = new BatchTinyTablesTripleProvider(fac, 10);
      for (int i = 0; i < 20; i++) {
        assertThat(gen.getNextTriple(), is(TinyTablesTriple.fromShares(true, true, true)));
      }
    }
test_case.class_method_signature: TestBatchTinyTablesTripleProvider.testNextTriple()
test_case.full_signature: @Test public void testNextTriple()
test_case.identifier: testNextTriple
test_case.invocations: add fromShares assertThat getNextTriple is fromShares
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNextTriple()
focal_class.declarator: logger = LoggerFactory.getLogger(BatchTinyTablesTripleProvider.class)
focal_class.modifier: private final static
focal_class.original_string: private final static Logger logger = LoggerFactory.getLogger(BatchTinyTablesTripleProvider.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: triples = new ConcurrentLinkedQueue<>()
focal_class.modifier: private
focal_class.original_string: private Queue<TinyTablesTriple> triples = new ConcurrentLinkedQueue<>();
focal_class.type: Queue<TinyTablesTriple>
focal_class.var_name: triples
focal_class.declarator: generator
focal_class.modifier: private
focal_class.original_string: private TinyTablesTripleGenerator generator;
focal_class.type: TinyTablesTripleGenerator
focal_class.var_name: generator
focal_class.declarator: batchSize
focal_class.modifier: private
focal_class.original_string: private int batchSize;
focal_class.type: int
focal_class.var_name: batchSize
focal_class.file: suite/tinytables/src/main/java/dk/alexandra/fresco/suite/tinytables/storage/BatchTinyTablesTripleProvider.java
focal_class.identifier: BatchTinyTablesTripleProvider
focal_class.interfaces: implements TinyTablesTripleProvider
focal_class.class_method_signature: BatchTinyTablesTripleProvider.BatchTinyTablesTripleProvider(TinyTablesTripleGenerator generator, int batchSize)
focal_class.full_signature: public  BatchTinyTablesTripleProvider(TinyTablesTripleGenerator generator, int batchSize)
focal_class.identifier: BatchTinyTablesTripleProvider
focal_class.modifiers: public
focal_class.parameters: (TinyTablesTripleGenerator generator, int batchSize)
focal_class.signature:  BatchTinyTablesTripleProvider(TinyTablesTripleGenerator generator, int batchSize)
focal_class.class_method_signature: BatchTinyTablesTripleProvider.getNextTriple()
focal_class.full_signature: @Override public synchronized TinyTablesTriple getNextTriple()
focal_class.identifier: getNextTriple
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: TinyTablesTriple
focal_class.signature: TinyTablesTriple getNextTriple()
focal_class.class_method_signature: BatchTinyTablesTripleProvider.generateNewTriples()
focal_class.full_signature: private void generateNewTriples()
focal_class.identifier: generateNewTriples
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void generateNewTriples()
focal_class.class_method_signature: BatchTinyTablesTripleProvider.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_method.body: @Override
    public synchronized TinyTablesTriple getNextTriple() {
      if (triples.isEmpty()) {
        generateNewTriples();
      }
      return triples.poll();
    }
focal_method.class_method_signature: BatchTinyTablesTripleProvider.getNextTriple()
focal_method.full_signature: @Override public synchronized TinyTablesTriple getNextTriple()
focal_method.identifier: getNextTriple
focal_method.invocations: isEmpty generateNewTriples poll
focal_method.modifiers: @Override public synchronized
focal_method.parameters: ()
focal_method.return: TinyTablesTriple
focal_method.signature: TinyTablesTriple getNextTriple()