public class RecordAccessorClient extends RecordAccessor
RecordAccessorServlet, and retrieves the various data
through servlet invocations. The data received from the servlet is
transmitted as serialized objects to enhance performance. The data received
must be generated from a SemanticAccessor on the server side.| Constructor and Description |
|---|
RecordAccessorClient()
Creates a new SemanticAccessorClient object.
|
RecordAccessorClient(java.net.URL documentBase)
Creates a new DataAccessorClient object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
extendGraph(java.lang.String graphName,
Graph<DataRecord,DataRecord> graph,
DataRecord node)
Extend the given graph around the specified node.
|
boolean |
extendTree(java.lang.String treeName,
Tree<DataRecord> tree,
DataRecord node)
Extend the given tree around the specified node.
|
java.util.Set<DataRecord> |
getDataset(java.lang.String datasetName)
Retrieve the dataset from the underlying data source.
|
Graph<DataRecord,DataRecord> |
getGraph(java.lang.String graphName)
Retrieve the graph from the underlying data source.
|
Grid<DataRecord> |
getGrid(java.lang.String gridName)
Retrieve the grid from the underlying data source.
|
Tree<DataRecord> |
getTree(java.lang.String treeName)
Retrieve the tree from the underlying data source.
|
protected java.util.Set<DataRecord> |
retrieveRecords(DataTemplate template)
Stub implementation of retrieveRecords.
|
void |
setDocBase(java.lang.String docBaseStr)
Set the document base for this SemanticAccessorClient.
|
void |
setDocBase(java.net.URL documentBase)
Set the document base for this SemanticAccessorClient.
|
void |
setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Set any initialization parameters required by the
SemanticAccessorClient.
|
void |
setQuery(java.lang.String queryString)
Set the query string used to retrieve records.
|
addFieldHandler, addToGraph, addToTree, createReferenceNode, getFieldHandler, getMaxRecords, getReasoner, getStructureReasoners, setMaxRecords, setReasoner, setReasoneraddStructure, addTemplate, getDatasetNames, getGraphNames, getGridNames, getSpec, getStructureType, getTemplate, getTemplateNames, getTreeNames, setConfig, setConfigFile, setConfigFilepublic RecordAccessorClient()
public RecordAccessorClient(java.net.URL documentBase)
documentBase - The document basepublic boolean extendGraph(java.lang.String graphName,
Graph<DataRecord,DataRecord> graph,
DataRecord node)
extendGraph in interface DataAccessor<DataRecord,DataRecord>extendGraph in class RecordAccessorgraphName - The name of the graphgraph - The graph to extendnode - The node to use as an extension point.public boolean extendTree(java.lang.String treeName,
Tree<DataRecord> tree,
DataRecord node)
extendTree in interface DataAccessor<DataRecord,DataRecord>extendTree in class RecordAccessortreeName - The name of the graphtree - The graph to extendnode - The node to use as an extension point.public java.util.Set<DataRecord> getDataset(java.lang.String datasetName)
getDataset in interface DataAccessor<DataRecord,DataRecord>getDataset in class RecordAccessordatasetName - the name of the datasetpublic Graph<DataRecord,DataRecord> getGraph(java.lang.String graphName)
getGraph in interface DataAccessor<DataRecord,DataRecord>getGraph in class RecordAccessorgraphName - the name of the graphpublic Grid<DataRecord> getGrid(java.lang.String gridName)
getGrid in interface DataAccessor<DataRecord,DataRecord>getGrid in class RecordAccessorgridName - the name of the gridpublic Tree<DataRecord> getTree(java.lang.String treeName)
getTree in interface DataAccessor<DataRecord,DataRecord>getTree in class RecordAccessortreeName - the name of the treeprotected java.util.Set<DataRecord> retrieveRecords(DataTemplate template)
retrieveRecords in class RecordAccessortemplate - the DataTemplatepublic void setDocBase(java.lang.String docBaseStr)
docBaseStr - The document basepublic void setDocBase(java.net.URL documentBase)
documentBase - The document basepublic void setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters - a map of initialization parameterspublic void setQuery(java.lang.String queryString)
setQuery in class AbstractDataAccessor<DataRecord,DataRecord>queryString - the query string