public class Locate extends 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
|
Constructor and Description |
---|
Locate() |
Modifier and Type | Method and Description |
---|---|
static LocalCall<List<String>> |
locate(String pattern,
Optional<String> database,
Optional<Integer> limit,
Optional<Locate.LocateOpts> options)
Performs a file lookup.
|
static LocalCall<Locate.Stats> |
stats()
Returns statistics about the locate database.
|
static LocalCall<List<String>> |
updatedb()
Updates the locate database.
|
static LocalCall<List<String>> |
version()
Returns the version of locate.
|
public static LocalCall<List<String>> version()
LocalCall
object to make the callpublic static LocalCall<List<String>> updatedb()
LocalCall
object to make the callpublic static LocalCall<Locate.Stats> stats()
LocalCall
object to make the callpublic static LocalCall<List<String>> locate(String pattern, Optional<String> database, Optional<Integer> limit, 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 callCopyright © 2016. All rights reserved.