Skip to content

Commit 9f244e3

Browse files
committed
addition of 2 overrides
1 parent 60803e0 commit 9f244e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/org/apache/spark/sql/hbase/HBasePartitioner.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ class HBasePartitioner (val splitKeys: Array[HBaseRawType]) extends Partitioner
3939
// we will miss the last region's date when bulk load
4040
lazy private val realSplitKeys = if (splitKeys.isEmpty) splitKeys else splitKeys.tail
4141

42-
def numPartitions = if (len == 0) 1 else len
42+
override def numPartitions = if (len == 0) 1 else len
4343

4444
@transient private lazy val binarySearch: ((Array[t], t) => Int) = CollectionsUtils.makeBinarySearch[t]
4545

46-
def getPartition(key: Any): Int = {
46+
override def getPartition(key: Any): Int = {
4747
val k = key.asInstanceOf[t]
4848
var partition = 0
4949
if (len <= 128 && len > 0) {

0 commit comments

Comments
 (0)