public class ClusterInfo
extends org.apache.hadoop.io.IntWritable
Constructor and Description |
---|
ClusterInfo()
Creates a new instance
|
ClusterInfo(ClusterInfo cluster)
Creates a new instanced with the same information than another ClusterInfo
|
Modifier and Type | Method and Description |
---|---|
double |
getCriterionFunctionValue()
Gets the criterion function value generated the last time the cluster was updated
|
int |
getId()
Gets the cluster id
|
long |
getMemberCount()
Gets the number of members contained by the cluster
|
double[] |
getOrdinates()
Gets the ordinates of the cluster center point
|
oracle.spatial.geometry.JGeometry |
getShape() |
void |
readFields(java.io.DataInput in) |
void |
setCluster(ClusterInfo cluster)
Copies the values from another ClusterInfo
|
void |
setCriterionFunctionValue(double criterionFunctionValue)
Sets the criterion function value generated the last time the cluster was updated
|
void |
setId(int id)
Sets the cluster id
|
void |
setMemberCount(long memberCount)
Sets the number of members contained by the cluster
|
void |
setOrdinates(double[] ordinates)
Sets the ordinates of the cluster center point
|
void |
setShape(oracle.spatial.geometry.JGeometry shape) |
void |
write(java.io.DataOutput out) |
public ClusterInfo()
public ClusterInfo(ClusterInfo cluster)
cluster
- a ClusterInfo which values will be copiedpublic void setCluster(ClusterInfo cluster)
cluster
- a ClusterInfo instancepublic void setId(int id)
id
- a cluster idpublic int getId()
public void setOrdinates(double[] ordinates)
ordinates
- a point ordinates arraypublic double[] getOrdinates()
public void setCriterionFunctionValue(double criterionFunctionValue)
criterionFunctionValue
- a criterion function valuepublic double getCriterionFunctionValue()
public void setMemberCount(long memberCount)
memberCount
- the cluster member countpublic long getMemberCount()
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class org.apache.hadoop.io.IntWritable
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
write
in class org.apache.hadoop.io.IntWritable
java.io.IOException
public void setShape(oracle.spatial.geometry.JGeometry shape)
public oracle.spatial.geometry.JGeometry getShape()