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 |
---|---|
protected String |
findWithCollection(Set<String> collections,
Set<Pair<String,String>> s) |
Suggester |
forceOperation(boolean force)
Normally, only less loaded nodes are used for moving replicas.
|
CollectionParams.CollectionAction |
getAction() |
Policy.Session |
getSession() |
SolrRequest |
getSuggestion() |
protected Optional<String> |
getWithCollection(String collectionName) |
Suggester |
hint(Suggester.Hint hint,
Object value) |
protected boolean |
isAllowed(Object v,
Suggester.Hint hint) |
protected boolean |
isNodeSuitableForReplicaAddition(Row targetRow,
Row srcRow) |
protected Collection |
setupWithCollectionTargetNodes(Set<String> collections,
Set<Pair<String,String>> s,
String withCollection) |
String |
toString() |
void |
writeMap(MapWriter.EntryWriter ew) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
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 targetRow, Row srcRow)
public SolrRequest getSuggestion()
protected Optional<String> getWithCollection(String collectionName) throws IOException
IOException
public Policy.Session getSession()
protected boolean isAllowed(Object v, Suggester.Hint hint)
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap
in interface MapWriter
IOException
protected Collection setupWithCollectionTargetNodes(Set<String> collections, Set<Pair<String,String>> s, String withCollection)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.