public class InstanceTreeBuilderImpl extends Object implements InstanceTreeBuilder
Constructor and Description |
---|
InstanceTreeBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addChildrenToNodes(Map<NodeKey,Node> nodeKeyMap,
QueryMappingInfo qInfo) |
DataSource |
getDataSource() |
Map<Long,Node> |
loadInstanceTrees(String filename) |
protected Map<Long,Node> |
loadInstanceTrees(String instanceIDField,
QueryMappingInfo qInfo,
Map<NodeKey,Node> nodeKeyMap) |
Map<Long,Node> |
loadInstanceTrees(TreeMappingInfo mappingInfo)
Generate trees from the results of a sorted query
|
protected void |
prepare(String prepareScript,
String prepareScriptDelimiter)
run 'preparation' statements.
|
void |
serializeInstanceTrees(TreeMappingInfo mappingInfo,
String filename) |
void |
setDataSource(DataSource dataSource) |
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
public Map<Long,Node> loadInstanceTrees(String filename) throws IOException, ClassNotFoundException
loadInstanceTrees
in interface InstanceTreeBuilder
IOException
ClassNotFoundException
public void serializeInstanceTrees(TreeMappingInfo mappingInfo, String filename) throws IOException
serializeInstanceTrees
in interface InstanceTreeBuilder
IOException
public Map<Long,Node> loadInstanceTrees(TreeMappingInfo mappingInfo)
InstanceTreeBuilder
loadInstanceTrees
in interface InstanceTreeBuilder
protected void prepare(String prepareScript, String prepareScriptDelimiter)
prepareStatementList
- protected Map<Long,Node> loadInstanceTrees(String instanceIDField, QueryMappingInfo qInfo, Map<NodeKey,Node> nodeKeyMap)
public void addChildrenToNodes(Map<NodeKey,Node> nodeKeyMap, QueryMappingInfo qInfo)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.