File: index.rb

package info (click to toggle)
libdb-ruby 0.6.5-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,596 kB
  • ctags: 3,978
  • sloc: ansic: 13,984; cpp: 8,739; ruby: 7,864; sh: 47; makefile: 6
file content (147 lines) | stat: -rw-r--r-- 4,258 bytes parent folder | download | duplicates (11)
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
138
139
140
141
142
143
144
145
146
147
# The XML::Index class encapsulates the indexing specification of a container.
# An indexing specification can be retrieved with the XML::Container#index
# method, and modified using the XML::Container#index= method.
#
# Note that adding an index to a container results in re-indexing all of
# the documents in that container, which can take a very long time. It is 
# good practice to design an application to add useful indices before 
# populating a container.
class BDB::XML::Index
   # call-seq:
   #    add(uri, name, index)
   #    add(uri, name, type, syntax)
   #
   # Add a new index
   #
   # * <em>uri</em>
   #   The namespace for the element
   #
   # * <em>name</em>
   #   The name parameter provides the fully qualified element type
   #   to be indexed.
   #
   # * <em>index</em>
   #   The index string is a comma separated list of strings that represent 
   #   the indexing strategy
   #
   # * <em>type</em> series of  values bitwise OR'd together to form the 
   #   index strategy.
   #
   # * <em>syntax</em> Identifies the type of information being indexed
   def  add(uri, name, type, syntax)
   end

   # Adds an indexing strategy to the default index specification.
   def add_default(index)
   end

   # return the default index specification
   def default
   end
   
   # call-seq:
   #    delete(uri, name, index)
   #    delete(uri, name, type, syntax)
   #
   # Delete the specified index
   #
   # * <em>uri</em>
   #   The namespace for the element
   #
   # * <em>name</em>
   #   The name parameter provides the fully qualified element type
   #   to be indexed.
   #
   # * <em>index</em>
   #   The index string is a comma separated list of strings that represent 
   #   the indexing strategy
   #
   # * <em>type</em> series of  values bitwise OR'd together to form the 
   #   index strategy.
   #
   # * <em>syntax</em> Identifies the type of information being indexed
   def  delete(uri, name, type, syntax)
   end

   # call-seq:
   #    delete_default(index)
   #    delete_default(type, syntax)
   #
   # Delete the identified index from the default index specification.
   #
   # * <em>index</em>
   #   The index string is a comma separated list of strings that represent 
   #   the indexing strategy
   #
   # * <em>type</em> series of  values bitwise OR'd together to form the 
   #   index strategy.
   #
   # * <em>syntax</em> Identifies the type of information being indexed
   def delete_default(type, syntax)
   end

   #Iterate over all indexes
   #
   def  each 
      yield uri, name, index
   end
   
   #Find the indexing startegy associated with <em>uri</em>, and <em>name</em>
   #
   #Return <em>nil</em> is no indexing strategy was defined
   #
   def  find(uri = "", name)
   end

   # Return the manager associated with the Index
   def manager
   end
   
   # call-seq:
   #    replace(uri, name, index)
   #    replace(uri, name, type, syntax)
   #
   # Replaces the indexing strategies for a named document or metadata node.
   # All existing indexing strategies for that node are deleted, and the 
   # indexing strategy identified by this method is set for the node.
   #
   # * <em>uri</em>
   #   The namespace for the element
   #
   # * <em>name</em>
   #   The name parameter provides the fully qualified element type
   #   to be indexed.
   #
   # * <em>index</em>
   #   The index string is a comma separated list of strings that represent 
   #   the indexing strategy
   #
   # * <em>type</em> series of  values bitwise OR'd together to form the 
   #   index strategy.
   #
   # * <em>syntax</em> Identifies the type of information being indexed
   def  replace(uri, name, type, syntax)
   end

   # call-seq:
   #    replace_default(index)
   #    replace_default(type, syntax)
   #
   # Replace the default indexing strategy for the container. 
   #
   # * <em>index</em>
   #   The index string is a comma separated list of strings that represent 
   #   the indexing strategy
   #
   # * <em>type</em> series of  values bitwise OR'd together to form the 
   #   index strategy.
   #
   # * <em>syntax</em> Identifies the type of information being indexed
   def replace_default(type, syntax)
   end
   
   #Return an Array of all indexes
   #
   def  to_a
   end
end