Package org.datavec.api.io.filters
Class RandomPathFilter
- java.lang.Object
-
- org.datavec.api.io.filters.RandomPathFilter
-
- All Implemented Interfaces:
PathFilter
- Direct Known Subclasses:
BalancedPathFilter
public class RandomPathFilter extends Object implements PathFilter
Randomizes the order of paths in an array.- Author:
- saudet
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]extensionsprotected longmaxPathsprotected Randomrandom
-
Constructor Summary
Constructors Constructor Description RandomPathFilter(Random random, String... extensions)Callsthis(random, extensions, 0).RandomPathFilter(Random random, String[] extensions, long maxPaths)Constructs an instance of the PathFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaccept(String name)URI[]filter(URI[] paths)
-