@Test public void testPrevRowDoesntMatter() throws IOException { long ts = 12345678L; String filename = "default/foo"; LogEntry entry1 = new LogEntry(new KeyExtent(TableId.of("1"), null, new Text("A")), ts, filename); LogEntry entry2 = new LogEntry(new KeyExtent(TableId.of("1"), null, new Text("B")), ts, filename); assertEquals("1< default/foo", entry1.toString()); compareLogEntries(entry1, entry2); LogEntry entry3 = new LogEntry(new KeyExtent(TableId.of("2"), new Text("same"), new Text("A")), ts, filename); LogEntry entry4 = new LogEntry(new KeyExtent(TableId.of("2"), new Text("same"), new Text("B")), ts, filename); assertEquals("2;same default/foo", entry3.toString()); compareLogEntries(entry3, entry4); }
@Override public String toString() { return extent.toMetaRow() + " " + filename; }
LogEntry { @Override public String toString() { return extent.toMetaRow() + " " + filename; } }
LogEntry { @Override public String toString() { return extent.toMetaRow() + " " + filename; } LogEntry(KeyExtent extent, long timestamp, String filename); }
LogEntry { @Override public String toString() { return extent.toMetaRow() + " " + filename; } LogEntry(KeyExtent extent, long timestamp, String filename); LogEntry switchFile(String filename); @Override String toString(); @Deprecated(since = "2.1.0", forRemoval = true) byte[] toBytes(); @Deprecated(since = "2.1.0", forRemoval = true) static LogEntry fromBytes(byte[] bytes); static LogEntry fromMetaWalEntry(Entry<Key,Value> entry); Text getRow(); Text getColumnFamily(); String getUniqueID(); Text getColumnQualifier(); Value getValue(); }
LogEntry { @Override public String toString() { return extent.toMetaRow() + " " + filename; } LogEntry(KeyExtent extent, long timestamp, String filename); LogEntry switchFile(String filename); @Override String toString(); @Deprecated(since = "2.1.0", forRemoval = true) byte[] toBytes(); @Deprecated(since = "2.1.0", forRemoval = true) static LogEntry fromBytes(byte[] bytes); static LogEntry fromMetaWalEntry(Entry<Key,Value> entry); Text getRow(); Text getColumnFamily(); String getUniqueID(); Text getColumnQualifier(); Value getValue(); final long timestamp; final String filename; }