Package org.kiji.schema

Examples of org.kiji.schema.KijiIOException


      }

      return qualifiers;

    } catch (IOException ioe) {
      throw new KijiIOException(ioe);
    }
  }
View Full Code Here


      }

      return page;

    } catch (IOException ioe) {
      throw new KijiIOException(ioe);
    }
  }
View Full Code Here

          return kijiTableReader.get(
              mTable.getEntityId("foo"),
              FAMILY_QUAL0_R
          ).getMostRecentValue("family", "qual0").toString();
        } catch (IOException e) {
          throw new KijiIOException(e);
        }
      }
    }.eval());
  }
View Full Code Here

        mScan.setMaxVersions(columnRequest.getMaxVersions());
        mScan.setTimeRange(mDataRequest.getMinTimestamp(), mDataRequest.getMaxTimestamp());
        mScan.setBatch(columnRequest.getPageSize());
      } catch (IOException e) {
        throw new KijiIOException(e);
      }
    }
View Full Code Here

        htable = mTable.openHTableConnection();
        mCloser.register(htable);
        scanner = htable.getScanner(mScan);
        mCloser.register(scanner);
      } catch (IOException e) {
        throw new KijiIOException(e);
      }

      // Decoder functions are stateful, so they should not be shared among multiple iterators
      final Function<KeyValue, KijiCell<T>> decoder =
          ResultDecoders.getDecoderFunction(mColumn, mLayout, mColumnTranslator, mDecoderProvider);
View Full Code Here

      }
      LOG.debug("Opening HBase result scanner with start row key: '{}'.",
          Bytes.toStringBinary(mScan.getStartRow()));
      return mHTable.getScanner(mScan);
    } catch (IOException ioe) {
      throw new KijiIOException(ioe);
    }
  }
View Full Code Here

        return mResultScanner.next();

      } catch (LeaseException le) {
        if (!mReopenScannerOnTimeout) {
          LOG.debug("HBase scanner timed out and user disabled automatic scanner reopening.");
          throw new KijiIOException(
              "HBase scanner timed out and user disabled automatic scanner reopening.", le);
        } else {
          // The HBase scanner timed out, re-open a new one:
          LOG.debug("HBase scanner timed out: closing and reopening a new scanner.");
          mResultScanner.close();
          mResultScanner = openResultScanner();
          continue;
        }

      } catch (ScannerTimeoutException ste) {
        if (!mReopenScannerOnTimeout) {
          LOG.debug("HBase scanner timed out and user disabled automatic scanner reopening.");
          throw new KijiIOException(
              "HBase scanner timed out and user disabled automatic scanner reopening.", ste);
        } else {
          // The HBase scanner timed out, re-open a new one:
          LOG.debug("HBase scanner timed out: closing and reopening a new scanner.");
          mResultScanner.close();
          mResultScanner = openResultScanner();
          continue;
        }

      } catch (IOException ioe) {
        throw new KijiIOException(ioe);
      }
    }
    throw new KijiIOException("Unable to retrieve HBase result from scanner.");
  }
View Full Code Here

      // Decode the HBase result into a KijiRowData:
      try {
        final EntityId entityId = mEntityIdFactory.getEntityIdFromHBaseRowKey(result.getRow());
        return new HBaseKijiRowData(mTable, mDataRequest, entityId, result, mCellDecoderProvider);
      } catch (IOException ioe) {
        throw new KijiIOException(ioe);
      }
    }
View Full Code Here

      final String hostname = InetAddress.getLocalHost().getHostName();
      final int pid = getPid();
      final long timestamp = System.currentTimeMillis();
      return String.format("%s;%d;%d", hostname, pid, timestamp);
    } catch (UnknownHostException uhe) {
      throw new KijiIOException(uhe);
    }
  }
View Full Code Here

        throw new RuntimeInterruptedException(ie);
      }
      final String pidStr = IOUtils.toString(process.getInputStream()).trim();
      return Integer.parseInt(pidStr);
    } catch (IOException ioe) {
      throw new KijiIOException(ioe);
    }
  }
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.