public abstract class Suggester extends Object implements MapWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
Suggester.Hint |
static class |
Suggester.SuggestionInfo |
MapWriter.EntryWriter| Modifier and Type | Field and Description |
|---|---|
protected EnumMap<Suggester.Hint,Object> |
hints |
protected List<Violation> |
originalViolations |
| Constructor and Description |
|---|
Suggester() |
| Modifier and Type | Method and Description |
|---|---|
Suggester |
forceOperation(boolean force)
Normally, only less loaded nodes are used for moving replicas.
|
CollectionParams.CollectionAction |
getAction() |
Policy.Session |
getSession() |
SolrRequest |
getSuggestion() |
Suggester |
hint(Suggester.Hint hint,
Object value) |
protected boolean |
isAllowed(Object v,
Suggester.Hint hint) |
protected boolean |
isNodeSuitableForReplicaAddition(Row row) |
String |
toString() |
void |
writeMap(MapWriter.EntryWriter ew) |
protected final EnumMap<Suggester.Hint,Object> hints
public Suggester hint(Suggester.Hint hint, Object value)
public CollectionParams.CollectionAction getAction()
public Suggester forceOperation(boolean force)
protected boolean isNodeSuitableForReplicaAddition(Row row)
public SolrRequest getSuggestion()
public Policy.Session getSession()
protected boolean isAllowed(Object v, Suggester.Hint hint)
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap in interface MapWriterIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.