public class Coverage extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
Coverage.FullCoverageDefinition |
Modifier and Type | Field and Description |
---|---|
protected long |
active |
private static int |
DEGRADED_BY_ADAPTIVE_TIMEOUT |
private static int |
DEGRADED_BY_MATCH_PHASE |
private static int |
DEGRADED_BY_TIMEOUT |
protected int |
degradedReason |
protected long |
docs |
protected Coverage.FullCoverageDefinition |
fullReason |
protected int |
fullResultSets |
protected int |
nodes |
protected int |
resultSets |
protected long |
soonActive |
Modifier | Constructor and Description |
---|---|
protected |
Coverage()
Build an invalid instance to initiate manually.
|
|
Coverage(long docs,
int nodes,
boolean full) |
|
Coverage(long docs,
int nodes,
boolean full,
int resultSets) |
protected |
Coverage(long docs,
long active,
int nodes,
int resultSets) |
private |
Coverage(long docs,
long active,
int nodes,
int resultSets,
Coverage.FullCoverageDefinition fullReason) |
Modifier and Type | Method and Description |
---|---|
long |
getActive()
Total number of documents that could be searched.
|
long |
getDocs()
The number of documents searched for this result.
|
boolean |
getFull() |
int |
getFullResultSets()
A Coverage instance contains coverage information for potentially more
than one search.
|
int |
getNodes() |
int |
getResultPercentage()
An int between 0 (inclusive) and 100 (inclusive) representing how many
percent coverage the result sets this Coverage instance contains information
about had.
|
int |
getResultSets()
A Coverage instance contains coverage information for potentially more
than one search.
|
long |
getSoonActive()
Total number of documents that will be searchable once redistribution has settled.
|
boolean |
isDegraded() |
boolean |
isDegradedByAdapativeTimeout() |
boolean |
isDegradedByMatchPhase() |
boolean |
isDegradedByNonIdealState() |
boolean |
isDegradedByTimeout() |
void |
merge(Coverage other) |
protected long docs
protected long active
protected long soonActive
protected int degradedReason
protected int nodes
protected int resultSets
protected int fullResultSets
protected Coverage.FullCoverageDefinition fullReason
private static final int DEGRADED_BY_MATCH_PHASE
private static final int DEGRADED_BY_TIMEOUT
private static final int DEGRADED_BY_ADAPTIVE_TIMEOUT
protected Coverage()
protected Coverage(long docs, long active, int nodes, int resultSets)
public Coverage(long docs, int nodes, boolean full)
public Coverage(long docs, int nodes, boolean full, int resultSets)
private Coverage(long docs, long active, int nodes, int resultSets, Coverage.FullCoverageDefinition fullReason)
public void merge(Coverage other)
public long getDocs()
public long getActive()
@Beta public long getSoonActive()
public boolean isDegraded()
public boolean isDegradedByMatchPhase()
public boolean isDegradedByTimeout()
public boolean isDegradedByAdapativeTimeout()
public boolean isDegradedByNonIdealState()
public boolean getFull()
public int getNodes()
public int getFullResultSets()
public int getResultSets()
public int getResultPercentage()
Copyright © 2017. All rights reserved.