public class StructureReader extends RecordAccessor
StructureXmlWriter| Constructor and Description |
|---|
StructureReader() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<DataRecord> |
getDataset(java.lang.String datasetName)
Get the named dataset.
|
Graph<DataRecord,DataRecord> |
getGraph(java.lang.String graphName)
Get the named graph.
|
Grid<DataRecord> |
getGrid(java.lang.String gridName)
Get the named grid.
|
Tree<DataRecord> |
getTree(java.lang.String treeName)
Get the named tree.
|
void |
loadDataFile(java.lang.String dataFile)
Set the configuration from a local file.
|
void |
loadDataFile(java.net.URL dataUrl)
Set the configuration from a URL.
|
protected java.util.Set<DataRecord> |
retrieveRecords(DataTemplate template)
Retrieve a set of data records for a particular DataTemplate.
|
void |
setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Set the initialization parameters.
|
void |
setQuery(java.lang.String query)
Set the query string used to retrieve records.
|
addFieldHandler, addToGraph, addToTree, createReferenceNode, extendGraph, extendTree, getFieldHandler, getMaxRecords, getReasoner, getStructureReasoners, setMaxRecords, setReasoner, setReasoneraddStructure, addTemplate, getDatasetNames, getGraphNames, getGridNames, getSpec, getStructureType, getTemplate, getTemplateNames, getTreeNames, setConfig, setConfigFile, setConfigFilepublic java.util.Set<DataRecord> getDataset(java.lang.String datasetName)
getDataset in interface DataAccessor<DataRecord,DataRecord>getDataset in class RecordAccessordatasetName - the named dataset, which should be a URL or file namepublic Graph<DataRecord,DataRecord> getGraph(java.lang.String graphName)
getGraph in interface DataAccessor<DataRecord,DataRecord>getGraph in class RecordAccessorgraphName - the named graph, which should be a URL or file namepublic Grid<DataRecord> getGrid(java.lang.String gridName)
getGrid in interface DataAccessor<DataRecord,DataRecord>getGrid in class RecordAccessorgridName - the named grid, which should be a URL or file namepublic Tree<DataRecord> getTree(java.lang.String treeName)
getTree in interface DataAccessor<DataRecord,DataRecord>getTree in class RecordAccessortreeName - the named tree, which should be a URL or file namepublic void loadDataFile(java.lang.String dataFile)
throws java.io.FileNotFoundException
loadData(InputStream)dataFile - The path to the configuration filejava.io.FileNotFoundException - if the file is not foundpublic void loadDataFile(java.net.URL dataUrl)
throws java.io.IOException
loadData(InputStream)dataUrl - the configuration file as a URLjava.io.IOException - if there is a problem opening or reading from the
URLprotected java.util.Set<DataRecord> retrieveRecords(DataTemplate template)
retrieveRecords in class RecordAccessortemplate - The data template specifying field mappings and
descriptionspublic void setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters - the initialization parameterspublic void setQuery(java.lang.String query)
setQuery in class AbstractDataAccessor<DataRecord,DataRecord>query - the query string