You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by nd...@apache.org on 2020/08/11 23:13:58 UTC
[hbase] branch branch-2 updated: HBASE-24843 Sort the constants in
`hbase_constants.rb`
This is an automated email from the ASF dual-hosted git repository.
ndimiduk pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 8737afb HBASE-24843 Sort the constants in `hbase_constants.rb`
8737afb is described below
commit 8737afb01e9ce321834dfd2e1b9d90305e6e97c3
Author: Nick Dimiduk <nd...@apache.org>
AuthorDate: Mon Aug 10 11:37:01 2020 -0700
HBASE-24843 Sort the constants in `hbase_constants.rb`
Signed-off-by: Viraj Jasani <vj...@apache.org>
Signed-off-by: Mingliang Liu <li...@apache.org>
---
hbase-shell/src/main/ruby/hbase_constants.rb | 104 ++++++++++++++-------------
1 file changed, 53 insertions(+), 51 deletions(-)
diff --git a/hbase-shell/src/main/ruby/hbase_constants.rb b/hbase-shell/src/main/ruby/hbase_constants.rb
index a65c537..badd7d0 100644
--- a/hbase-shell/src/main/ruby/hbase_constants.rb
+++ b/hbase-shell/src/main/ruby/hbase_constants.rb
@@ -32,71 +32,73 @@ java_import('java.lang.Long') { |_package, name| "J#{name}" }
java_import('java.lang.Boolean') { |_package, name| "J#{name}" }
module HBaseConstants
+ ALLOW_PARTIAL_RESULTS = 'ALLOW_PARTIAL_RESULTS'.freeze
+ ALL_METRICS = 'ALL_METRICS'.freeze
+ ATTRIBUTES = 'ATTRIBUTES'.freeze
+ AUTHORIZATIONS = 'AUTHORIZATIONS'.freeze
+ BATCH = 'BATCH'.freeze
+ CACHE = 'CACHE'.freeze
+ CACHE_BLOCKS = 'CACHE_BLOCKS'.freeze
+ CLUSTER_KEY = 'CLUSTER_KEY'.freeze
COLUMN = 'COLUMN'.freeze
COLUMNS = 'COLUMNS'.freeze
- TIMESTAMP = 'TIMESTAMP'.freeze
- TIMERANGE = 'TIMERANGE'.freeze
- NAME = org.apache.hadoop.hbase.HConstants::NAME
- VERSIONS = org.apache.hadoop.hbase.HConstants::VERSIONS
+ CONFIG = 'CONFIG'.freeze
+ CONFIGURATION = org.apache.hadoop.hbase.HConstants::CONFIGURATION
+ CONSISTENCY = 'CONSISTENCY'.freeze
+ DATA = 'DATA'.freeze
+ ENDPOINT_CLASSNAME = 'ENDPOINT_CLASSNAME'.freeze
+ FILTER = 'FILTER'.freeze
+ FORMATTER = 'FORMATTER'.freeze
+ FORMATTER_CLASS = 'FORMATTER_CLASS'.freeze
+ INTERVAL = 'INTERVAL'.freeze
IN_MEMORY = org.apache.hadoop.hbase.HConstants::IN_MEMORY
IN_MEMORY_COMPACTION = org.apache.hadoop.hbase.HColumnDescriptor::IN_MEMORY_COMPACTION
- METADATA = org.apache.hadoop.hbase.HConstants::METADATA
- STOPROW = 'STOPROW'.freeze
- STARTROW = 'STARTROW'.freeze
- STARTKEY = STARTROW
- ROWPREFIXFILTER = 'ROWPREFIXFILTER'.freeze
- ENDROW = STOPROW
- ENDKEY = STOPROW
- RAW = 'RAW'.freeze
+ ISOLATION_LEVEL = 'ISOLATION_LEVEL'.freeze
LIMIT = 'LIMIT'.freeze
- METHOD = 'METHOD'.freeze
+ LOCALITY_THRESHOLD = 'LOCALITY_THRESHOLD'.freeze
MAXLENGTH = 'MAXLENGTH'.freeze
- CACHE_BLOCKS = 'CACHE_BLOCKS'.freeze
- ALL_METRICS = 'ALL_METRICS'.freeze
+ MAX_RESULT_SIZE = 'MAX_RESULT_SIZE'.freeze
+ METADATA = org.apache.hadoop.hbase.HConstants::METADATA
+ METHOD = 'METHOD'.freeze
METRICS = 'METRICS'.freeze
- REVERSED = 'REVERSED'.freeze
- REPLICATION_SCOPE = 'REPLICATION_SCOPE'.freeze
- INTERVAL = 'INTERVAL'.freeze
- CACHE = 'CACHE'.freeze
- FILTER = 'FILTER'.freeze
- SPLITS = 'SPLITS'.freeze
- SPLITS_FILE = 'SPLITS_FILE'.freeze
- SPLITALGO = 'SPLITALGO'.freeze
+ NAME = org.apache.hadoop.hbase.HConstants::NAME
+ NAMESPACE = 'NAMESPACE'.freeze
+ NAMESPACES = 'NAMESPACES'.freeze
+ NONE = 'NONE'.freeze
NUMREGIONS = 'NUMREGIONS'.freeze
+ POLICY = 'POLICY'.freeze
+ RAW = 'RAW'.freeze
+ READ_TYPE = 'READ_TYPE'.freeze
+ REGIONSERVER = 'REGIONSERVER'.freeze
REGION_REPLICATION = 'REGION_REPLICATION'.freeze
REGION_REPLICA_ID = 'REGION_REPLICA_ID'.freeze
- ISOLATION_LEVEL = 'ISOLATION_LEVEL'.freeze
- READ_TYPE = 'READ_TYPE'.freeze
- ALLOW_PARTIAL_RESULTS = 'ALLOW_PARTIAL_RESULTS'.freeze
- BATCH = 'BATCH'.freeze
- MAX_RESULT_SIZE = 'MAX_RESULT_SIZE'.freeze
- CONFIGURATION = org.apache.hadoop.hbase.HConstants::CONFIGURATION
- ATTRIBUTES = 'ATTRIBUTES'.freeze
- VISIBILITY = 'VISIBILITY'.freeze
- AUTHORIZATIONS = 'AUTHORIZATIONS'.freeze
+ REPLICATION_SCOPE = 'REPLICATION_SCOPE'.freeze
+ RESTORE_ACL = 'RESTORE_ACL'.freeze
+ REVERSED = 'REVERSED'.freeze
+ ROWPREFIXFILTER = 'ROWPREFIXFILTER'.freeze
+ SERIAL = 'SERIAL'.freeze
+ SERVER_NAME = 'SERVER_NAME'.freeze
SKIP_FLUSH = 'SKIP_FLUSH'.freeze
- CONSISTENCY = 'CONSISTENCY'.freeze
- USER = 'USER'.freeze
+ SPLITALGO = 'SPLITALGO'.freeze
+ SPLITS = 'SPLITS'.freeze
+ SPLITS_FILE = 'SPLITS_FILE'.freeze
+ STARTROW = 'STARTROW'.freeze
+ STATE = 'STATE'.freeze
+ STOPROW = 'STOPROW'.freeze
TABLE = 'TABLE'.freeze
- NAMESPACE = 'NAMESPACE'.freeze
+ TABLE_CFS = 'TABLE_CFS'.freeze
+ TIMERANGE = 'TIMERANGE'.freeze
+ TIMESTAMP = 'TIMESTAMP'.freeze
TYPE = 'TYPE'.freeze
- NONE = 'NONE'.freeze
+ USER = 'USER'.freeze
VALUE = 'VALUE'.freeze
- ENDPOINT_CLASSNAME = 'ENDPOINT_CLASSNAME'.freeze
- CLUSTER_KEY = 'CLUSTER_KEY'.freeze
- SERIAL = 'SERIAL'.freeze
- TABLE_CFS = 'TABLE_CFS'.freeze
- NAMESPACES = 'NAMESPACES'.freeze
- STATE = 'STATE'.freeze
- CONFIG = 'CONFIG'.freeze
- DATA = 'DATA'.freeze
- SERVER_NAME = 'SERVER_NAME'.freeze
- LOCALITY_THRESHOLD = 'LOCALITY_THRESHOLD'.freeze
- RESTORE_ACL = 'RESTORE_ACL'.freeze
- FORMATTER = 'FORMATTER'.freeze
- FORMATTER_CLASS = 'FORMATTER_CLASS'.freeze
- POLICY = 'POLICY'.freeze
- REGIONSERVER = 'REGIONSERVER'.freeze
+ VERSIONS = org.apache.hadoop.hbase.HConstants::VERSIONS
+ VISIBILITY = 'VISIBILITY'.freeze
+
+ # aliases
+ ENDKEY = STOPROW
+ ENDROW = STOPROW
+ STARTKEY = STARTROW
# Load constants from hbase java API
def self.promote_constants(constants)