Package org.kiji.schema

Examples of org.kiji.schema.InternalKijiError


      } else if (fLayout.isGroupType()) {
        for (ColumnLayout cLayout : fLayout.getColumns()) {
          columns.add(KijiColumnName.create(fLayout.getName(), cLayout.getName()));
        }
      } else {
        throw new InternalKijiError(
            String.format("Family '%s' is neither map-type nor group-type.", fLayout.getName()));
      }
    }

    // Pro-actively build cell encoders for all columns in the table:
View Full Code Here


          } finally {
            values.close();
          }
        }
        default: {
          throw new InternalKijiError("unsupported enum value: " + mDoMode);
        }
      }
    } finally {
      ResourceUtils.releaseOrLog(mKiji);
    }
View Full Code Here

    try {
      return String.format("%s" + ZK_NODE_NAME_SEPARATOR + "%s",
          URLEncoder.encode(userId, UTF8),
          URLEncoder.encode(layoutId, UTF8));
    } catch (UnsupportedEncodingException uee) {
      throw new InternalKijiError(uee);
    }
  }
View Full Code Here

          // and add a column prefix-filter to select only the columns from that Kiji family:
          get.addFamily(hbaseColumnName.getFamily());
          columnFilters.addFilter(toFilter(columnRequest, hbaseColumnName, filterContext));

        } else {
          throw new InternalKijiError("Family is neither group-type nor map-type");
        }
      }
    }

    if (completelyPaged) {
View Full Code Here

            final String userId = URLDecoder.decode(split[0], UTF8);
            final String layoutId = URLDecoder.decode(split[1], UTF8);
            children.put(userId, layoutId);
          }
        } catch (UnsupportedEncodingException uee) {
          throw new InternalKijiError(uee);
        }

        LOG.debug("Notifying watchers of changed layout users {}.", children.build());
        // This assumes handlers do not let exceptions pop up:
        mHandler.update(children.build());
View Full Code Here

          getPrintStream().println("(Restore failed.)");
          return FAILURE;
        }
      } else {
        // Should be unreachable because preconditions catch this case.
        throw new InternalKijiError("Neither input nor output file specified.");
      }
    } finally {
      ResourceUtils.releaseOrLog(kiji);
    }
    return SUCCESS;
View Full Code Here

          return GenericCellDecoderFactory.get().create(layout, spec);
        }
        case SPECIFIC: {
          return SpecificCellDecoderFactory.get().create(layout, spec);
        }
        default: throw new InternalKijiError("Unknown decoder type: " + decoderType);
      }
    } else {
      // If the decoder type is null, we can use the generic factory.
      return GenericCellDecoderFactory.get().create(layout, spec);
    }
View Full Code Here

              "Building and not caching new cell decoder from ColumnReaderSpec: {} for column: {}",
              spec.getColumnReaderSpec(), spec.getColumn());
          return (KijiCellDecoder<T>) createDecoderFromSpec(mLayout, spec);
        }
        default: {
          throw new InternalKijiError("Unknown OnDecoderCacheMiss: " + mOnDecoderCacheMiss);
        }
      }
    }
  }
View Full Code Here

      // is a new URI, for example "family:column".
      URI uri = new URI(toString()).resolve(String.format("./%s", path));
      return newBuilder(uri.toString()).build();
    } catch (URISyntaxException e) {
      // This should never happen
      throw new InternalKijiError(String.format("KijiURI was incorrectly constructed: %s.", this));
    } catch (IllegalArgumentException e) {
      throw new KijiURIException(this.toString(),
          String.format("Path can not be resolved: %s", path));
    }
  }
View Full Code Here

TOP

Related Classes of org.kiji.schema.InternalKijiError

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.