You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bu...@apache.org on 2016/11/21 20:51:25 UTC
hbase git commit: HBASE-17129 Removed public from methods in DataType
interface
Repository: hbase
Updated Branches:
refs/heads/master 7ff7b88db -> 3e9d1a19e
HBASE-17129 Removed public from methods in DataType interface
Signed-off-by: Sean Busbey <bu...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/3e9d1a19
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3e9d1a19
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3e9d1a19
Branch: refs/heads/master
Commit: 3e9d1a19e25e3e9a2eba87869682cf1cb9023626
Parents: 7ff7b88
Author: Jan Hentschel <ja...@ultratendency.com>
Authored: Fri Nov 18 20:51:40 2016 +0100
Committer: Sean Busbey <bu...@apache.org>
Committed: Mon Nov 21 14:34:43 2016 -0600
----------------------------------------------------------------------
.../org/apache/hadoop/hbase/types/DataType.java | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/3e9d1a19/hbase-common/src/main/java/org/apache/hadoop/hbase/types/DataType.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/types/DataType.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/types/DataType.java
index 2f98ebf..cd43448 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/types/DataType.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/types/DataType.java
@@ -61,14 +61,14 @@ public interface DataType<T> {
* @return {@code true} when natural order is preserved,
* {@code false} otherwise.
*/
- public boolean isOrderPreserving();
+ boolean isOrderPreserving();
/**
* Retrieve the sort {@link Order} imposed by this data type, or null when
* natural ordering is not preserved. Value is either ascending or
* descending. Default is assumed to be {@link Order#ASCENDING}.
*/
- public Order getOrder();
+ Order getOrder();
/**
* Indicates whether this instance supports encoding null values. This
@@ -77,40 +77,40 @@ public interface DataType<T> {
* less than any non-null value for default sort ordering purposes.
* @return {@code true} when null is supported, {@code false} otherwise.
*/
- public boolean isNullable();
+ boolean isNullable();
/**
* Indicates whether this instance is able to skip over it's encoded value.
* {@code DataType}s that are not skippable can only be used as the
* right-most field of a {@link Struct}.
*/
- public boolean isSkippable();
+ boolean isSkippable();
/**
* Inform consumers how long the encoded {@code byte[]} will be.
* @param val The value to check.
* @return the number of bytes required to encode {@code val}.a
*/
- public int encodedLength(T val);
+ int encodedLength(T val);
/**
* Inform consumers over what type this {@code DataType} operates. Useful
* when working with bare {@code DataType} instances.
*/
- public Class<T> encodedClass();
+ Class<T> encodedClass();
/**
* Skip {@code src}'s position forward over one encoded value.
* @param src the buffer containing the encoded value.
* @return number of bytes skipped.
*/
- public int skip(PositionedByteRange src);
+ int skip(PositionedByteRange src);
/**
* Read an instance of {@code T} from the buffer {@code src}.
* @param src the buffer containing the encoded value.
*/
- public T decode(PositionedByteRange src);
+ T decode(PositionedByteRange src);
/**
* Write instance {@code val} into buffer {@code dst}.
@@ -118,5 +118,5 @@ public interface DataType<T> {
* @param val the value to encode onto {@code dst}.
* @return number of bytes written.
*/
- public int encode(PositionedByteRange dst, T val);
+ int encode(PositionedByteRange dst, T val);
}