final FijiCell<T> cell = Helpers.getFirst(mResult.<T>narrowView(requestedColumn)); if (cell != null) { qualifiers.put(cell.getColumn().getQualifier(), cell.getData());
final FijiCell<T> cell = Helpers.getFirst(mResult.<T>narrowView(requestedColumn)); if (cell != null) { qualifiers.put(cell.getColumn().getQualifier(), cell);
/** * Return the value of the first (most recent) {@code FijiCell} in the first column of this * {@code FijiResult}. * * <p> * Note that if all columns in the {@code FijiResult} are paged, then retrieving the first * cell will require fetching a full page. * </p> * * <p> * If the distinction between an empty result and a result with a {@code null} value is * important, use {@link #getFirst} to retrieve the first cell. The cell will be {@code null} * if the result is empty. * </p> * * @param result The {@code FijiResult} containing the value to get. * @param <T> The type of values in the provided {@code FijiResult}'s cells. * @return the value of the first {@code FijiCell} in the result, or {@code null} if the result * is empty, or the value is {@code null}. */ public static <T> T getFirstValue(final FijiResult<T> result) { final FijiCell<T> first = getFirst(result); if (first == null) { return null; } else { return first.getData(); } }
/** {@inheritDoc} */ @Override public <T> FijiCell<T> getMostRecentCell(final String family, final String qualifier) { final FijiColumnName column = FijiColumnName.create(family, qualifier); validateColumnRequest(column); return Helpers.getFirst(mResult.<T>narrowView(column)); }