public class VectorViewStorage extends Object implements VectorStorage
VectorStorage
implementation that delegates to parent matrix.Constructor and Description |
---|
VectorViewStorage() |
VectorViewStorage(VectorStorage sto,
int off,
int len) |
Modifier and Type | Method and Description |
---|---|
double[] |
data()
Gets underlying array if
StorageOpsMetrics.isArrayBased() returns true . |
VectorStorage |
delegate() |
boolean |
equals(Object o) |
double |
get(int i) |
int |
hashCode() |
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 |
isRandomAccess()
Checks if this implementation is optimized for random access.
|
boolean |
isSequentialAccess()
Checks if this implementation should be considered to be iterable in index order in an efficient way.
|
int |
length() |
int |
offset() |
void |
readExternal(ObjectInput in) |
void |
set(int i,
double v) |
int |
size() |
void |
writeExternal(ObjectOutput out) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
destroy
public VectorViewStorage()
public VectorViewStorage(VectorStorage sto, int off, int len)
sto
- Vector storage to delegate to.off
- Offset in the parent vector.len
- Size of the vector.public VectorStorage delegate()
public int offset()
public int length()
public int size()
size
in interface VectorStorage
public double get(int i)
get
in interface VectorStorage
i
- Vector element index.public void set(int i, double v)
set
in interface VectorStorage
i
- Vector element index.v
- Value to set at given index.public double[] data()
StorageOpsMetrics.isArrayBased()
returns true
.
Returns null
if in other cases.data
in interface VectorStorage
StorageOpsMetrics.isArrayBased()
public boolean isSequentialAccess()
isSequentialAccess
in interface StorageOpsMetrics
public boolean isDense()
isDense
in interface StorageOpsMetrics
public boolean isRandomAccess()
isRandomAccess
in interface StorageOpsMetrics
public boolean isDistributed()
isDistributed
in interface StorageOpsMetrics
public boolean isArrayBased()
isArrayBased
in interface StorageOpsMetrics
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019