@Test public void testAttributesSerialization() throws IOException { Get get = new Get(Bytes.toBytes("row")); get.setAttribute("attribute1", Bytes.toBytes("value1")); get.setAttribute("attribute2", Bytes.toBytes("value2")); get.setAttribute("attribute3", Bytes.toBytes("value3")); ClientProtos.Get getProto = ProtobufUtil.toGet(get); Get get2 = ProtobufUtil.toGet(getProto); Assert.assertNull(get2.getAttribute("absent")); Assert.assertTrue(Arrays.equals(Bytes.toBytes("value1"), get2.getAttribute("attribute1"))); Assert.assertTrue(Arrays.equals(Bytes.toBytes("value2"), get2.getAttribute("attribute2"))); Assert.assertTrue(Arrays.equals(Bytes.toBytes("value3"), get2.getAttribute("attribute3"))); Assert.assertEquals(3, get2.getAttributesMap().size()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } Row other = (Row) obj; return compareTo(other) == 0; }
Get extends Query implements Row, Comparable<Row> { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } Row other = (Row) obj; return compareTo(other) == 0; } }
Get extends Query implements Row, Comparable<Row> { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } Row other = (Row) obj; return compareTo(other) == 0; } Get(byte [] row);  Get(Get get); }
Get extends Query implements Row, Comparable<Row> { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } Row other = (Row) obj; return compareTo(other) == 0; } Get(byte [] row);  Get(Get get); boolean isCheckExistenceOnly(); void setCheckExistenceOnly(boolean checkExistenceOnly); boolean isClosestRowBefore(); void setClosestRowBefore(boolean closestRowBefore); Get addFamily(byte [] family); Get addColumn(byte [] family, byte [] qualifier); Get setTimeRange(long minStamp, long maxStamp); Get setTimeStamp(long timestamp); Get setMaxVersions(); Get setMaxVersions(int maxVersions); Get setMaxResultsPerColumnFamily(int limit); Get setRowOffsetPerColumnFamily(int offset); @Override Get setFilter(Filter filter); void setCacheBlocks(boolean cacheBlocks); boolean getCacheBlocks(); byte [] getRow(); int getMaxVersions(); int getMaxResultsPerColumnFamily(); int getRowOffsetPerColumnFamily(); TimeRange getTimeRange(); Set<byte[]> familySet(); int numFamilies(); boolean hasFamilies(); Map<byte[],NavigableSet<byte[]>> getFamilyMap(); @Override Map<String, Object> getFingerprint(); @Override Map<String, Object> toMap(int maxCols); @Override int compareTo(Row other); @Override int hashCode(); @Override boolean equals(Object obj); }
Get extends Query implements Row, Comparable<Row> { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } Row other = (Row) obj; return compareTo(other) == 0; } Get(byte [] row);  Get(Get get); boolean isCheckExistenceOnly(); void setCheckExistenceOnly(boolean checkExistenceOnly); boolean isClosestRowBefore(); void setClosestRowBefore(boolean closestRowBefore); Get addFamily(byte [] family); Get addColumn(byte [] family, byte [] qualifier); Get setTimeRange(long minStamp, long maxStamp); Get setTimeStamp(long timestamp); Get setMaxVersions(); Get setMaxVersions(int maxVersions); Get setMaxResultsPerColumnFamily(int limit); Get setRowOffsetPerColumnFamily(int offset); @Override Get setFilter(Filter filter); void setCacheBlocks(boolean cacheBlocks); boolean getCacheBlocks(); byte [] getRow(); int getMaxVersions(); int getMaxResultsPerColumnFamily(); int getRowOffsetPerColumnFamily(); TimeRange getTimeRange(); Set<byte[]> familySet(); int numFamilies(); boolean hasFamilies(); Map<byte[],NavigableSet<byte[]>> getFamilyMap(); @Override Map<String, Object> getFingerprint(); @Override Map<String, Object> toMap(int maxCols); @Override int compareTo(Row other); @Override int hashCode(); @Override boolean equals(Object obj);  }