Project

General

Profile

« Previous | Next » 

Revision 2376

Added by sgarg over 19 years ago

Modifying code so that nodedata is stored in xml_index table next to the paths.
This helps in making the search faster.

View differences:

PathIndexEntry.java
27 27
/**
28 28
 * PathIndexEntry contains all of the data fields needed to insert an path into
29 29
 * the xml_index table.
30
 * 
30
 *
31 31
 * @author jones
32 32
 */
33 33
public class PathIndexEntry
34 34
{
35 35
    protected long nodeId;
36 36
    protected String path;
37
    protected String docid; 
37
    protected String docid;
38 38
    protected String docType;
39 39
    protected long parentId;
40
    
40
    protected String nodedata;
41

  
41 42
    /**
42 43
     * Construct a new PathIndexEntry.
43
     * 
44
     *
44 45
     * @param nodeId the node identifier
45 46
     * @param path the path in the xml document
46 47
     * @param docid the document identifier
47 48
     * @param docType the document type
48 49
     * @param parentId the identifier of the parent node
49 50
     */
50
    public PathIndexEntry(long nodeId, String path, String docid, 
51
            String docType, long parentId)
51
    public PathIndexEntry(long nodeId, String path, String docid,
52
            String docType, long parentId, String nodedata)
52 53
    {
53 54
        this.nodeId = nodeId;
54 55
        this.path = path;
55 56
        this.docid = docid;
56 57
        this.docType = docType;
57 58
        this.parentId = parentId;
59
        this.nodedata = nodedata;
58 60
    }
59 61
}

Also available in: Unified diff