public class Policy extends Object implements MapWriter
Modifier and Type | Class and Description |
---|---|
class |
Policy.Session |
static class |
Policy.SortParam |
MapWriter.EntryWriter
Modifier and Type | Field and Description |
---|---|
static String |
ANY |
static String |
CLUSTER_POLICY |
static String |
CLUSTER_PREFERENCES |
static List<Preference> |
DEFAULT_PREFERENCES |
static String |
EACH |
static Set<String> |
GLOBAL_ONLY_TAGS |
static String |
POLICIES |
static String |
POLICY |
Constructor and Description |
---|
Policy() |
Policy(Map<String,Object> jsonMap) |
Policy(Map<String,Object> jsonMap,
int version) |
Modifier and Type | Method and Description |
---|---|
static Map<String,List<Clause>> |
clausesFromMap(Map<String,List<Map<String,Object>>> map,
List<String> newParams) |
Policy.Session |
createSession(SolrCloudManager cloudManager) |
boolean |
equals(Object o) |
List<Clause> |
getClusterPolicy() |
List<Preference> |
getClusterPreferences() |
List<String> |
getParams() |
List<String> |
getPerReplicaAttributes() |
Map<String,List<Clause>> |
getPolicies() |
boolean |
isEmpty() |
boolean |
isEmptyPreferences() |
static List<Clause> |
mergePolicies(String coll,
List<Clause> collPolicy,
List<Clause> globalPolicy) |
String |
toString() |
Policy |
withClusterPolicy(List<Clause> clusterPolicy) |
Policy |
withClusterPreferences(List<Preference> clusterPreferences) |
Policy |
withParams(List<String> params) |
Policy |
withPolicies(Map<String,List<Clause>> policies) |
void |
writeMap(MapWriter.EntryWriter ew) |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
public static final String POLICY
public static final String EACH
public static final String ANY
public static final String POLICIES
public static final String CLUSTER_POLICY
public static final String CLUSTER_PREFERENCES
public static final List<Preference> DEFAULT_PREFERENCES
public Policy withClusterPreferences(List<Preference> clusterPreferences)
public List<Preference> getClusterPreferences()
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap
in interface MapWriter
IOException
public static Map<String,List<Clause>> clausesFromMap(Map<String,List<Map<String,Object>>> map, List<String> newParams)
public Policy.Session createSession(SolrCloudManager cloudManager)
public static List<Clause> mergePolicies(String coll, List<Clause> collPolicy, List<Clause> globalPolicy)
public boolean isEmpty()
public boolean isEmptyPreferences()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.