|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.lucenedemo.DemoActions
public class DemoActions
DemoActions does some basic operations on the Lucene index, to be used by DemoDriver to show base operations on Lucene.
| Constructor Summary | |
|---|---|
DemoActions(InfinispanDirectory index,
Cache cache)
|
|
| Method Summary | |
|---|---|
void |
addNewDocument(String line)
Creates a new document having just one field containing a string |
List<String> |
listAllDocuments()
Returns a list of the values of all stored fields |
List<Address> |
listAllMembers()
Returns a list of Addresses of all members in the cluster |
List<String> |
listStoredValuesMatchingQuery(org.apache.lucene.search.Query query)
Runs a Query and returns the stored field for each matching document |
org.apache.lucene.search.Query |
parseQuery(String queryLine)
Parses a query using the single field as default |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DemoActions(InfinispanDirectory index,
Cache cache)
| Method Detail |
|---|
public List<String> listStoredValuesMatchingQuery(org.apache.lucene.search.Query query)
IOExceptionpublic List<String> listAllDocuments()
IOException
public void addNewDocument(String line)
throws IOException
line - The text snippet to add
IOException
public org.apache.lucene.search.Query parseQuery(String queryLine)
throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseExceptionpublic List<Address> listAllMembers()
|
--> | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||