Class InFileDataSetCache
- java.lang.Object
-
- org.nd4j.linalg.dataset.api.iterator.cache.InFileDataSetCache
-
- All Implemented Interfaces:
DataSetCache
public class InFileDataSetCache extends Object implements DataSetCache
-
-
Constructor Summary
Constructors Constructor Description InFileDataSetCache(File cacheDirectory)InFileDataSetCache(String cacheDirectory)InFileDataSetCache(Path cacheDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(String key)DataSetget(String key)booleanisComplete(String namespace)Check is given namespace has complete cache of the data setvoidput(String key, DataSet dataSet)voidsetComplete(String namespace, boolean value)Sets the flag indicating whether given namespace is fully cached
-
-
-
Method Detail
-
isComplete
public boolean isComplete(String namespace)
Description copied from interface:DataSetCacheCheck is given namespace has complete cache of the data set- Specified by:
isCompletein interfaceDataSetCache- Returns:
- true if namespace is fully cached
-
setComplete
public void setComplete(String namespace, boolean value)
Description copied from interface:DataSetCacheSets the flag indicating whether given namespace is fully cached- Specified by:
setCompletein interfaceDataSetCache
-
get
public DataSet get(String key)
- Specified by:
getin interfaceDataSetCache
-
put
public void put(String key, DataSet dataSet)
- Specified by:
putin interfaceDataSetCache
-
contains
public boolean contains(String key)
- Specified by:
containsin interfaceDataSetCache
-
-