You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by an...@apache.org on 2015/07/10 11:33:36 UTC
hbase git commit: HBASE-13387 Add ByteBufferedCell an extension to
Cell - addendum.
Repository: hbase
Updated Branches:
refs/heads/master ff122f80b -> bff911a8e
HBASE-13387 Add ByteBufferedCell an extension to Cell - addendum.
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/bff911a8
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/bff911a8
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/bff911a8
Branch: refs/heads/master
Commit: bff911a8e894f59f6efe6a24f39a7aef5d689882
Parents: ff122f8
Author: anoopsjohn <an...@gmail.com>
Authored: Fri Jul 10 15:03:07 2015 +0530
Committer: anoopsjohn <an...@gmail.com>
Committed: Fri Jul 10 15:03:07 2015 +0530
----------------------------------------------------------------------
.../apache/hadoop/hbase/ByteBufferedCell.java | 20 ++++++++++----------
.../org/apache/hadoop/hbase/TestCellUtil.java | 20 ++++++++++----------
2 files changed, 20 insertions(+), 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/bff911a8/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferedCell.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferedCell.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferedCell.java
index 02519f9..975e4c2 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferedCell.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/ByteBufferedCell.java
@@ -36,50 +36,50 @@ public abstract class ByteBufferedCell implements Cell {
/**
* @return The {@link ByteBuffer} containing the row bytes.
*/
- abstract ByteBuffer getRowByteBuffer();
+ public abstract ByteBuffer getRowByteBuffer();
/**
* @return Position in the {@link ByteBuffer} where row bytes start
*/
- abstract int getRowPositionInByteBuffer();
+ public abstract int getRowPositionInByteBuffer();
/**
* @return The {@link ByteBuffer} containing the column family bytes.
*/
- abstract ByteBuffer getFamilyByteBuffer();
+ public abstract ByteBuffer getFamilyByteBuffer();
/**
* @return Position in the {@link ByteBuffer} where column family bytes start
*/
- abstract int getFamilyPositionInByteBuffer();
+ public abstract int getFamilyPositionInByteBuffer();
/**
* @return The {@link ByteBuffer} containing the column qualifier bytes.
*/
- abstract ByteBuffer getQualifierByteBuffer();
+ public abstract ByteBuffer getQualifierByteBuffer();
/**
* @return Position in the {@link ByteBuffer} where column qualifier bytes start
*/
- abstract int getQualifierPositionInByteBuffer();
+ public abstract int getQualifierPositionInByteBuffer();
/**
* @return The {@link ByteBuffer} containing the value bytes.
*/
- abstract ByteBuffer getValueByteBuffer();
+ public abstract ByteBuffer getValueByteBuffer();
/**
* @return Position in the {@link ByteBuffer} where value bytes start
*/
- abstract int getValuePositionInByteBuffer();
+ public abstract int getValuePositionInByteBuffer();
/**
* @return The {@link ByteBuffer} containing the tag bytes.
*/
- abstract ByteBuffer getTagsByteBuffer();
+ public abstract ByteBuffer getTagsByteBuffer();
/**
* @return Position in the {@link ByteBuffer} where tag bytes start
*/
- abstract int getTagsPositionInByteBuffer();
+ public abstract int getTagsPositionInByteBuffer();
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/hbase/blob/bff911a8/hbase-common/src/test/java/org/apache/hadoop/hbase/TestCellUtil.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/TestCellUtil.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestCellUtil.java
index bfe5b1a..ed8f901 100644
--- a/hbase-common/src/test/java/org/apache/hadoop/hbase/TestCellUtil.java
+++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestCellUtil.java
@@ -660,52 +660,52 @@ public class TestCellUtil {
}
@Override
- ByteBuffer getRowByteBuffer() {
+ public ByteBuffer getRowByteBuffer() {
return this.buffer;
}
@Override
- int getRowPositionInByteBuffer() {
+ public int getRowPositionInByteBuffer() {
return this.offset + KeyValue.ROW_KEY_OFFSET;
}
@Override
- ByteBuffer getFamilyByteBuffer() {
+ public ByteBuffer getFamilyByteBuffer() {
return this.buffer;
}
@Override
- int getFamilyPositionInByteBuffer() {
+ public int getFamilyPositionInByteBuffer() {
return this.offset + KeyValue.ROW_KEY_OFFSET + getRowLength() + Bytes.SIZEOF_BYTE;
}
@Override
- ByteBuffer getQualifierByteBuffer() {
+ public ByteBuffer getQualifierByteBuffer() {
return this.buffer;
}
@Override
- int getQualifierPositionInByteBuffer() {
+ public int getQualifierPositionInByteBuffer() {
return getFamilyPositionInByteBuffer() + getFamilyLength();
}
@Override
- ByteBuffer getValueByteBuffer() {
+ public ByteBuffer getValueByteBuffer() {
return this.buffer;
}
@Override
- int getValuePositionInByteBuffer() {
+ public int getValuePositionInByteBuffer() {
return this.offset + KeyValue.ROW_OFFSET + getKeyLength();
}
@Override
- ByteBuffer getTagsByteBuffer() {
+ public ByteBuffer getTagsByteBuffer() {
return this.buffer;
}
@Override
- int getTagsPositionInByteBuffer() {
+ public int getTagsPositionInByteBuffer() {
int tagsLen = getTagsLength();
if (tagsLen == 0) {
return this.offset + this.length;