Package org.kiji.schema

Examples of org.kiji.schema.KijiIOException


    // Schema's documentation for toString says it is rendered as JSON.
    value.put(SCHEMA_NODE, mValue.getWriterSchema().toString());
    try {
      value.put(DATA_NODE, ToJson.toAvroJsonString(mValue.getData(), mValue.getWriterSchema()));
    } catch (IOException ioe) {
      throw new KijiIOException(ioe);
    }
    return root;
  }
View Full Code Here


      try {
        final DecodedCell<?> cell = new DecodedCell<Object>(writerSchema,
            FromJson.fromAvroJsonString(data, writerSchema));
        return new ColumnValueEqualsRowFilter(family, qualifier, cell);
      } catch (IOException ioe) {
        throw new KijiIOException(ioe);
      }
    }
View Full Code Here

    } else if (e instanceof IOException) {
      throw (IOException) e;
    } else if (e instanceof RuntimeException) {
      throw (RuntimeException) e;
    } else {
      throw new KijiIOException(e);
    }
  }
View Full Code Here

      });
      return this;
    } catch (IOException ioe) {
      throw ioe;
    } catch (Exception e) {
      throw new KijiIOException(e);
    }
  }
View Full Code Here

        final DecodedCell<T> decodedCell =
            mCellDecoder.decodeCell(
                ByteUtils.toBytes(row.getBytes(CQLUtils.VALUE_COL)));
        return KijiCell.create(mLastColumn, version, decodedCell);
      } catch (IOException e) {
        throw new KijiIOException(e);
      }
    }
View Full Code Here

                  + mRowKeyFormat.getComponents().get(i).getType());
          }
        }
      }
    } catch (IOException ioe) {
      throw new KijiIOException(ioe);
    }
    return root;
  }
View Full Code Here

        final DecodedCell<T> decodedCell =
            mLastDecoder.decodeCell(
                ByteUtils.toBytes(row.getBytes(CQLUtils.VALUE_COL)));
        return KijiCell.create(mLastColumn, version, decodedCell);
      } catch (IOException e) {
        throw new KijiIOException(e);
      }
    }
View Full Code Here

      try {
        final DecodedCell<T> decodedCell =
            mCellDecoder.decodeCell(ByteUtils.toBytes(row.getBytes(CQLUtils.VALUE_COL)));
        return KijiCell.create(mColumnName, row.getLong(CQLUtils.VERSION_COL), decodedCell);
      } catch (IOException e) {
        throw new KijiIOException(e);
      }
    }
View Full Code Here

            }
          }
        }
        return new FormattedEntityIdRowFilter(rowKeyFormat, components);
      } catch (IOException ioe) {
        throw new KijiIOException(ioe);
      }
    }
View Full Code Here

              } catch (InvalidLayoutException ile) {
                LOG.error("Internal error while updating table layout in DEVELOPER mode: {}", ile);
                throw new InternalKijiError(ile);
              } catch (IOException ioe) {
                LOG.error("I/O error while updating table layout in DEVELOPER mode: {}", ioe);
                throw new KijiIOException(ioe);
              }
            }
          };

      try {
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.