protected final class ShardSearchingTestBase.NodeState
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
class |
ShardSearchingTestBase.NodeState.ShardIndexSearcher
Matches docs in the local shard but scores based on
aggregated stats ("mock distributed scoring") from all
nodes.
|
| Modifier and Type | Field and Description |
|---|---|
long[] |
currentNodeVersions |
Directory |
dir |
SearcherManager |
mgr |
int |
myNodeID |
SearcherLifetimeManager |
searchers |
IndexWriter |
writer |
| Constructor and Description |
|---|
NodeState(java.util.Random random,
int nodeID,
int numNodes) |
| Modifier and Type | Method and Description |
|---|---|
ShardSearchingTestBase.NodeState.ShardIndexSearcher |
acquire() |
ShardSearchingTestBase.NodeState.ShardIndexSearcher |
acquire(long[] nodeVersions) |
void |
close() |
void |
initSearcher(long[] nodeVersions) |
void |
release(ShardSearchingTestBase.NodeState.ShardIndexSearcher s) |
void |
reopen() |
void |
updateNodeVersion(int nodeID,
long version) |
public final Directory dir
public final IndexWriter writer
public final SearcherLifetimeManager searchers
public final SearcherManager mgr
public final int myNodeID
public final long[] currentNodeVersions
public NodeState(java.util.Random random,
int nodeID,
int numNodes)
throws java.io.IOException
java.io.IOExceptionpublic void initSearcher(long[] nodeVersions)
throws java.io.IOException
java.io.IOExceptionpublic void updateNodeVersion(int nodeID,
long version)
throws java.io.IOException
java.io.IOExceptionpublic ShardSearchingTestBase.NodeState.ShardIndexSearcher acquire()
public void release(ShardSearchingTestBase.NodeState.ShardIndexSearcher s) throws java.io.IOException
java.io.IOExceptionpublic ShardSearchingTestBase.NodeState.ShardIndexSearcher acquire(long[] nodeVersions)
public void reopen()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.