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 boolean
contains(String key)
DataSet
get(String key)
boolean
isComplete(String namespace)
Check is given namespace has complete cache of the data setvoid
put(String key, DataSet dataSet)
void
setComplete(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:DataSetCache
Check is given namespace has complete cache of the data set- Specified by:
isComplete
in interfaceDataSetCache
- Returns:
- true if namespace is fully cached
-
setComplete
public void setComplete(String namespace, boolean value)
Description copied from interface:DataSetCache
Sets the flag indicating whether given namespace is fully cached- Specified by:
setComplete
in interfaceDataSetCache
-
get
public DataSet get(String key)
- Specified by:
get
in interfaceDataSetCache
-
put
public void put(String key, DataSet dataSet)
- Specified by:
put
in interfaceDataSetCache
-
contains
public boolean contains(String key)
- Specified by:
contains
in interfaceDataSetCache
-
-