@@ -102,12 +102,7 @@ public boolean hasIndex(String field) {
102
102
*/
103
103
public Set <NitriteId > findEqualWithIndex (String field , Object value ) {
104
104
notNull (field , errorMessage ("field can not be null" , VE_FIND_EQUAL_INDEX_NULL_FIELD ));
105
- try {
106
- readLock .lock ();
107
- return indexedSearchService .findEqual (field , value );
108
- } finally {
109
- readLock .unlock ();
110
- }
105
+ return indexedSearchService .findEqual (field , value );
111
106
}
112
107
113
108
/**
@@ -120,12 +115,7 @@ public Set<NitriteId> findEqualWithIndex(String field, Object value) {
120
115
public Set <NitriteId > findGreaterThanWithIndex (String field , Comparable value ) {
121
116
notNull (field , errorMessage ("field can not be null" , VE_FIND_GT_INDEX_NULL_FIELD ));
122
117
notNull (value , errorMessage ("value can not be null" , VE_FIND_GT_INDEX_NULL_VALUE ));
123
- try {
124
- readLock .lock ();
125
- return indexedSearchService .findGreaterThan (field , value );
126
- } finally {
127
- readLock .unlock ();
128
- }
118
+ return indexedSearchService .findGreaterThan (field , value );
129
119
}
130
120
131
121
/**
@@ -138,12 +128,7 @@ public Set<NitriteId> findGreaterThanWithIndex(String field, Comparable value) {
138
128
public Set <NitriteId > findGreaterEqualWithIndex (String field , Comparable value ) {
139
129
notNull (field , errorMessage ("field can not be null" , VE_FIND_GTE_INDEX_NULL_FIELD ));
140
130
notNull (value , errorMessage ("value can not be null" , VE_FIND_GTE_INDEX_NULL_VALUE ));
141
- try {
142
- readLock .lock ();
143
- return indexedSearchService .findGreaterEqual (field , value );
144
- } finally {
145
- readLock .unlock ();
146
- }
131
+ return indexedSearchService .findGreaterEqual (field , value );
147
132
}
148
133
149
134
/**
@@ -156,12 +141,7 @@ public Set<NitriteId> findGreaterEqualWithIndex(String field, Comparable value)
156
141
public Set <NitriteId > findLesserThanWithIndex (String field , Comparable value ) {
157
142
notNull (field , errorMessage ("field can not be null" , VE_FIND_LT_INDEX_NULL_FIELD ));
158
143
notNull (value , errorMessage ("value can not be null" , VE_FIND_LT_INDEX_NULL_VALUE ));
159
- try {
160
- readLock .lock ();
161
- return indexedSearchService .findLesserThan (field , value );
162
- } finally {
163
- readLock .unlock ();
164
- }
144
+ return indexedSearchService .findLesserThan (field , value );
165
145
}
166
146
167
147
/**
@@ -174,12 +154,7 @@ public Set<NitriteId> findLesserThanWithIndex(String field, Comparable value) {
174
154
public Set <NitriteId > findLesserEqualWithIndex (String field , Comparable value ) {
175
155
notNull (field , errorMessage ("field can not be null" , VE_FIND_LTE_INDEX_NULL_FIELD ));
176
156
notNull (value , errorMessage ("value can not be null" , VE_FIND_LTE_INDEX_NULL_VALUE ));
177
- try {
178
- readLock .lock ();
179
- return indexedSearchService .findLesserEqual (field , value );
180
- } finally {
181
- readLock .unlock ();
182
- }
157
+ return indexedSearchService .findLesserEqual (field , value );
183
158
}
184
159
185
160
/**
@@ -192,12 +167,7 @@ public Set<NitriteId> findLesserEqualWithIndex(String field, Comparable value) {
192
167
public Set <NitriteId > findInWithIndex (String field , Collection <Object > values ) {
193
168
notNull (field , errorMessage ("field can not be null" , VE_FIND_IN_INDEX_NULL_FIELD ));
194
169
notNull (values , errorMessage ("values can not be null" , VE_FIND_IN_INDEX_NULL_VALUE ));
195
- try {
196
- readLock .lock ();
197
- return indexedSearchService .findIn (field , values );
198
- } finally {
199
- readLock .unlock ();
200
- }
170
+ return indexedSearchService .findIn (field , values );
201
171
}
202
172
203
173
/**
@@ -210,12 +180,7 @@ public Set<NitriteId> findInWithIndex(String field, Collection<Object> values) {
210
180
public Set <NitriteId > findNotInWithIndex (String field , Collection <Object > values ) {
211
181
notNull (field , errorMessage ("field can not be null" , VE_FIND_NOT_IN_INDEX_NULL_FIELD ));
212
182
notNull (values , errorMessage ("values can not be null" , VE_FIND_NOT_IN_INDEX_NULL_VALUE ));
213
- try {
214
- readLock .lock ();
215
- return indexedSearchService .findNotIn (field , values );
216
- } finally {
217
- readLock .unlock ();
218
- }
183
+ return indexedSearchService .findNotIn (field , values );
219
184
}
220
185
221
186
/**
@@ -228,12 +193,7 @@ public Set<NitriteId> findNotInWithIndex(String field, Collection<Object> values
228
193
public Set <NitriteId > findTextWithIndex (String field , String value ) {
229
194
notNull (field , errorMessage ("field can not be null" , VE_FIND_TEXT_INDEX_NULL_FIELD ));
230
195
notNull (value , errorMessage ("value can not be null" , VE_FIND_TEXT_INDEX_NULL_VALUE ));
231
- try {
232
- readLock .lock ();
233
- return indexedSearchService .findText (field , value );
234
- } finally {
235
- readLock .unlock ();
236
- }
196
+ return indexedSearchService .findText (field , value );
237
197
}
238
198
239
199
/**
0 commit comments