public class DatasetRow<V extends Vector> extends Object implements Serializable, Externalizable
| Constructor and Description |
|---|
DatasetRow()
Default constructor (required by Externalizable).
|
DatasetRow(V vector) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
V |
features()
Get the vector.
|
double |
get(int idx)
Gets the value at specified index.
|
Serializable |
getRaw(int idx)
Gets the value at specified index.
|
int |
hashCode() |
void |
readExternal(ObjectInput in) |
void |
set(int idx,
double val)
Sets value.
|
int |
size()
Gets cardinality of dataset row (maximum number of the elements).
|
void |
writeExternal(ObjectOutput out) |
public DatasetRow()
public DatasetRow(V vector)
public V features()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic int size()
public double get(int idx)
idx - DatasetRow index.IndexException - Throw if index is out of bounds.public Serializable getRaw(int idx)
idx - DatasetRow index.IndexException - Throw if index is out of bounds.public void set(int idx,
double val)
idx - Dataset row index to set value at.val - Value to set.IndexException - Throw if index is out of bounds.
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025