it.unipd.dei.ims.nestor.experiment.tree
Class QueryOperations

java.lang.Object
  extended by it.unipd.dei.ims.nestor.experiment.tree.QueryOperations

public class QueryOperations
extends java.lang.Object


Constructor Summary
QueryOperations()
           
 
Method Summary
static java.util.ArrayList<java.lang.Integer> getAncestors(Tree tree, java.lang.Integer idNode)
           
static java.lang.String[] getAncestorsContent(Tree tree, java.util.HashMap<java.lang.Integer,java.lang.String> content, java.lang.Integer idNode)
           
static java.util.ArrayList<java.lang.Integer> getAncestorsContent(Tree tree, java.lang.Integer idNode)
           
static java.util.ArrayList<java.lang.Integer> getChildren(Tree tree, java.lang.Integer idNode)
           
static java.lang.String[] getChildrenContent(Tree tree, java.util.HashMap<java.lang.Integer,java.lang.String> content, java.lang.Integer idNode)
           
static java.util.ArrayList<java.lang.Integer> getChildrenContent(Tree tree, java.lang.Integer idNode)
           
static java.util.ArrayList<java.lang.Integer> getDescendants(Tree tree, java.lang.Integer idNode)
           
static java.lang.String[] getDescendantsContent(Tree tree, java.util.HashMap<java.lang.Integer,java.lang.String> content, java.lang.Integer idNode)
           
static java.util.ArrayList<java.lang.Integer> getDescendantsContent(Tree tree, java.lang.Integer idNode)
           
static java.lang.Integer getParent(Tree tree, java.lang.Integer idNode)
           
static java.lang.String[] getParentContent(Tree tree, java.util.HashMap<java.lang.Integer,java.lang.String> content, java.lang.Integer idNode)
           
static java.util.ArrayList<java.lang.Integer> getParentContent(Tree tree, java.lang.Integer idNode)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryOperations

public QueryOperations()
Method Detail

getParent

public static java.lang.Integer getParent(Tree tree,
                                          java.lang.Integer idNode)

getParentContent

public static java.util.ArrayList<java.lang.Integer> getParentContent(Tree tree,
                                                                      java.lang.Integer idNode)

getParentContent

public static java.lang.String[] getParentContent(Tree tree,
                                                  java.util.HashMap<java.lang.Integer,java.lang.String> content,
                                                  java.lang.Integer idNode)

getChildren

public static java.util.ArrayList<java.lang.Integer> getChildren(Tree tree,
                                                                 java.lang.Integer idNode)

getChildrenContent

public static java.util.ArrayList<java.lang.Integer> getChildrenContent(Tree tree,
                                                                        java.lang.Integer idNode)

getChildrenContent

public static java.lang.String[] getChildrenContent(Tree tree,
                                                    java.util.HashMap<java.lang.Integer,java.lang.String> content,
                                                    java.lang.Integer idNode)

getDescendants

public static java.util.ArrayList<java.lang.Integer> getDescendants(Tree tree,
                                                                    java.lang.Integer idNode)

getDescendantsContent

public static java.util.ArrayList<java.lang.Integer> getDescendantsContent(Tree tree,
                                                                           java.lang.Integer idNode)

getDescendantsContent

public static java.lang.String[] getDescendantsContent(Tree tree,
                                                       java.util.HashMap<java.lang.Integer,java.lang.String> content,
                                                       java.lang.Integer idNode)

getAncestors

public static java.util.ArrayList<java.lang.Integer> getAncestors(Tree tree,
                                                                  java.lang.Integer idNode)

getAncestorsContent

public static java.util.ArrayList<java.lang.Integer> getAncestorsContent(Tree tree,
                                                                         java.lang.Integer idNode)

getAncestorsContent

public static java.lang.String[] getAncestorsContent(Tree tree,
                                                     java.util.HashMap<java.lang.Integer,java.lang.String> content,
                                                     java.lang.Integer idNode)