class ScanRange extends Serializable
Construct to contain a single scan ranges information. Also provide functions to merge with other scan ranges through AND or OR operators
- Annotations
- @Private()
- Alphabetic
- By Inheritance
- ScanRange
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ScanRange(upperBound: Array[Byte], isUpperBoundEqualTo: Boolean, lowerBound: Array[Byte], isLowerBoundEqualTo: Boolean)
- upperBound
Upper bound of scan
- isUpperBoundEqualTo
Include upper bound value in the results
- lowerBound
Lower bound of scan
- isLowerBoundEqualTo
Include lower bound value in the results
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compareRange(left: Array[Byte], right: Array[Byte]): Int
Special compare logic because we can have null values for left or right bound
Special compare logic because we can have null values for left or right bound
- left
Left byte array
- right
Right byte array
- returns
0 for equals 1 is left is greater and -1 is right is greater
- def containsPoint(point: Array[Byte]): Boolean
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOverLapScanRange(other: ScanRange): ScanRange
Common function to see if this scan over laps with another
Common function to see if this scan over laps with another
Reference Visual
A B
---------------------------
LL--------------LU RL--------------RU
A = lowest value is byte[0] B = highest value is null LL = Left Lower Bound LU = Left Upper Bound RL = Right Lower Bound RU = Right Upper Bound
- other
Other scan object
- returns
True is overlap false is not overlap
-
def
hasOverlap(left: ScanRange, right: ScanRange): Boolean
The leftRange.upperBound has to be larger than the rightRange's lowerBound.
The leftRange.upperBound has to be larger than the rightRange's lowerBound. Otherwise, there is no overlap.
- left
: The range with the smaller lowBound
- right
: The range with the larger lowBound
- returns
Whether two ranges have overlap.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- var isLowerBoundEqualTo: Boolean
- var isUpperBoundEqualTo: Boolean
- var lowerBound: Array[Byte]
-
def
mergeIntersect(other: ScanRange): Unit
Function to merge another scan object through a AND operation
Function to merge another scan object through a AND operation
- other
Other scan object
-
def
mergeUnion(other: ScanRange): Unit
Function to merge another scan object through a OR operation
Function to merge another scan object through a OR operation
- other
Other scan object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- ScanRange → AnyRef → Any
- var upperBound: Array[Byte]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()