[ https://issues.apache.org/jira/browse/BEAM-4019?focusedWorklogId=89628&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-89628 ]
ASF GitHub Bot logged work on BEAM-4019: ---------------------------------------- Author: ASF GitHub Bot Created on: 10/Apr/18 21:28 Start Date: 10/Apr/18 21:28 Worklog Time Spent: 10m Work Description: iemejia commented on a change in pull request #5081: [BEAM-4019] Refactor HBaseIO splitting to produce ByteKeyRange objects URL: https://github.com/apache/beam/pull/5081#discussion_r180573328 ########## File path: sdks/java/io/hbase/src/main/java/org/apache/beam/sdk/io/hbase/HBaseUtils.java ########## @@ -0,0 +1,122 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.beam.sdk.io.hbase; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Set; +import java.util.TreeSet; +import org.apache.beam.sdk.io.range.ByteKey; +import org.apache.beam.sdk.io.range.ByteKeyRange; +import org.apache.hadoop.hbase.ClusterStatus; +import org.apache.hadoop.hbase.HRegionLocation; +import org.apache.hadoop.hbase.RegionLoad; +import org.apache.hadoop.hbase.ServerLoad; +import org.apache.hadoop.hbase.ServerName; +import org.apache.hadoop.hbase.TableName; +import org.apache.hadoop.hbase.client.Admin; +import org.apache.hadoop.hbase.client.Connection; +import org.apache.hadoop.hbase.client.RegionLocator; +import org.apache.hadoop.hbase.client.Scan; +import org.apache.hadoop.hbase.util.Bytes; + +/** Utils to interact with an HBase cluster and get information on tables/regions. */ +class HBaseUtils { + Review comment: Thanks, added docs in all methods of utils. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 89628) Time Spent: 40m (was: 0.5h) > Refactor HBaseIO splitting to produce ByteKeyRange objects > ---------------------------------------------------------- > > Key: BEAM-4019 > URL: https://issues.apache.org/jira/browse/BEAM-4019 > Project: Beam > Issue Type: Improvement > Components: io-java-hbase > Reporter: Ismaël Mejía > Assignee: Ismaël Mejía > Priority: Minor > Time Spent: 40m > Remaining Estimate: 0h > > This allows to reuse the splitting logic for a future SDF-based > implementation by reusing it as part of the @SplitRestriction method. -- This message was sent by Atlassian JIRA (v7.6.3#76005)