File: index.rd

package info (click to toggle)
libdb2-ruby 0.5.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,352 kB
  • ctags: 2,743
  • sloc: ansic: 11,156; ruby: 6,199; cpp: 6,064; makefile: 86; sh: 31
file content (75 lines) | stat: -rw-r--r-- 1,778 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
=begin
== BDB::XML::Index

The index specification

# module BDB
# module XML
# class Index
# class << self
=== Class Methods

--- allocate
    Allocate a new Index object
# end

=== Methods

--- add(uri = "", name, index)

    add a new index

    : ((|uri|))
      The namespace for the element (optional)

    : ((|name|))
      The name parameter provides the fully qualified element type
      to be indexed.

    : ((|index|))
      The index string is a comma separated list of the following indexing
      strategy names

         : none-none-none-none 
         : node-element-presence 
         : node-attribute-presence 
         : node-element-equality-string 
         : node-element-equality-number 
         : node-element-substring-string 
         : node-attribute-equality-string 
         : node-attribute-equality-number 
         : node-attribute-substring-string 
         : edge-element-presence 
         : edge-attribute-presence 
         : edge-element-equality-string 
         : edge-element-equality-number 
         : edge-element-substring-string 
         : edge-attribute-equality-string 
         : edge-attribute-equality-number 
         : edge-attribute-substring-string 

--- delete(uri = "", name, index)
    Delete the specified index

--- each {|uri, name, index| ... }
    Iterate over all indexes

--- initialize([[uri0, name0, index0] [, [uri1, name1, index1], ... ]])
    Initialize the index with the optional values [uri, name, value]

--- find(uri = "", name)
    Find the indexing startegy associated with ((|uri|)), and ((|name|))

    Return ((|nil|)) is no indexing strategy was defined

--- replace(uri = "", name, index)
    Replace the specified index

--- to_a
    Return an Array of all indexes

# end
# end
# end

=end