/** * Get a FijiResult corresponding to the same data as this KjiRowData. * * <p> * This method allows the caller to specify a type-bound on the values of the {@code FijiCell}s * of the returned {@code FijiResult}. The caller should be careful to only specify an * appropriate type. If the type is too specific (or wrong), a runtime * {@link java.lang.ClassCastException} will be thrown when the returned {@code FijiResult} is * used. See the 'Type Safety' section of {@link FijiResult}'s documentation for more details. * </p> * * @return A FijiResult corresponding to the same data as this FijiRowData. * @param <T> The type of {@code FijiCell} values in the returned {@code FijiResult}. * @throws IOException if error while decoding cells. */ public <T> FijiResult<T> asFijiResult() throws IOException { return HBaseFijiResult.create( mEntityId, mDataRequest, mResult, mTable, mTableLayout, HBaseColumnNameTranslator.from(mTableLayout), mDecoderProvider); }
/** {@inheritDoc} */ @Override public FijiResult<T> next() { final State oldState = mState.get(); Preconditions.checkState(oldState == State.OPEN, "Cannot get element from FijiResultScanner in state %s.", oldState); final Result next = mNextResult; if (null == next) { throw new NoSuchElementException(); } mNextResult = getNextResult(); try { return HBaseFijiResult.create( mEidFactory.getEntityIdFromHBaseRowKey(next.getRow()), mRequest, next, mTable, mLayout, mColumnNameTranslator, mDecoderProvider); } catch (IOException e) { throw new FijiIOException(e); } }
for (int i = 0; i < entityIds.size(); i++) { fijiResults.add( HBaseFijiResult.<T>create( entityIds.get(i), dataRequest,
final Get get = hbaseDataRequestAdapter.toGet(entityId, tableLayout); final Result result = get.hasFamilies() ? doHBaseGet(get) : new Result(); return HBaseFijiResult.create( entityId, dataRequest,