test_class.file: splitmap/src/test/java/com/openkappa/splitmap/SplitMapTest.java
test_class.identifier: SplitMapTest
test_case.body: @Test
    public void testCardinality() {
      SplitMapPageWriter writer = new SplitMapPageWriter();
      writer.add(1);
      writer.add(1 << 14);
      writer.add(1 << 16 | 1);
      writer.add(1 << 17);
      assertEquals(writer.toSplitMap().getCardinality(), 4);
    }
test_case.class_method_signature: SplitMapTest.testCardinality()
test_case.full_signature: @Test public void testCardinality()
test_case.identifier: testCardinality
test_case.invocations: add add add add assertEquals getCardinality toSplitMap
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCardinality()
focal_class.declarator: index
focal_class.modifier: private final
focal_class.original_string: private final PrefixIndex<Container> index;
focal_class.type: PrefixIndex<Container>
focal_class.var_name: index
focal_class.declarator: involution
focal_class.modifier: private final
focal_class.original_string: private final KeyInvolution involution;
focal_class.type: KeyInvolution
focal_class.var_name: involution
focal_class.file: splitmap/src/main/java/com/openkappa/splitmap/SplitMap.java
focal_class.identifier: SplitMap
focal_class.class_method_signature: SplitMap.SplitMap(PrefixIndex<Container> index, KeyInvolution involution)
focal_class.full_signature: public  SplitMap(PrefixIndex<Container> index, KeyInvolution involution)
focal_class.identifier: SplitMap
focal_class.modifiers: public
focal_class.parameters: (PrefixIndex<Container> index, KeyInvolution involution)
focal_class.signature:  SplitMap(PrefixIndex<Container> index, KeyInvolution involution)
focal_class.class_method_signature: SplitMap.SplitMap(PrefixIndex<Container> index)
focal_class.full_signature: public  SplitMap(PrefixIndex<Container> index)
focal_class.identifier: SplitMap
focal_class.modifiers: public
focal_class.parameters: (PrefixIndex<Container> index)
focal_class.signature:  SplitMap(PrefixIndex<Container> index)
focal_class.class_method_signature: SplitMap.SplitMap(KeyInvolution involution)
focal_class.full_signature: public  SplitMap(KeyInvolution involution)
focal_class.identifier: SplitMap
focal_class.modifiers: public
focal_class.parameters: (KeyInvolution involution)
focal_class.signature:  SplitMap(KeyInvolution involution)
focal_class.class_method_signature: SplitMap.insert(short key, Container region)
focal_class.full_signature: public void insert(short key, Container region)
focal_class.identifier: insert
focal_class.modifiers: public
focal_class.parameters: (short key, Container region)
focal_class.return: void
focal_class.signature: void insert(short key, Container region)
focal_class.class_method_signature: SplitMap.contains(int value)
focal_class.full_signature: public boolean contains(int value)
focal_class.identifier: contains
focal_class.modifiers: public
focal_class.parameters: (int value)
focal_class.return: boolean
focal_class.signature: boolean contains(int value)
focal_class.class_method_signature: SplitMap.getCardinality()
focal_class.full_signature: public long getCardinality()
focal_class.identifier: getCardinality
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getCardinality()
focal_class.class_method_signature: SplitMap.isEmpty()
focal_class.full_signature: public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: SplitMap.stream()
focal_class.full_signature: public Stream<PrefixIndex<Container>> stream()
focal_class.identifier: stream
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Stream<PrefixIndex<Container>>
focal_class.signature: Stream<PrefixIndex<Container>> stream()
focal_class.class_method_signature: SplitMap.getIndex()
focal_class.full_signature:  PrefixIndex<Container> getIndex()
focal_class.identifier: getIndex
focal_class.parameters: ()
focal_class.return: PrefixIndex<Container>
focal_class.signature: PrefixIndex<Container> getIndex()
focal_method.body: public long getCardinality() {
      return index.reduceLong(0L, Container::getCardinality, (x, y) -> x + y);
    }
focal_method.class_method_signature: SplitMap.getCardinality()
focal_method.full_signature: public long getCardinality()
focal_method.identifier: getCardinality
focal_method.invocations: reduceLong
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: long
focal_method.signature: long getCardinality()