public class ClusteringField extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClusteringField.Builder
Builder for
ClusteringField instances. |
| Modifier and Type | Method and Description |
|---|---|
static ClusteringField.Builder |
builder(String field,
CompareFunction compareFunction)
Creates a builder that builds
ClusteringField
instances. |
CompareFunction |
getCompareFunction()
Gets the
CompareFunction of this ClusteringField. |
String |
getField()
Gets the name of the field referenced by this
ClusteringField. |
double |
getFieldWeight()
Gets the weight of this
ClusteringField. |
double |
getSimilarityScale()
Gets the similarity scale of this
ClusteringField |
boolean |
isCenterField()
Gets whether this field is a
ClusteringField. |
public String getField()
ClusteringField.ClusteringFieldpublic boolean isCenterField()
ClusteringField.public double getFieldWeight()
ClusteringField.ClusteringFieldpublic double getSimilarityScale()
ClusteringFieldClusteringFieldpublic CompareFunction getCompareFunction()
CompareFunction of this ClusteringField.CompareFunction of this ClusteringFieldpublic static ClusteringField.Builder builder(String field, CompareFunction compareFunction)
ClusteringField
instances. The parameters field and compare function are
required parameters. For other parameters defaults will be
used: created fields will be center fields, field weight
will be set to 1.0, similarity scale will be set to Double.NaN.field - the referenced field, must not be null or emptycompareFunction - the CompareFunction for this field, must not be nullClusteringField.BuilderCopyright © 2021 Actian Corporation. All rights reserved.