Package org.kiji.schema

Examples of org.kiji.schema.KijiIOException


    Preconditions.checkState(state == State.OPEN,
        "Cannot open a table reader on a KijiTable in state %s.", state);
    try {
      return CassandraKijiTableReader.create(this);
    } catch (IOException ioe) {
      throw new KijiIOException(ioe);
    }
  }
View Full Code Here


    Preconditions.checkState(state == State.OPEN,
        "Cannot open a table writer on a KijiTable in state %s.", state);
    try {
      return new CassandraKijiTableWriter(this);
    } catch (IOException ioe) {
      throw new KijiIOException(ioe);
    }
  }
View Full Code Here

        throw new NoSuchElementException();
      } else {
        try {
          mNextCell = getNextCell();
        } catch (IOException ioe) {
          throw new KijiIOException(ioe);
        }
        return next;
      }
    }
View Full Code Here

        return new KijiCellIterator<T>(
            mRowData,
            mColumnName,
            mHBaseColumnNameTranslator);
      } catch (IOException ex) {
        throw new KijiIOException(ex);
      }
    }
View Full Code Here

      mScan.setStartRow(nextRow);
      mResultScanner.close();
      try {
        mResultScanner = mHTable.getScanner(mScan);
      } catch (IOException ioe) {
        throw new KijiIOException(ioe);
      }
    } else {
      throw new KijiIOException("HBase scanner timed out with automatic reopening disabled.");
    }
  }
View Full Code Here

      } catch (LeaseException le) {
        reopenScanner();
      } catch (ScannerTimeoutException ste) {
        reopenScanner();
      } catch (IOException ioe) {
        throw new KijiIOException(ioe);
      }
    }
    throw new KijiIOException(String.format(
        "Unable to get Result from HBase scanner after %d attempts.", MAX_RETRIES_ON_TIMEOUT));
  }
View Full Code Here

          mTable,
          mLayout,
          mColumnNameTranslator,
          mDecoderProvider);
    } catch (IOException e) {
      throw new KijiIOException(e);
    }
  }
View Full Code Here

      try {
        final DecodedCell<T> decodedCell = mCellDecoder.decodeCell(keyValue.getValue());
        return KijiCell.create(mLastColumn, keyValue.getTimestamp(), decodedCell);
      } catch (IOException e) {
        throw new KijiIOException(e);
      }
    }
View Full Code Here

      try {
        final DecodedCell<T> decodedCell = mLastDecoder.decodeCell(keyValue.getValue());
        return KijiCell.create(mLastColumn, keyValue.getTimestamp(), decodedCell);
      } catch (IOException e) {
        throw new KijiIOException(e);
      }
    }
View Full Code Here

    public KijiCell<T> apply(final KeyValue keyValue) {
      try {
        final DecodedCell<T> decodedCell = mCellDecoder.decodeCell(keyValue.getValue());
        return KijiCell.create(mColumnName, keyValue.getTimestamp(), decodedCell);
      } catch (IOException e) {
        throw new KijiIOException(e);
      }
    }
View Full Code Here

TOP

Related Classes of org.kiji.schema.KijiIOException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.