}
- public Rule toDoc(GetResponse response) {
+ @Override
+ protected Rule toDoc(GetResponse response) {
Preconditions.checkArgument(response != null, "Cannot construct Rule with null response!!!");
return new RuleDoc(response.getSource());
}
/* Base CRUD methods */
- public abstract D toDoc(GetResponse response);
+ protected abstract D toDoc(GetResponse response);
public D getByKey(K key) {
GetResponse response = getClient().prepareGet()
/**
* Sets whether or not the search returns facets for the domain.
- * @param facet
*/
public QueryOptions setFacet(boolean facet) {
this.facet = facet;