public class CompressedRamStorage<T> extends Object implements AbstractStorage<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
CompressedRamStorage.Builder<T> |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
This method purges everything from storage
|
boolean |
containsKey(T key)
This method checks, if storage contains specified key
|
void |
drop(T key)
This method removes value by specified key
|
INDArray |
get(T key)
Get object from the storage, by key
|
long |
size()
This method returns number of entries available in storage
|
void |
store(T key,
double[] array)
Store object into storage
|
void |
store(T key,
float[] array)
Store object into storage
|
void |
store(T key,
INDArray object)
Store object into storage
|
boolean |
storeIfAbsent(T key,
INDArray object)
Store object into storage, if it doesn't exist
|
public void store(T key, INDArray object)
store in interface AbstractStorage<T>key - object - public void store(T key, float[] array)
store in interface AbstractStorage<T>key - array - public void store(T key, double[] array)
store in interface AbstractStorage<T>key - array - public boolean storeIfAbsent(T key, INDArray object)
storeIfAbsent in interface AbstractStorage<T>key - object - public INDArray get(T key)
get in interface AbstractStorage<T>key - public boolean containsKey(T key)
containsKey in interface AbstractStorage<T>key - public void clear()
clear in interface AbstractStorage<T>public void drop(T key)
drop in interface AbstractStorage<T>key - public long size()
size in interface AbstractStorage<T>Copyright © 2022. All rights reserved.