@Test public void testThrift() { Key k = new Key("r1", "cf2", "cq2", "cv"); TKey tk = k.toThrift(); Key k2 = new Key(tk); assertEquals(k, k2); }
public TKey toThrift() { return new TKey(ByteBuffer.wrap(row), ByteBuffer.wrap(colFamily), ByteBuffer.wrap(colQualifier), ByteBuffer.wrap(colVisibility), timestamp); }
Key implements WritableComparable<Key>, Cloneable { public TKey toThrift() { return new TKey(ByteBuffer.wrap(row), ByteBuffer.wrap(colFamily), ByteBuffer.wrap(colQualifier), ByteBuffer.wrap(colVisibility), timestamp); } }
Key implements WritableComparable<Key>, Cloneable { public TKey toThrift() { return new TKey(ByteBuffer.wrap(row), ByteBuffer.wrap(colFamily), ByteBuffer.wrap(colQualifier), ByteBuffer.wrap(colVisibility), timestamp); } Key();  Key(Text row);  Key(byte[] row);  Key(Text row, long ts);  Key(byte[] row, long ts);  Key(byte[] row, int rOff, int rLen, byte[] cf, int cfOff, int cfLen, byte[] cq, int cqOff,
      int cqLen, byte[] cv, int cvOff, int cvLen, long ts);   Key(byte[] row, int rOff, int rLen, byte[] cf, int cfOff, int cfLen, byte[] cq, int cqOff,
      int cqLen, byte[] cv, int cvOff, int cvLen, long ts, boolean deleted, boolean copy);  Key(byte[] row, byte[] colFamily, byte[] colQualifier, byte[] colVisibility,
      long timestamp);  Key(byte[] row, byte[] cf, byte[] cq, byte[] cv, long ts, boolean deleted);  Key(byte[] row, byte[] cf, byte[] cq, byte[] cv, long ts, boolean deleted, boolean copy);  Key(Text row, Text cf);  Key(byte[] row, byte[] cf);  Key(Text row, Text cf, Text cq);  Key(byte[] row, byte[] cf, byte[] cq);  Key(Text row, Text cf, Text cq, Text cv);  Key(byte[] row, byte[] cf, byte[] cq, byte[] cv);  Key(Text row, Text cf, Text cq, long ts);  Key(byte[] row, byte[] cf, byte[] cq, long ts);  Key(Text row, Text cf, Text cq, Text cv, long ts);  Key(Text row, Text cf, Text cq, ColumnVisibility cv, long ts);  Key(byte[] row, byte[] cf, byte[] cq, ColumnVisibility cv, long ts);  Key(CharSequence row);  Key(CharSequence row, CharSequence cf);  Key(CharSequence row, CharSequence cf, CharSequence cq);  Key(CharSequence row, CharSequence cf, CharSequence cq, CharSequence cv);  Key(CharSequence row, CharSequence cf, CharSequence cq, long ts);  Key(CharSequence row, CharSequence cf, CharSequence cq, CharSequence cv, long ts);  Key(CharSequence row, CharSequence cf, CharSequence cq, ColumnVisibility cv, long ts);  Key(Key other);  Key(TKey tkey); }
Key implements WritableComparable<Key>, Cloneable { public TKey toThrift() { return new TKey(ByteBuffer.wrap(row), ByteBuffer.wrap(colFamily), ByteBuffer.wrap(colQualifier), ByteBuffer.wrap(colVisibility), timestamp); } Key();  Key(Text row);  Key(byte[] row);  Key(Text row, long ts);  Key(byte[] row, long ts);  Key(byte[] row, int rOff, int rLen, byte[] cf, int cfOff, int cfLen, byte[] cq, int cqOff,
      int cqLen, byte[] cv, int cvOff, int cvLen, long ts);   Key(byte[] row, int rOff, int rLen, byte[] cf, int cfOff, int cfLen, byte[] cq, int cqOff,
      int cqLen, byte[] cv, int cvOff, int cvLen, long ts, boolean deleted, boolean copy);  Key(byte[] row, byte[] colFamily, byte[] colQualifier, byte[] colVisibility,
      long timestamp);  Key(byte[] row, byte[] cf, byte[] cq, byte[] cv, long ts, boolean deleted);  Key(byte[] row, byte[] cf, byte[] cq, byte[] cv, long ts, boolean deleted, boolean copy);  Key(Text row, Text cf);  Key(byte[] row, byte[] cf);  Key(Text row, Text cf, Text cq);  Key(byte[] row, byte[] cf, byte[] cq);  Key(Text row, Text cf, Text cq, Text cv);  Key(byte[] row, byte[] cf, byte[] cq, byte[] cv);  Key(Text row, Text cf, Text cq, long ts);  Key(byte[] row, byte[] cf, byte[] cq, long ts);  Key(Text row, Text cf, Text cq, Text cv, long ts);  Key(Text row, Text cf, Text cq, ColumnVisibility cv, long ts);  Key(byte[] row, byte[] cf, byte[] cq, ColumnVisibility cv, long ts);  Key(CharSequence row);  Key(CharSequence row, CharSequence cf);  Key(CharSequence row, CharSequence cf, CharSequence cq);  Key(CharSequence row, CharSequence cf, CharSequence cq, CharSequence cv);  Key(CharSequence row, CharSequence cf, CharSequence cq, long ts);  Key(CharSequence row, CharSequence cf, CharSequence cq, CharSequence cv, long ts);  Key(CharSequence row, CharSequence cf, CharSequence cq, ColumnVisibility cv, long ts);  Key(Key other);  Key(TKey tkey); static KeyBuilder.RowStep builder(boolean copyBytes); static KeyBuilder.RowStep builder(); @Override boolean equals(Object o); Key followingKey(PartialKey part); Text getRow(Text r); ByteSequence getRowData(); Text getRow(); int compareRow(Text r); ByteSequence getColumnFamilyData(); Text getColumnFamily(Text cf); Text getColumnFamily(); int compareColumnFamily(Text cf); ByteSequence getColumnQualifierData(); Text getColumnQualifier(Text cq); Text getColumnQualifier(); int compareColumnQualifier(Text cq); void setTimestamp(long ts); long getTimestamp(); boolean isDeleted(); void setDeleted(boolean deleted); ByteSequence getColumnVisibilityData(); final Text getColumnVisibility(); final Text getColumnVisibility(Text cv); final ColumnVisibility getColumnVisibilityParsed(); void set(Key k); @Override void readFields(DataInput in); @Override void write(DataOutput out); boolean equals(Key other, PartialKey part); int compareTo(Key other, PartialKey part); @Override int compareTo(Key other); @Override int hashCode(); static String toPrintableString(byte[] ba, int offset, int len, int maxLen); static StringBuilder appendPrintableString(byte[] ba, int offset, int len, int maxLen,
      StringBuilder sb); @Override String toString(); String toStringNoTruncate(); String toStringNoTime(); int getLength(); int getSize(); static List<TKeyValue> compress(List<? extends KeyValue> param); static void decompress(List<TKeyValue> param); TKey toThrift(); @Override Object clone(); }
