* @param column The column for which to validate a request exists.
* @return Whether the data request contains a request for the column.
*/
private boolean containsColumnRequest(final KijiColumnName column) {
final KijiDataRequest dataRequest = mResult.getDataRequest();
final Column exactRequest = dataRequest.getColumn(column);
if (exactRequest != null) {
Preconditions.checkArgument(!exactRequest.isPagingEnabled(),
"Paging is enabled for column %s in data request %s.", exactRequest, dataRequest);
return true;
} else if (column.isFullyQualified()) {
// The column is fully qualified, but a request doesn't exist for the qualified column.
// Check if the family is requested, and validate it.
final Column familyRequest =
dataRequest.getColumn(KijiColumnName.create(column.getFamily(), null));
if (familyRequest == null) {
return false;
}
Preconditions.checkArgument(
!familyRequest.isPagingEnabled(),
"Paging is enabled for column %s in data request %s.", familyRequest, dataRequest);
return true;
} else {
boolean requestContainsColumns = false;
for (final Column columnRequest : dataRequest.getColumns()) {