public class VectorizedViewMatrixStorage extends Object implements VectorStorage
| Constructor and Description |
|---|
VectorizedViewMatrixStorage() |
VectorizedViewMatrixStorage(Matrix parent,
int row,
int col,
int rowStride,
int colStride) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
data()
Gets underlying array if
StorageOpsMetrics.isArrayBased() returns true and all values
in vector are Numbers. |
double |
get(int i)
Gets element from vector by index and cast it to double.
|
<T extends Serializable> |
getRaw(int i) |
boolean |
isArrayBased()
Checks if implementation is based on Java arrays.
|
boolean |
isDense()
Checks if this implementation should be considered dense so that it explicitly
represents every value.
|
boolean |
isDistributed()
Checks whether implementation is JVM-local or distributed (multi-JVM).
|
boolean |
isNumeric() |
void |
readExternal(ObjectInput in) |
void |
set(int i,
double v) |
void |
setRaw(int i,
Serializable v) |
int |
size() |
void |
writeExternal(ObjectOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrawDatadestroypublic VectorizedViewMatrixStorage()
public VectorizedViewMatrixStorage(Matrix parent, int row, int col, int rowStride, int colStride)
parent - Parent matrix.row - Starting row in the view.col - Starting column in the view.rowStride - Rows stride in the view.colStride - Columns stride in the view.public int size()
size in interface VectorStoragepublic double get(int i)
get in interface VectorStoragei - Vector element index.public void set(int i,
double v)
set in interface VectorStoragei - Vector element index.v - Value to set at given index.public boolean isDense()
isDense in interface StorageOpsMetricspublic boolean isDistributed()
isDistributed in interface StorageOpsMetricspublic boolean isNumeric()
isNumeric in interface StorageOpsMetricspublic boolean isArrayBased()
isArrayBased in interface StorageOpsMetricspublic double[] data()
StorageOpsMetrics.isArrayBased() returns true and all values
in vector are Numbers.
Returns null if in other cases.data in interface VectorStorageStorageOpsMetrics.isArrayBased()public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic <T extends Serializable> T getRaw(int i)
getRaw in interface VectorStorageT - Type of stored element in vector.i - Vector element index.public void setRaw(int i,
Serializable v)
setRaw in interface VectorStoragei - Vector element index.v - Value to set at given index.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.23-p1 Release Date : November 19 2025