File: indexlookup.rd

package info (click to toggle)
libdb-ruby 0.6.5-6
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,612 kB
  • ctags: 3,979
  • sloc: ansic: 13,984; cpp: 8,739; ruby: 7,864; sh: 47; makefile: 8
file content (137 lines) | stat: -rw-r--r-- 3,965 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
=begin
== BDB::XML::IndexLookup

The XML::IndexLookup class encapsulates the context within which an
index lookup operation can be performed on an XML::Container object. The
lookup is performed using an XML::IndexLookup object, and a series of
methods of that object that specify how the lookup is to be
performed. Using these methods, it is possible to specify inequality
lookups, range lookups, and simple value lookups, as well as the sort
order of the results. By default, results are returned in the sort
order of the index.

XML::IndexLookup objects are created using XML::Manager::create_index_lookup,
or Txn::create_index_lookup

The following constant are defined ((|NONE|)), ((|EQ|)), ((|GT|)),
((|GTE|)), ((|LT|)), ((|LTE|))

=== Methods

--- container
    Retrieve the current container
   
--- container=(con)
    Sets the container to be used for the index lookup operation. 
    The same object may be used for lookup in multiple containers by changing 
    this configuration.

--- execute(context = nil, flags = 0)
    Executes the index lookup operation specified by the configuration.
   
    : ((|context|))
      a XML::QueryContext object to use for this query

    : ((|flags|))
      the flags must be set to ((|0|)), OR'ing one of the value
      ((|BDB::XML::LAZY_DOCS|)), ((|BDB::XML::REVERSE_ORDER|)),
      ((|BDB::XML::CACHE_DOCUMENTS|)), ((|BDB::DEGREE_2|)),
      ((|BDB::DIRTY_READ|)), ((|BDB::RMW|))


--- high_bound
    Retrieve the operation and value used for the upper bound


--- high_bound=([value, operation])
    call-seq:
      self.high_bound = [value, operation]

    Sets the operation and value to be used for the upper bound for a range 
    index lookup operation. The high bound must be specified to indicate a 
    range lookup.

--- index
    Retrieve the indexing strategy

--- index=(string)
    Set the indexing strategy to be used for the index lookup operation. 
    Only one index may be specified, and substring indexes are not supported.

--- low_bound
    Retrieve the operation and value used for the lower bound


--- low_bound=([value, operation])
    call-seq:
      self.low_bound = [value, operation]

    Sets the operation and value to be used for the index lookup operation.
    If the operation is a simple inequality lookup, the lower bound is used as 
    the single value and operation for the lookup. If the operation is a range
    lookup, in which an upper bound is specified, the lower bound is used 
    as the lower boundary value and operation for the lookup.


--- manager
    Return the manager associated with the IndexLookup


--- node
    Retrieve the namespace and the name of the node


--- node_uri
    Retrieve the namespace of the node
 

--- node_name
    Retrieve the name of the node


--- node=([uri, name])
    Sets the name of the node to be used along with the indexing strategy
    for the index lookup operation.
   
    : ((|uri|))
      The namespace of the node to be used. The default namespace is selected 
      by passing an empty string for the namespace
    
    : ((|name|))
      The name of the element or attribute node to be used.
   

--- parent
    Retrieve the namespace and the name of the parent node


--- parent_uri
    Retrieve the namespace of the parent node
 

--- parent_name
    Retrieve the name of the parent node


--- parent=([uri, name])
    Sets the name of the parent node to be used for an edge index lookup
    operation. If the index is not an edge index, this configuration is ignored.
   
    : ((|uri|))
      The namespace of the parent node to be used. The default namespace is 
      selected  by passing an empty string for the namespace
   
    : ((|name|))
      The name of the parent element node to be used.
   

--- transaction
    Return the transaction associated with the IndexLookup, if it was opened
    in a transaction


--- transaction?
    Return true if the IndexLookup was opened in a transaction


=end