org.apache.accumulo.examples.wikisearch.logic
Class ContentLogic
java.lang.Object
org.apache.accumulo.examples.wikisearch.logic.ContentLogic
public class ContentLogic
- extends Object
This query table implementation returns a Results object that contains documents from the wiki table. The query will contain the partition id, wikitype, and
UID so that we can seek directly to the document. The document is stored as base64 compressed binary in the Accumulo table. We will decompress the data so
that it is base64 encoded binary data in the Results object.
The query that needs to be passed to the web service is: DOCUMENT:partitionId/wikitype/uid.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentLogic
public ContentLogic()
getTableName
public String getTableName()
setTableName
public void setTableName(String tableName)
runQuery
public Results runQuery(Connector connector,
String query,
List<String> authorizations)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.