@Test public void testGetReturnsFirstSortedDuplicate() { tm = new BTreeEmpty(log, createTestSplittingPolicy(), true, 1).getMutableCopy(); List<INode> l = new ArrayList<>(); l.add(kv("1", "1")); l.add(kv("2", "2")); l.add(kv("3", "3")); l.add(kv("5", "51")); l.add(kv("5", "52")); l.add(kv("5", "53")); l.add(kv("5", "54")); l.add(kv("5", "55")); l.add(kv("5", "56")); l.add(kv("5", "57")); l.add(kv("7", "7")); for (INode ln : l) { getTreeMutable().add(ln); } valueEquals("51", tm.get(key("5"))); }
@Override @NotNull public BTreeMutable getMutableCopy() { final BTreeMutable result = new BTreeMutable(this); result.addExpiredLoggable(rootLoggable); return result; }
BTree extends BTreeBase { @Override @NotNull public BTreeMutable getMutableCopy() { final BTreeMutable result = new BTreeMutable(this); result.addExpiredLoggable(rootLoggable); return result; } }
BTree extends BTreeBase { @Override @NotNull public BTreeMutable getMutableCopy() { final BTreeMutable result = new BTreeMutable(this); result.addExpiredLoggable(rootLoggable); return result; } BTree(@NotNull final Log log, final long rootAddress, final boolean allowsDuplicates, final int structureId);  BTree(@NotNull final Log log,
                 @NotNull final BTreeBalancePolicy policy,
                 final long rootAddress,
                 final boolean allowsDuplicates,
                 final int structureId); }
BTree extends BTreeBase { @Override @NotNull public BTreeMutable getMutableCopy() { final BTreeMutable result = new BTreeMutable(this); result.addExpiredLoggable(rootLoggable); return result; } BTree(@NotNull final Log log, final long rootAddress, final boolean allowsDuplicates, final int structureId);  BTree(@NotNull final Log log,
                 @NotNull final BTreeBalancePolicy policy,
                 final long rootAddress,
                 final boolean allowsDuplicates,
                 final int structureId); @Override long getRootAddress(); @Override @NotNull BTreeMutable getMutableCopy(); }
BTree extends BTreeBase { @Override @NotNull public BTreeMutable getMutableCopy() { final BTreeMutable result = new BTreeMutable(this); result.addExpiredLoggable(rootLoggable); return result; } BTree(@NotNull final Log log, final long rootAddress, final boolean allowsDuplicates, final int structureId);  BTree(@NotNull final Log log,
                 @NotNull final BTreeBalancePolicy policy,
                 final long rootAddress,
                 final boolean allowsDuplicates,
                 final int structureId); @Override long getRootAddress(); @Override @NotNull BTreeMutable getMutableCopy();  }