Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Creative commons Attribution-NonCommercial license. http://creativecommons.org/licenses/by-nc/2.5/au/deed.en_GB NO WARRANTY IS GIVEN OR IMPLIED, USE AT YOUR OWN RISK.
 
 package base.jee.api.cassandra;
 
import base.Query;
import static base.jee.api.cassandra.util.HasPersonRecord.hasPersonRecord;
public class HasPersonRecord extends Query<IntegerQueryResult> {
	private CassandraAPI c;
		this. = c;
	}
	public HasPersonRecord() {
	}
		throw new IllegalArgumentException("HasPersonRecord may not be instantiated with parameter map");
	}
	public List<IntegerQueryResultexecute() throws IOException {
		List<IntegerQueryResultresults = new LinkedList<>();
		int total = hasPersonRecord(s)?1:0;
		results.add(new IntegerQueryResult(total));
		return results;
	}
		return "{" +
				"}";
	}
New to GrepCode? Check out our FAQ X