From 5b472b2d62465453000b66da26465ad77106c952 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Sun, 14 Jun 2009 17:07:55 +0000 Subject: [PATCH] LUCENE-1539: add DeleteByPercent, FlushReader tasks, and ability to open reader on a labelled commit point git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@784587 13f79535-47bb-0310-9956-ffa450edef68 --- contrib/benchmark/CHANGES.txt | 9 ++ contrib/benchmark/conf/deletepercent.alg | 105 ++++++++++++++++++ .../benchmark/conf/indexing-multithreaded.alg | 1 + .../benchmark/byTask/tasks/AddDocTask.java | 2 +- .../byTask/tasks/CommitIndexTask.java | 26 ++++- .../byTask/tasks/CreateIndexTask.java | 29 ++++- .../byTask/tasks/DeleteByPercentTask.java | 82 ++++++++++++++ .../byTask/tasks/FlushReaderTask.java | 54 +++++++++ .../benchmark/byTask/tasks/OpenIndexTask.java | 2 +- .../byTask/tasks/OpenReaderTask.java | 55 ++++++++- .../byTask/tasks/PrintReaderTask.java | 53 +++++++++ .../benchmark/utils/NoDeletionPolicy.java | 31 ++++++ 12 files changed, 436 insertions(+), 13 deletions(-) create mode 100644 contrib/benchmark/conf/deletepercent.alg create mode 100644 contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/DeleteByPercentTask.java create mode 100644 contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/FlushReaderTask.java create mode 100644 contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PrintReaderTask.java create mode 100644 contrib/benchmark/src/java/org/apache/lucene/benchmark/utils/NoDeletionPolicy.java diff --git a/contrib/benchmark/CHANGES.txt b/contrib/benchmark/CHANGES.txt index 1f4ac0115f0..f0212f5d821 100644 --- a/contrib/benchmark/CHANGES.txt +++ b/contrib/benchmark/CHANGES.txt @@ -3,6 +3,15 @@ Lucene Benchmark Contrib Change Log The Benchmark contrib package contains code for benchmarking Lucene in a variety of ways. $Id:$ +6/12/09 + LUCENE-1539: Added DeleteByPercentTask which enables deleting a + percentage of documents and searching on them. Changed CommitIndex + to optionally accept a label (recorded as userData=