protected final class ShardSearchingTestBase.NodeState extends Object implements 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(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(Random random, int nodeID, int numNodes) throws IOException
IOException
public void initSearcher(long[] nodeVersions) throws IOException
IOException
public void updateNodeVersion(int nodeID, long version) throws IOException
IOException
public ShardSearchingTestBase.NodeState.ShardIndexSearcher acquire()
public void release(ShardSearchingTestBase.NodeState.ShardIndexSearcher s) throws IOException
IOException
public ShardSearchingTestBase.NodeState.ShardIndexSearcher acquire(long[] nodeVersions)
public void reopen() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.