@Test public void toStringTest() { Column column = Column.create(15, 2, 50000); assertEquals("15:2 : [50000]", column.toString()); assertEquals("(default column)", Column.DEFAULT.toString()); }
@Override public String toString() { if (this.defaultColumn) { return "(default column)"; } return String.format("%d:%d %s:%s [%d]", this.rowID, this.columnID, this.rowKey, this.columnKey, this.timestamp); }
Column implements Record { @Override public String toString() { if (this.defaultColumn) { return "(default column)"; } return String.format("%d:%d %s:%s [%d]", this.rowID, this.columnID, this.rowKey, this.columnKey, this.timestamp); } }
Column implements Record { @Override public String toString() { if (this.defaultColumn) { return "(default column)"; } return String.format("%d:%d %s:%s [%d]", this.rowID, this.columnID, this.rowKey, this.columnKey, this.timestamp); } private  Column(); }
Column implements Record { @Override public String toString() { if (this.defaultColumn) { return "(default column)"; } return String.format("%d:%d %s:%s [%d]", this.rowID, this.columnID, this.rowKey, this.columnKey, this.timestamp); } private  Column(); static Column create(long rowID, long columnID); static Column create(long rowID, long columnID, long timestamp); static Column create(long rowID, String columnKey); static Column create(long rowID, String columnKey, long timestamp); static Column create(String rowKey, long columnID); static Column create(String rowKey, long columnID, long timestamp); static Column create(String rowKey, String columnKey); static Column create(String rowKey, String columnKey, long timestamp); static Column create(boolean rowBool, long columnID); static Column create(boolean rowBool, long columnID, long timestamp); static Column create(boolean rowBool, String columnKey); static Column create(boolean rowBool, String columnKey, long timestamp); long getRowID(); String getRowKey(); boolean getRowBool(); long getColumnID(); String getColumnKey(); long getTimestamp(); @Override long shard(long shardWidth); @Override int compareTo(Record other); @Override boolean isDefault(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
Column implements Record { @Override public String toString() { if (this.defaultColumn) { return "(default column)"; } return String.format("%d:%d %s:%s [%d]", this.rowID, this.columnID, this.rowKey, this.columnKey, this.timestamp); } private  Column(); static Column create(long rowID, long columnID); static Column create(long rowID, long columnID, long timestamp); static Column create(long rowID, String columnKey); static Column create(long rowID, String columnKey, long timestamp); static Column create(String rowKey, long columnID); static Column create(String rowKey, long columnID, long timestamp); static Column create(String rowKey, String columnKey); static Column create(String rowKey, String columnKey, long timestamp); static Column create(boolean rowBool, long columnID); static Column create(boolean rowBool, long columnID, long timestamp); static Column create(boolean rowBool, String columnKey); static Column create(boolean rowBool, String columnKey, long timestamp); long getRowID(); String getRowKey(); boolean getRowBool(); long getColumnID(); String getColumnKey(); long getTimestamp(); @Override long shard(long shardWidth); @Override int compareTo(Record other); @Override boolean isDefault(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final Column DEFAULT; }