@Test public void testAdd() { chronicle.add(getTestItem(0)); Assert.assertEquals(1, chronicle.getNumEvents(0, System.currentTimeMillis())); Assert.assertEquals(1, getChronicle().getNumEvents(0, System.currentTimeMillis())); }
@Override public void add(ChronologicalRecord item) { add(Collections.singleton(item).iterator(), 0); }
SimpleDBChronicle extends Chronicle { @Override public void add(ChronologicalRecord item) { add(Collections.singleton(item).iterator(), 0); } }
SimpleDBChronicle extends Chronicle { @Override public void add(ChronologicalRecord item) { add(Collections.singleton(item).iterator(), 0); } SimpleDBChronicle(AmazonSimpleDBClient client, String key); }
SimpleDBChronicle extends Chronicle { @Override public void add(ChronologicalRecord item) { add(Collections.singleton(item).iterator(), 0); } SimpleDBChronicle(AmazonSimpleDBClient client, String key); @Override void add(ChronologicalRecord item); @Override void add(Iterator<ChronologicalRecord> items, int pageSize); @Override Iterator<ChronologicalRecord> getRange(long t1, long t2, int pageSize); @Override long getNumEvents(long t1, long t2); @Override void delete(); @Override void deleteRange(long t1, long t2); void createDomain(); }
SimpleDBChronicle extends Chronicle { @Override public void add(ChronologicalRecord item) { add(Collections.singleton(item).iterator(), 0); } SimpleDBChronicle(AmazonSimpleDBClient client, String key); @Override void add(ChronologicalRecord item); @Override void add(Iterator<ChronologicalRecord> items, int pageSize); @Override Iterator<ChronologicalRecord> getRange(long t1, long t2, int pageSize); @Override long getNumEvents(long t1, long t2); @Override void delete(); @Override void deleteRange(long t1, long t2); void createDomain();  }