public class Constraint extends Object
SimpleStore search.
In case this restriction applies to a table (as in SimpleStore.get(String, Constraint, int, java.util.Set), returned rows should have key be between getStartKey() and getEndKey().
In case this restrictions applies to a column family (as in SimpleStore.get(String, String, String, Constraint), returned columns should have key be between getStartKey() and getEndKey().| Constructor and Description |
|---|
Constraint(Class<?> clazz,
Map<Field,Object> values,
Field searchedKey,
Object startValue,
Object endValue,
boolean checkKeys)
Describes a search for a particular key.
|
Constraint(Class<?> type,
Map<String,Object> values,
String searchedKey,
Constraint subkeySearch) |
Constraint(Class<?> type,
Map<String,Object> values,
String field,
Object startValue,
Object endValue)
Describes a search for a particular key.
|
Constraint(Map<Field,Object> values,
Field searchedKey,
Constraint subkeySearch) |
Constraint(Map<Field,Object> values,
Field searchedKey,
Constraint subkeySearch,
boolean checkKeys) |
Constraint(Map<Field,Object> values,
Field searchedKey,
Object startValue,
Object endValue,
boolean checkKeys) |
Constraint(String startKey,
String endKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
getEndKey()
The maximal (inclusive) value for searched keys
|
String |
getStartKey()
The minimal (inclusive) value for searched keys
|
boolean |
sastisfies(String key) |
protected static Map<Field,Object> |
toMapOfFields(Class<?> clazz,
Map<String,Object> values) |
public Constraint(Map<Field,Object> values, Field searchedKey, Object startValue, Object endValue, boolean checkKeys)
public Constraint(Class<?> clazz, Map<Field,Object> values, Field searchedKey, Object startValue, Object endValue, boolean checkKeys)
checkKeys - to check whether all keys with a lower category is given a valuepublic Constraint(Class<?> type, Map<String,Object> values, String field, Object startValue, Object endValue)
public Constraint(Map<Field,Object> values, Field searchedKey, Constraint subkeySearch)
public Constraint(Map<Field,Object> values, Field searchedKey, Constraint subkeySearch, boolean checkKeys)
protected static Map<Field,Object> toMapOfFields(Class<?> clazz, Map<String,Object> values)
public String getStartKey()
public String getEndKey()
public boolean sastisfies(String key)
Copyright © 2016. All Rights Reserved.