1 19 20 package org.netbeans.api.gsf; 21 22 import java.io.IOException ; 23 import java.util.List ; 24 import java.util.Map ; 25 import java.util.Set ; 26 27 33 public abstract class Index { 34 35 public Index() { 36 } 37 38 43 public enum NameKind { 44 49 EXACT_NAME, 50 51 55 PREFIX, 56 57 61 CASE_INSENSITIVE_PREFIX, 62 63 67 CAMEL_CASE, 68 69 70 74 REGEXP, 75 76 80 CASE_INSENSITIVE_REGEXP 81 }; 82 83 84 89 public enum SearchKind { 90 91 94 IMPLEMENTORS, 95 96 99 METHOD_REFERENCES, 100 101 104 FIELD_REFERENCES, 105 106 109 TYPE_REFERENCES, 110 }; 111 112 115 public enum SearchScope { 116 119 SOURCE, 120 123 DEPENDENCIES 124 }; 125 126 144 public interface SearchResult { 145 String getValue(String key); 146 String [] getValues(String key); 147 148 Object getIndex(); Object getDocument(); Object getIndexReader(); java.io.File getSegment(); int getDocumentNumber(); 155 } 156 157 159 public abstract void gsfStore(Set <Map <String ,String >> fieldToData, Set <Map <String ,String >> noIndexData, Map <String ,String > toDelete) throws IOException ; 163 public abstract void gsfSearch(final String primaryField, final String name, final NameKind kind, 164 final Set <SearchScope> scope, final Set <SearchResult> result) throws IOException ; 165 } 166 | Popular Tags |