- Timestamp:
- 05/27/13 15:54:47 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUClient/trunk/src/main/java/eu/clarin/sru/client/SRUClient.java
r2466 r2936 56 56 private List<SRUDiagnostic> diagnostics; 57 57 private DocumentFragment extraResponseData; 58 /* explain */59 private SRURecord record;60 58 /* scan */ 61 59 private List<SRUTerm> terms; … … 64 62 private String resultSetId; 65 63 private int resultSetIdleTime; 64 private int nextRecordPosition; 65 /* explain/searchRetrieve */ 66 66 private List<SRURecord> records; 67 private int nextRecordPosition;68 67 /* statistics */ 69 68 private int totalBytesTransferred; … … 167 166 /** 168 167 * Register a record data parser. 169 * 168 * 170 169 * @param parser 171 170 * a parser instance 172 * @throws SRUClientException173 * if a parser handing the same record schema is already174 * registered175 171 * @throws NullPointerException 176 172 * if any required argument is <code>null</code> 177 173 * @throws IllegalArgumentException 178 * if the supplied parser is invalid 179 * /180 public void registerRecordParser(SRURecordDataParser parser)181 throws SRUClientException{174 * if the supplied parser is invalid or a parser handing the 175 * same record schema is already registered 176 */ 177 public void registerRecordParser(SRURecordDataParser parser) { 182 178 client.registerRecordParser(parser); 183 179 } … … 202 198 try { 203 199 client.explain(request, handler); 200 SRURecord record = null; 201 if ((records != null) && !records.isEmpty()) { 202 record = records.get(0); 203 } 204 204 return new SRUExplainResponse(request, 205 205 diagnostics, … … 313 313 diagnostics = null; 314 314 extraResponseData = null; 315 /* explain */316 record = null;317 315 /* scan */ 318 316 terms = null; … … 321 319 resultSetId = null; 322 320 resultSetIdleTime = -1; 321 nextRecordPosition = -1; 322 /* explain/searchRetrieve */ 323 323 records = null; 324 nextRecordPosition = -1;325 324 /* statistics */ 326 325 totalBytesTransferred = -1;
Note: See TracChangeset
for help on using the changeset viewer.