Package | Description |
---|---|
org.apache.lucene.benchmark.byTask.tasks |
Extendable benchmark tasks.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Method | Description |
---|---|---|
static IndexCommit |
OpenReaderTask.findIndexCommit(Directory dir,
String userData) |
Modifier and Type | Method | Description |
---|---|---|
static IndexWriter |
CreateIndexTask.configureWriter(Config config,
PerfRunData runData,
IndexWriterConfig.OpenMode mode,
IndexCommit commit) |
|
static IndexWriterConfig |
CreateIndexTask.createWriterConfig(Config config,
PerfRunData runData,
IndexWriterConfig.OpenMode mode,
IndexCommit commit) |
Modifier and Type | Class | Description |
---|---|---|
protected class |
SnapshotDeletionPolicy.SnapshotCommitPoint |
Modifier and Type | Field | Description |
---|---|---|
protected IndexCommit |
SnapshotDeletionPolicy.SnapshotCommitPoint.cp |
|
protected IndexCommit |
SnapshotDeletionPolicy.lastCommit |
Modifier and Type | Method | Description |
---|---|---|
IndexCommit |
FilterIndexReader.getIndexCommit() |
|
IndexCommit |
IndexReader.getIndexCommit() |
Expert: return the IndexCommit that this reader has
opened.
|
IndexCommit |
IndexWriterConfig.getIndexCommit() |
Returns the
IndexCommit as specified in
IndexWriterConfig.setIndexCommit(IndexCommit) or the default, null
which specifies to open the latest index commit point. |
IndexCommit |
SnapshotDeletionPolicy.getSnapshot(String id) |
Get a snapshotted IndexCommit by ID.
|
IndexCommit |
PersistentSnapshotDeletionPolicy.snapshot(String id) |
Snapshots the last commit using the given ID.
|
IndexCommit |
SnapshotDeletionPolicy.snapshot(String id) |
Snapshots the last commit.
|
Modifier and Type | Method | Description |
---|---|---|
static Collection<IndexCommit> |
IndexReader.listCommits(Directory dir) |
Returns all commit points that exist in the Directory.
|
protected List<IndexCommit> |
SnapshotDeletionPolicy.wrapCommits(List<? extends IndexCommit> commits) |
Modifier and Type | Method | Description |
---|---|---|
int |
IndexCommit.compareTo(IndexCommit commit) |
|
protected IndexReader |
IndexReader.doOpenIfChanged(IndexCommit commit) |
If the index has changed since it was opened, open and return a new reader;
else, return
null . |
static IndexReader |
IndexReader.open(IndexCommit commit) |
Expert: returns an IndexReader reading the index in the given
IndexCommit . |
static IndexReader |
IndexReader.open(IndexCommit commit,
boolean readOnly) |
Deprecated.
Write support will be removed in Lucene 4.0.
|
static IndexReader |
IndexReader.open(IndexCommit commit,
int termInfosIndexDivisor) |
Expert: returns an IndexReader reading the index in the given
IndexCommit and termInfosIndexDivisor. |
static IndexReader |
IndexReader.open(IndexCommit commit,
IndexDeletionPolicy deletionPolicy,
boolean readOnly) |
Deprecated.
Write support will be removed in Lucene 4.0.
|
static IndexReader |
IndexReader.open(IndexCommit commit,
IndexDeletionPolicy deletionPolicy,
boolean readOnly,
int termInfosIndexDivisor) |
Deprecated.
Write support will be removed in Lucene 4.0.
|
static IndexReader |
IndexReader.openIfChanged(IndexReader oldReader,
IndexCommit commit) |
If the IndexCommit differs from what the
provided reader is searching, or the provided reader is
not already read-only, open and return a new
readOnly=true reader; else, return null. |
protected void |
SnapshotDeletionPolicy.registerSnapshotInfo(String id,
String segment,
IndexCommit commit) |
Registers the given snapshot information.
|
IndexReader |
IndexReader.reopen(IndexCommit commit) |
Deprecated.
|
Object |
SegmentInfos.FindSegmentsFile.run(IndexCommit commit) |
|
IndexWriterConfig |
IndexWriterConfig.setIndexCommit(IndexCommit commit) |
Expert: allows to open a certain commit point.
|
Modifier and Type | Method | Description |
---|---|---|
void |
IndexDeletionPolicy.onCommit(List<? extends IndexCommit> commits) |
This is called each time the writer completed a commit.
|
void |
KeepOnlyLastCommitDeletionPolicy.onCommit(List<? extends IndexCommit> commits) |
Deletes all commits except the most recent one.
|
void |
NoDeletionPolicy.onCommit(List<? extends IndexCommit> commits) |
|
void |
SnapshotDeletionPolicy.onCommit(List<? extends IndexCommit> commits) |
|
void |
IndexDeletionPolicy.onInit(List<? extends IndexCommit> commits) |
This is called once when a writer is first
instantiated to give the policy a chance to remove old
commit points.
|
void |
KeepOnlyLastCommitDeletionPolicy.onInit(List<? extends IndexCommit> commits) |
Deletes all commits except the most recent one.
|
void |
NoDeletionPolicy.onInit(List<? extends IndexCommit> commits) |
|
void |
PersistentSnapshotDeletionPolicy.onInit(List<? extends IndexCommit> commits) |
|
void |
SnapshotDeletionPolicy.onInit(List<? extends IndexCommit> commits) |
|
protected List<IndexCommit> |
SnapshotDeletionPolicy.wrapCommits(List<? extends IndexCommit> commits) |
Constructor | Description |
---|---|
IndexWriter(Directory d,
Analyzer a,
IndexDeletionPolicy deletionPolicy,
IndexWriter.MaxFieldLength mfl,
IndexCommit commit) |
Deprecated.
use
IndexWriter(Directory, IndexWriterConfig) instead |
SnapshotCommitPoint(IndexCommit cp) |
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.