public class DelimitedAccessor extends RecordAccessor
| Constructor and Description |
|---|
DelimitedAccessor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCacheLimit()
Get the cache limit for this accessor.
|
protected java.util.Set<DataRecord> |
retrieveRecords(DataTemplate template)
Retrieve a set of data records for a particular DataTemplate.
|
void |
setCacheLimit(int limit)
Set the cache limit for this accessor.
|
void |
setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Set any initialization parameters required by this accessor.
|
void |
setQuery(java.lang.String queryString)
Set the query string used to retrieve records.
|
addFieldHandler, addToGraph, addToTree, createReferenceNode, extendGraph, extendTree, getDataset, getFieldHandler, getGraph, getGrid, getMaxRecords, getReasoner, getStructureReasoners, getTree, setMaxRecords, setReasoner, setReasoneraddStructure, addTemplate, getDatasetNames, getGraphNames, getGridNames, getSpec, getStructureType, getTemplate, getTemplateNames, getTreeNames, setConfig, setConfigFile, setConfigFilepublic int getCacheLimit()
protected java.util.Set<DataRecord> retrieveRecords(DataTemplate template)
retrieveRecords in class RecordAccessortemplate - The data template specifying field mappings and
descriptionspublic void setCacheLimit(int limit)
limit - the cache limitpublic void setInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
dataFile, which
specifies a path or URL for the data file to be read,
delimiter, which identifies the delimiter separating fields
in the file, and cacheLimit, which specifies the maximum
number of lines which can be cached.parameters - a map of initialization parameterspublic void setQuery(java.lang.String queryString)
setQuery in class AbstractDataAccessor<DataRecord,DataRecord>queryString - the query string