public class Clause extends Object implements MapWriter, Comparable<Clause>
| Modifier and Type | Class and Description |
|---|---|
static class |
Clause.ComputedValueEvaluator
Deprecated.
|
MapWriter.EntryWriter| Modifier and Type | Field and Description |
|---|---|
static long |
addReplicaCountsForNode
Deprecated.
|
static long |
addReplicaCountsForNodeCacheMiss
Deprecated.
|
static String |
METRICS_PREFIX
Deprecated.
|
static String |
NODESET
Deprecated.
|
static String |
PERSHARD_REPLICAS
Deprecated.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Clause(Clause clause,
Function<Condition,Object> computedValueEvaluator)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Clause that)
Deprecated.
|
static Clause |
create(Map<String,Object> m)
Deprecated.
|
static Clause |
create(String json)
Deprecated.
|
boolean |
doesOverride(Clause that)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
Condition |
getCollection()
Deprecated.
|
Condition |
getGlobalTag()
Deprecated.
|
Condition |
getReplica()
Deprecated.
|
SealedClause |
getSealedClause(Function<Condition,Object> computedValueEvaluator)
Deprecated.
|
Condition |
getShard()
Deprecated.
|
Condition |
getTag()
Deprecated.
|
Condition |
getThirdTag()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isMatch(ReplicaInfo r,
String collection,
String shard)
Deprecated.
|
boolean |
isPerCollectiontag()
Deprecated.
|
boolean |
isStrict()
Deprecated.
|
static Double |
parseDouble(String name,
Object val)
Deprecated.
|
static Long |
parseLong(String name,
Object val)
Deprecated.
|
static String |
parseString(Object val)
Deprecated.
|
List<Violation> |
test(Policy.Session session,
double[] deviations)
Deprecated.
|
static void |
throwExp(Map clause,
String msg,
Object... args)
Deprecated.
|
String |
toString()
Deprecated.
|
static Object |
validate(String name,
Object val,
boolean isRuleVal)
Deprecated.
|
void |
writeMap(MapWriter.EntryWriter ew)
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _sizepublic static final String NODESET
public static long addReplicaCountsForNode
public static long addReplicaCountsForNodeCacheMiss
public static final String PERSHARD_REPLICAS
public static final String METRICS_PREFIX
public Condition getThirdTag()
public Condition getCollection()
public Condition getShard()
public Condition getReplica()
public Condition getTag()
public Condition getGlobalTag()
public boolean doesOverride(Clause that)
public boolean isPerCollectiontag()
public int compareTo(Clause that)
compareTo in interface Comparable<Clause>public SealedClause getSealedClause(Function<Condition,Object> computedValueEvaluator)
public List<Violation> test(Policy.Session session, double[] deviations)
public boolean isMatch(ReplicaInfo r, String collection, String shard)
public boolean isStrict()
public void writeMap(MapWriter.EntryWriter ew) throws IOException
writeMap in interface MapWriterIOExceptionpublic static Object validate(String name, Object val, boolean isRuleVal)
name - name of the conditionval - value of the conditionisRuleVal - is this provided in the ruleCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.