c
com.datastax.spark.connector.cql
LocalNodeFirstLoadBalancingPolicy
Companion object LocalNodeFirstLoadBalancingPolicy
class LocalNodeFirstLoadBalancingPolicy extends LoadBalancingPolicy
Selects local node first and then nodes in local DC in random order. Never selects nodes from other DCs. For writes, if a statement has a routing key set, this LBP is token aware - it prefers the nodes which are replicas of the computed token to the other nodes.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LocalNodeFirstLoadBalancingPolicy
- LoadBalancingPolicy
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new LocalNodeFirstLoadBalancingPolicy(context: DriverContext, profileName: String)
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()
-
def
close(): Unit
- Definition Classes
- LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy → AutoCloseable
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getRequestTracker(): Optional[RequestTracker]
- Definition Classes
- LoadBalancingPolicy
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
init(nodes: Map[UUID, Node], distanceReporter: DistanceReporter): Unit
- Definition Classes
- LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newQueryPlan(request: Request, session: Session): Queue[Node]
- Definition Classes
- LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
onAdd(node: Node): Unit
- Definition Classes
- LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
-
def
onDown(node: Node): Unit
- Definition Classes
- LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
-
def
onRemove(node: Node): Unit
- Definition Classes
- LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
-
def
onUp(node: Node): Unit
- Definition Classes
- LocalNodeFirstLoadBalancingPolicy → LoadBalancingPolicy
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def tokenMap: Option[TokenMap]
-
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
- Deprecated
(Since version ) see corresponding Javadoc for more information.