public class Locate
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Locate.LocateOpts
All possible options for "locate" method.
|
static class |
Locate.Stats
Locate module result object
|
Modifier and Type | Field and Description |
---|---|
private static LocalCall<Locate.Stats> |
STATS |
private static LocalCall<java.util.List<java.lang.String>> |
UPDATEDB |
private static LocalCall<java.util.List<java.lang.String>> |
VERSION |
Constructor and Description |
---|
Locate() |
Modifier and Type | Method and Description |
---|---|
static LocalCall<java.util.List<java.lang.String>> |
locate(java.lang.String pattern,
java.util.Optional<java.lang.String> database,
java.util.Optional<java.lang.Integer> limit,
java.util.Optional<Locate.LocateOpts> options)
Performs a file lookup.
|
static LocalCall<Locate.Stats> |
stats()
Returns statistics about the locate database.
|
static LocalCall<java.util.List<java.lang.String>> |
updatedb()
Updates the locate database.
|
static LocalCall<java.util.List<java.lang.String>> |
version()
Returns the version of locate.
|
private static final LocalCall<java.util.List<java.lang.String>> VERSION
private static final LocalCall<java.util.List<java.lang.String>> UPDATEDB
private static final LocalCall<Locate.Stats> STATS
public static LocalCall<java.util.List<java.lang.String>> version()
LocalCall
object to make the callpublic static LocalCall<java.util.List<java.lang.String>> updatedb()
LocalCall
object to make the callpublic static LocalCall<Locate.Stats> stats()
LocalCall
object to make the callpublic static LocalCall<java.util.List<java.lang.String>> locate(java.lang.String pattern, java.util.Optional<java.lang.String> database, java.util.Optional<java.lang.Integer> limit, java.util.Optional<Locate.LocateOpts> options)
pattern
- The pattern to searchdatabase
- Replace the default database.limit
- Set the maximum number of results.options
- More options to mofify the search.LocalCall
object to make the call