public abstract class Suggester extends Object implements MapWriter
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Suggester.Hint |
static class |
Suggester.SuggestionInfo |
MapWriter.EntryWriter| 限定符和类型 | 字段和说明 |
|---|---|
protected EnumMap<Suggester.Hint,Object> |
hints |
protected List<Violation> |
originalViolations |
| 构造器和说明 |
|---|
Suggester() |
| 限定符和类型 | 方法和说明 |
|---|---|
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, _sizeprotected 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
IOExceptionpublic Policy.Session getSession()
protected boolean isAllowed(Object v, Suggester.Hint hint)
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap 在接口中 MapWriterIOExceptionprotected Collection setupWithCollectionTargetNodes(Set<String> collections, Set<Pair<String,String>> s, String withCollection)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.