public class AggregateKMeansResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.aggregateKMeans.| Modifier and Type | Class and Description |
|---|---|
static class |
AggregateKMeansResponse.Info
A set of string constants for the
AggregateKMeansResponse
parameter info. |
| Constructor and Description |
|---|
AggregateKMeansResponse()
Constructs an AggregateKMeansResponse object with default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
long |
getCount()
The total count of all the clusters - will be the size of the input
table.
|
List<Long> |
getCounts()
The number of elements in the cluster closest the corresponding k-means
values.
|
Map<String,String> |
getInfo()
Additional information.
|
List<List<Double>> |
getMeans()
The k-mean values found.
|
int |
getNumIters()
The number of iterations the algorithm executed before it quit.
|
double |
getRmsDist()
The sum of all the rms_dists - the value the k-means algorithm is
attempting to minimize.
|
List<Double> |
getRmsDists()
The root mean squared distance of the elements in the cluster for each
of the k-means values.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
double |
getTolerance()
The distance between the last two iterations of the algorithm before it
quit.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
AggregateKMeansResponse |
setCount(long count)
The total count of all the clusters - will be the size of the input
table.
|
AggregateKMeansResponse |
setCounts(List<Long> counts)
The number of elements in the cluster closest the corresponding k-means
values.
|
AggregateKMeansResponse |
setInfo(Map<String,String> info)
Additional information.
|
AggregateKMeansResponse |
setMeans(List<List<Double>> means)
The k-mean values found.
|
AggregateKMeansResponse |
setNumIters(int numIters)
The number of iterations the algorithm executed before it quit.
|
AggregateKMeansResponse |
setRmsDist(double rmsDist)
The sum of all the rms_dists - the value the k-means algorithm is
attempting to minimize.
|
AggregateKMeansResponse |
setRmsDists(List<Double> rmsDists)
The root mean squared distance of the elements in the cluster for each
of the k-means values.
|
AggregateKMeansResponse |
setTolerance(double tolerance)
The distance between the last two iterations of the algorithm before it
quit.
|
String |
toString() |
public AggregateKMeansResponse()
public static org.apache.avro.Schema getClassSchema()
public List<List<Double>> getMeans()
means.public AggregateKMeansResponse setMeans(List<List<Double>> means)
means - The new value for means.this to mimic the builder pattern.public List<Long> getCounts()
counts.public AggregateKMeansResponse setCounts(List<Long> counts)
counts - The new value for counts.this to mimic the builder pattern.public List<Double> getRmsDists()
rmsDists.public AggregateKMeansResponse setRmsDists(List<Double> rmsDists)
rmsDists - The new value for rmsDists.this to mimic the builder pattern.public long getCount()
count.public AggregateKMeansResponse setCount(long count)
count - The new value for count.this to mimic the builder pattern.public double getRmsDist()
rmsDist.public AggregateKMeansResponse setRmsDist(double rmsDist)
rmsDist - The new value for rmsDist.this to mimic the builder pattern.public double getTolerance()
tolerance.public AggregateKMeansResponse setTolerance(double tolerance)
tolerance - The new value for tolerance.this to mimic the builder pattern.public int getNumIters()
numIters.public AggregateKMeansResponse setNumIters(int numIters)
numIters - The new value for numIters.this to mimic the builder pattern.public Map<String,String> getInfo()
QUALIFIED_RESULT_TABLE_NAME: The fully qualified name of the
result table (i.e. including the schema) used to store the
results.
Map.info.public AggregateKMeansResponse setInfo(Map<String,String> info)
QUALIFIED_RESULT_TABLE_NAME: The fully qualified name of the
result table (i.e. including the schema) used to store the
results.
Map.info - The new value for info.this to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2025. All rights reserved.