org.apache.accumulo.examples.wikisearch.query
Class Query

java.lang.Object
  extended by org.apache.accumulo.examples.wikisearch.query.Query
All Implemented Interfaces:
IQuery

public class Query
extends Object
implements IQuery


Constructor Summary
Query()
           
 
Method Summary
 void close()
           
 Results content(String query, String auths)
           
 String html(String query, String auths)
           
 void init()
           
 Results json(String query, String auths)
           
 Results query(String query, String auths)
          calls the query logic with the parameters, returns results
 Results xml(String query, String auths)
           
 Results yaml(String query, String auths)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query()
Method Detail

init

@PostConstruct
public void init()

close

@PreDestroy
public void close()

html

public String html(String query,
                   String auths)
Specified by:
html in interface IQuery

xml

public Results xml(String query,
                   String auths)
Specified by:
xml in interface IQuery

json

public Results json(String query,
                    String auths)
Specified by:
json in interface IQuery

yaml

public Results yaml(String query,
                    String auths)
Specified by:
yaml in interface IQuery

content

public Results content(String query,
                       String auths)
Specified by:
content in interface IQuery

query

public Results query(String query,
                     String auths)
calls the query logic with the parameters, returns results

Parameters:
query -
auths -
Returns:
The results of a query
Throws:
ParseException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.