case class UpdateLongBy(key: ADKey, delta: Long) extends Modification with Product with Serializable
If the key exists in the tree, add delta to its value, fail if the result is negative, and remove the key if the result is equal to 0. If the key does not exist in the tree, treat it as if its value is 0: insert the key with value delta if delta is positive, fail if delta is negative, and do nothing if delta is 0.
- Alphabetic
- By Inheritance
- UpdateLongBy
- Serializable
- Serializable
- Product
- Equals
- Modification
- SparkzEncoding
- Operation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
NewValue = Array[Byte] with Tag[Array[Byte], ADValue.Tag]
- Definition Classes
- Modification
-
type
OldValue = Option[ADValue]
- Definition Classes
- Modification
-
type
UpdateFunction = (OldValue) ⇒ Try[Option[NewValue]]
- Definition Classes
- Modification
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() @HotSpotIntrinsicCandidate()
- val delta: Long
-
implicit
val
encoder: SparkzEncoder
- Definition Classes
- SparkzEncoding
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
key: ADKey
- Definition Classes
- UpdateLongBy → Modification → Operation
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
updateFn: UpdateFunction
Update functions takes Option[oldValue] and return Try[Option[newValue]] For example: Insert: None => Success(Some(newValue)), but Some(oldValue) => Failure() Update: Some(oldValue) => Success(Some(newValue)) Delete: Some(oldValue) => Success(None), but None => Failure() ConditionalUpdate: Some(oldValue) => Success(Some(newValue)) or Failure(), depending on whether oldValue satisfied some desired conditions
Update functions takes Option[oldValue] and return Try[Option[newValue]] For example: Insert: None => Success(Some(newValue)), but Some(oldValue) => Failure() Update: Some(oldValue) => Success(Some(newValue)) Delete: Some(oldValue) => Success(None), but None => Failure() ConditionalUpdate: Some(oldValue) => Success(Some(newValue)) or Failure(), depending on whether oldValue satisfied some desired conditions
- Definition Classes
- UpdateLongBy → Modification
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated