MCPcopy Index your code
hub / github.com/jankotek/mapdb / sizeLong

Method sizeLong

src/main/java/org/mapdb/BTreeMapJava.java:680–692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

678 }
679
680 public long sizeLong() {
681 //PERF use counted btrees once they become available
682 if(hi==null && lo==null)
683 return m.sizeLong();
684
685 Iterator<K> i = keyIterator();
686 long counter = 0;
687 while(i.hasNext()){
688 counter++;
689 i.next();
690 }
691 return counter;
692 }
693
694
695 @Override

Callers 1

sizeMethod · 0.95

Calls 3

keyIteratorMethod · 0.95
nextMethod · 0.80
sizeLongMethod · 0.45

Tested by

no test coverage detected