@Test public void testOverlaps_ExtentsOverlap() { KeyExtent keyExtent2 = createMock(KeyExtent.class); expect(keyExtent.overlaps(keyExtent2)).andReturn(true); replay(keyExtent); mi = new MergeInfo(keyExtent, MergeInfo.Operation.MERGE); assertTrue(mi.overlaps(keyExtent2)); }
public boolean overlaps(KeyExtent otherExtent) { boolean result = this.extent.overlaps(otherExtent); if (!result && needsToBeChopped(otherExtent)) return true; return result; }
MergeInfo implements Writable { public boolean overlaps(KeyExtent otherExtent) { boolean result = this.extent.overlaps(otherExtent); if (!result && needsToBeChopped(otherExtent)) return true; return result; } }
MergeInfo implements Writable { public boolean overlaps(KeyExtent otherExtent) { boolean result = this.extent.overlaps(otherExtent); if (!result && needsToBeChopped(otherExtent)) return true; return result; } MergeInfo();  MergeInfo(KeyExtent range, Operation op); }
MergeInfo implements Writable { public boolean overlaps(KeyExtent otherExtent) { boolean result = this.extent.overlaps(otherExtent); if (!result && needsToBeChopped(otherExtent)) return true; return result; } MergeInfo();  MergeInfo(KeyExtent range, Operation op); @Override void readFields(DataInput in); @Override void write(DataOutput out); MergeState getState(); KeyExtent getExtent(); Operation getOperation(); void setState(MergeState state); boolean isDelete(); boolean needsToBeChopped(KeyExtent otherExtent); boolean overlaps(KeyExtent otherExtent); @Override String toString(); }
MergeInfo implements Writable { public boolean overlaps(KeyExtent otherExtent) { boolean result = this.extent.overlaps(otherExtent); if (!result && needsToBeChopped(otherExtent)) return true; return result; } MergeInfo();  MergeInfo(KeyExtent range, Operation op); @Override void readFields(DataInput in); @Override void write(DataOutput out); MergeState getState(); KeyExtent getExtent(); Operation getOperation(); void setState(MergeState state); boolean isDelete(); boolean needsToBeChopped(KeyExtent otherExtent); boolean overlaps(KeyExtent otherExtent); @Override String toString();  }