@Test public void testThriftRoundTrip() { for (Column c : col) { TColumn tc = c.toThrift(); assertEquals(c, new Column(tc)); } }
public TColumn toThrift() { return new TColumn(columnFamily == null ? null : ByteBuffer.wrap(columnFamily), columnQualifier == null ? null : ByteBuffer.wrap(columnQualifier), columnVisibility == null ? null : ByteBuffer.wrap(columnVisibility)); }
Column implements WritableComparable<Column> { public TColumn toThrift() { return new TColumn(columnFamily == null ? null : ByteBuffer.wrap(columnFamily), columnQualifier == null ? null : ByteBuffer.wrap(columnQualifier), columnVisibility == null ? null : ByteBuffer.wrap(columnVisibility)); } }
Column implements WritableComparable<Column> { public TColumn toThrift() { return new TColumn(columnFamily == null ? null : ByteBuffer.wrap(columnFamily), columnQualifier == null ? null : ByteBuffer.wrap(columnQualifier), columnVisibility == null ? null : ByteBuffer.wrap(columnVisibility)); } Column();  Column(byte[] columnFamily, byte[] columnQualifier, byte[] columnVisibility);  Column(TColumn tcol); }
Column implements WritableComparable<Column> { public TColumn toThrift() { return new TColumn(columnFamily == null ? null : ByteBuffer.wrap(columnFamily), columnQualifier == null ? null : ByteBuffer.wrap(columnQualifier), columnVisibility == null ? null : ByteBuffer.wrap(columnVisibility)); } Column();  Column(byte[] columnFamily, byte[] columnQualifier, byte[] columnVisibility);  Column(TColumn tcol); @Override int compareTo(Column that); @Override void readFields(DataInput in); @Override void write(DataOutput out); @Override boolean equals(Object that); boolean equals(Column that); @Override int hashCode(); byte[] getColumnFamily(); byte[] getColumnQualifier(); byte[] getColumnVisibility(); @Override String toString(); TColumn toThrift(); }
Column implements WritableComparable<Column> { public TColumn toThrift() { return new TColumn(columnFamily == null ? null : ByteBuffer.wrap(columnFamily), columnQualifier == null ? null : ByteBuffer.wrap(columnQualifier), columnVisibility == null ? null : ByteBuffer.wrap(columnVisibility)); } Column();  Column(byte[] columnFamily, byte[] columnQualifier, byte[] columnVisibility);  Column(TColumn tcol); @Override int compareTo(Column that); @Override void readFields(DataInput in); @Override void write(DataOutput out); @Override boolean equals(Object that); boolean equals(Column that); @Override int hashCode(); byte[] getColumnFamily(); byte[] getColumnQualifier(); byte[] getColumnVisibility(); @Override String toString(); TColumn toThrift(); public byte[] columnFamily; public byte[] columnQualifier; public byte[] columnVisibility; }