Package org.apache.lucene.tests.search
Class ShardSearchingTestBase.NodeState
java.lang.Object
org.apache.lucene.tests.search.ShardSearchingTestBase.NodeState
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- ShardSearchingTestBase
Simulated shard node under test
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Matches docs in the local shard but scores based on aggregated stats ("mock distributed scoring") from all nodes. -
Field Summary
Modifier and TypeFieldDescriptionfinal long[]
final Directory
final SearcherManager
final int
final SearcherLifetimeManager
final IndexWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionacquire()
acquire
(long[] nodeVersions) void
close()
void
initSearcher
(long[] nodeVersions) void
void
reopen()
void
updateNodeVersion
(int nodeID, long version)
-
Field Details
-
dir
-
writer
-
searchers
-
mgr
-
myNodeID
public final int myNodeID -
currentNodeVersions
public final long[] currentNodeVersions
-
-
Constructor Details
-
NodeState
- Throws:
IOException
-
-
Method Details
-
initSearcher
- Throws:
IOException
-
updateNodeVersion
- Throws:
IOException
-
acquire
-
release
- Throws:
IOException
-
acquire
-
reopen
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-