-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #889 from sheiksalahudeen/release-2.1
Release 2.1 OLE-9004 : Fixed the issue with inaccurate record counts when doing Incremental exports to vufind
- Loading branch information
Showing
13 changed files
with
822 additions
and
589 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
ole-app/olefs/src/main/java/org/kuali/ole/oleng/dao/export/ExportBibIdFinderCallable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package org.kuali.ole.oleng.dao.export; | ||
|
||
import org.kuali.ole.oleng.handler.BatchExportHandler; | ||
import org.kuali.ole.oleng.util.BatchExportUtil; | ||
|
||
import java.util.Set; | ||
import java.util.concurrent.Callable; | ||
|
||
/** | ||
* Created by sheiks on 16/09/16. | ||
*/ | ||
public class ExportBibIdFinderCallable implements Callable { | ||
|
||
private String query; | ||
private int start; | ||
private int chunkSize; | ||
private BatchExportHandler batchExportHandler; | ||
private BatchExportUtil batchExportUtil; | ||
|
||
public ExportBibIdFinderCallable(String query, int start, int chunkSize, BatchExportHandler batchExportHandler) { | ||
this.query = query; | ||
this.start = start; | ||
this.chunkSize = chunkSize; | ||
this.batchExportHandler = batchExportHandler; | ||
|
||
} | ||
|
||
@Override | ||
public Object call() throws Exception { | ||
Set<String> bibIdentifiers = getBatchExportUtil().getBibIdentifiersForQuery(query, start, chunkSize); | ||
return bibIdentifiers; | ||
} | ||
|
||
public BatchExportUtil getBatchExportUtil() { | ||
if(null == batchExportUtil) { | ||
batchExportUtil = new BatchExportUtil(); | ||
} | ||
return batchExportUtil; | ||
} | ||
|
||
public void setBatchExportUtil(BatchExportUtil batchExportUtil) { | ||
this.batchExportUtil = batchExportUtil; | ||
} | ||
} |
581 changes: 581 additions & 0 deletions
581
ole-app/olefs/src/main/java/org/kuali/ole/oleng/dao/export/ExportCallable.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.