public class Clause extends Object implements MapWriter, Comparable<Clause>
| Modifier and Type | Class and Description |
|---|---|
static class |
Clause.Condition |
class |
Clause.Violation |
MapWriter.EntryWriter| Modifier and Type | Field and Description |
|---|---|
Clause.Condition |
collection |
Clause.Condition |
globalTag |
Map<String,Object> |
original |
Clause.Condition |
replica |
Clause.Condition |
shard |
Clause.Condition |
tag |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Clause that) |
boolean |
doesOverride(Clause that) |
boolean |
isPerCollectiontag() |
boolean |
isStrict() |
static Double |
parseDouble(String name,
Object val) |
static Long |
parseLong(String name,
Object val) |
List<Clause.Violation> |
test(List<Row> allRows) |
String |
toString() |
static Object |
validate(String name,
Object val,
boolean isRuleVal) |
void |
writeMap(MapWriter.EntryWriter ew) |
public Clause.Condition collection
public Clause.Condition shard
public Clause.Condition replica
public Clause.Condition tag
public Clause.Condition globalTag
public boolean doesOverride(Clause that)
public boolean isPerCollectiontag()
public int compareTo(Clause that)
compareTo in interface Comparable<Clause>public List<Clause.Violation> test(List<Row> allRows)
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-2017 Apache Software Foundation. All Rights Reserved.