public class CacheVectorStorage<K,V> extends Object implements VectorStorage
| Constructor and Description |
|---|
CacheVectorStorage() |
CacheVectorStorage(int size,
IgniteCache<K,V> cache,
VectorKeyMapper<K> keyMapper,
ValueMapper<V> valMapper) |
| Modifier and Type | Method and Description |
|---|---|
IgniteCache<K,V> |
cache() |
boolean |
equals(Object obj) |
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.
|
VectorKeyMapper<K> |
keyMapper() |
void |
readExternal(ObjectInput in) |
void |
set(int i,
double v) |
int |
size() |
ValueMapper<V> |
valueMapper() |
void |
writeExternal(ObjectOutput out) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdatadestroypublic CacheVectorStorage()
public CacheVectorStorage(int size,
IgniteCache<K,V> cache,
VectorKeyMapper<K> keyMapper,
ValueMapper<V> valMapper)
size - Vector size.cache - Ignite cache.keyMapper - VectorKeyMapper to validate cache key.valMapper - ValueMapper to obtain value for given cache key.public IgniteCache<K,V> cache()
public VectorKeyMapper<K> keyMapper()
public ValueMapper<V> valueMapper()
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 void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic boolean isSequentialAccess()
isSequentialAccess in interface StorageOpsMetricspublic boolean isDense()
isDense in interface StorageOpsMetricspublic boolean isRandomAccess()
isRandomAccess in interface StorageOpsMetricspublic boolean isDistributed()
isDistributed in interface StorageOpsMetricspublic boolean isArrayBased()
isArrayBased in interface StorageOpsMetrics
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018