Key implements WritableComparable<Key>, Cloneable { public TKey toThrift() { return new TKey(ByteBuffer.wrap(row), ByteBuffer.wrap(colFamily), ByteBuffer.wrap(colQualifier), ByteBuffer.wrap(colVisibility), timestamp); } Key();  Key(Text row);  Key(byte[] row);  Key(Text row, long ts);  Key(byte[] row, long ts);  Key(byte[] row, int rOff, int rLen, byte[] cf, int cfOff, int cfLen, byte[] cq, int cqOff,
      int cqLen, byte[] cv, int cvOff, int cvLen, long ts);   Key(byte[] row, int rOff, int rLen, byte[] cf, int cfOff, int cfLen, byte[] cq, int cqOff,
      int cqLen, byte[] cv, int cvOff, int cvLen, long ts, boolean deleted, boolean copy);  Key(byte[] row, byte[] colFamily, byte[] colQualifier, byte[] colVisibility,
      long timestamp);  Key(byte[] row, byte[] cf, byte[] cq, byte[] cv, long ts, boolean deleted);  Key(byte[] row, byte[] cf, byte[] cq, byte[] cv, long ts, boolean deleted, boolean copy);  Key(Text row, Text cf);  Key(byte[] row, byte[] cf);  Key(Text row, Text cf, Text cq);  Key(byte[] row, byte[] cf, byte[] cq);  Key(Text row, Text cf, Text cq, Text cv);  Key(byte[] row, byte[] cf, byte[] cq, byte[] cv);  Key(Text row, Text cf, Text cq, long ts);  Key(byte[] row, byte[] cf, byte[] cq, long ts);  Key(Text row, Text cf, Text cq, Text cv, long ts);  Key(Text row, Text cf, Text cq, ColumnVisibility cv, long ts);  Key(byte[] row, byte[] cf, byte[] cq, ColumnVisibility cv, long ts);  Key(CharSequence row);  Key(CharSequence row, CharSequence cf);  Key(CharSequence row, CharSequence cf, CharSequence cq);  Key(CharSequence row, CharSequence cf, CharSequence cq, CharSequence cv);  Key(CharSequence row, CharSequence cf, CharSequence cq, long ts);  Key(CharSequence row, CharSequence cf, CharSequence cq, CharSequence cv, long ts);  Key(CharSequence row, CharSequence cf, CharSequence cq, ColumnVisibility cv, long ts);  Key(Key other);  Key(TKey tkey); static KeyBuilder.RowStep builder(boolean copyBytes); static KeyBuilder.RowStep builder(); @Override boolean equals(Object o); Key followingKey(PartialKey part); Text getRow(Text r); ByteSequence getRowData(); Text getRow(); int compareRow(Text r); ByteSequence getColumnFamilyData(); Text getColumnFamily(Text cf); Text getColumnFamily(); int compareColumnFamily(Text cf); ByteSequence getColumnQualifierData(); Text getColumnQualifier(Text cq); Text getColumnQualifier(); int compareColumnQualifier(Text cq); void setTimestamp(long ts); long getTimestamp(); boolean isDeleted(); void setDeleted(boolean deleted); ByteSequence getColumnVisibilityData(); final Text getColumnVisibility(); final Text getColumnVisibility(Text cv); final ColumnVisibility getColumnVisibilityParsed(); void set(Key k); @Override void readFields(DataInput in); @Override void write(DataOutput out); boolean equals(Key other, PartialKey part); int compareTo(Key other, PartialKey part); @Override int compareTo(Key other); @Override int hashCode(); static String toPrintableString(byte[] ba, int offset, int len, int maxLen); static StringBuilder appendPrintableString(byte[] ba, int offset, int len, int maxLen,
      StringBuilder sb); @Override String toString(); String toStringNoTruncate(); String toStringNoTime(); int getLength(); int getSize(); static List<TKeyValue> compress(List<? extends KeyValue> param); static void decompress(List<TKeyValue> param); TKey toThrift(); @Override Object clone();  }