hmm1
and hmm2
withregard to hmm1
The distance of an host influence how much connections are kept to the node (see {@link HostDistance}). A policy should assign a {@code LOCAL} distance to nodes that are susceptible to be returned first by{@code newQueryPlan} and it is useless for {@code newQueryPlan} toreturn hosts to which it assigns an {@code IGNORED} distance.
The host distance is primarily used to prevent keeping too many connections to host in remote datacenters when the policy itself always picks host in the local datacenter first. @param host the host of which to return the distance of. @return the HostDistance to {@code host}.
distance
calculates the distance between this vector and vector v.
@param v the second vector to determine the distance.
@return the distance between the two vectors.
from
and to
.
Geometry
and the Geometry
g
@param g the Geometry
from which to compute the distance
@return the distance between the geometries
@return 0 if either input geometry is empty
@throws IllegalArgumentException if g is null
This is a shortcut for invoking FastMath.abs(getOffset(p)), and provides consistency with what is in the org.apache.commons.math3.geometry.euclidean.threed.Line class.
@param p to check @return distance between the instance and the point @since 3.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|