List<String> keys = new ArrayList<String>();
keys.add(catalog_obj.getName());
// Add the SQL statements
if (catalog_obj instanceof Statement) {
Statement catalog_stmt = (Statement)catalog_obj;
keys.add(catalog_stmt.getSqltext());
}
for (String k : keys) {
k = k.toLowerCase();
if (!this.name_node_xref.containsKey(k)) {
this.name_node_xref.put(k, new HashSet<DefaultMutableTreeNode>());
}
this.name_node_xref.get(k).add(node);
} // FOR
if (catalog_obj instanceof Statement) {
Statement catalog_stmt = (Statement)catalog_obj;
try {
AbstractPlanNode root = PlanNodeUtil.getRootPlanNodeForStatement(catalog_stmt, false);
for (Integer guid : PlanNodeUtil.getAllPlanColumnGuids(root)) {
if (this.plannode_node_xref.containsKey(guid) == false) {
this.plannode_node_xref.put(guid, new HashSet<DefaultMutableTreeNode>());