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) |
Modifier and Type | Method and Description |
---|---|
Policy.Session |
createSession(SolrCloudManager cloudManager) |
boolean |
equals(Object o) |
List<Clause> |
getClusterPolicy() |
List<Preference> |
getClusterPreferences() |
List<String> |
getParams() |
Map<String,List<Clause>> |
getPolicies() |
static List<Clause> |
mergePolicies(String coll,
List<Clause> collPolicy,
List<Clause> globalPolicy) |
static Map<String,List<Clause>> |
policiesFromMap(Map<String,List<Map<String,Object>>> map,
List<String> newParams) |
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) |
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 Policy.Session createSession(SolrCloudManager cloudManager)
public static Map<String,List<Clause>> policiesFromMap(Map<String,List<Map<String,Object>>> map, List<String> newParams)
public static List<Clause> mergePolicies(String coll, List<Clause> collPolicy, List<Clause> globalPolicy)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.