Project

General

Profile

« Previous | Next » 

Revision 7522

added more classes to the index diagram to reflect current state of the code - needs to be updated to include plan for implementation (e.g., DocType object is not what we want). http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5884

View differences:

query-index.rst
75 75
..
76 76
  @startuml images/indexing-class-diagram.png
77 77
  
78
	package index {
78
	package index.model {
79 79
		  
80
		class FieldSpec {
80
		abstract class FieldSpec {
81 81
			- String name
82 82
			+ abstract String[] extract(Reader s);
83 83
		}
......
88 88
		class XpathIndexField {
89 89
			- String xpath
90 90
		}
91
		
92
		class MCIndexDocDef {
93
			- Set<FieldSpec> fields
94
			+ add(FieldSpec)
95
			+ remove(FieldSpec)
96
		}
91 97
		    
92 98
	}
93 99
	
94 100
	FieldSpec <|-- D1IndexField
95 101
	FieldSpec <|-- XpathIndexField
96 102
	
103
	MCIndexDocDef  o--"*" FieldSpec
104
	
105
	package index {
106
		  
107
		interface GenericIndex {
108
			+ insert(String, Map<String, String[]>)
109
			+ String [] query(String)
110
			+ remove(String)
111
			+ update(String, Map<String, String[]>)
112
		}
113
		
114
		class D1Index {
115
		}
116
		
117
		class SolrjIndex {
118
		}
119
		
120
		class Embedded {
121
		}
122
		
123
		class LuceneIndex {
124
		}
125
		
126
		class MetacatIndex {
127
			+ remove(String)
128
			+ retrieve(String)
129
			+ update(String, Reader)
130
		}
131
		
132
		class DocType {
133
			+ boolean isEml()
134
			+ boolean isSysmeta()
135
			+ boolean isSyseml()
136
			+ boolean isSysdryad()
137
			+ boolean isSysfgdc()
138
		}
139
	
140
	}
141
	
142
	GenericIndex <|-- D1Index
143
	GenericIndex <|-- SolrjIndex
144
	SolrjIndex <|-- Embedded
145
	GenericIndex <|-- LuceneIndex
97 146
  
98 147
  @enduml

Also available in: Unified diff