예제 #1
0
파일: Stream.java 프로젝트: wshgit/jstorm
  private void projectionValidation(Fields projFields) {
    if (projFields == null) {
      return;
    }

    Fields allFields = this.getOutputFields();
    for (String field : projFields) {
      if (!allFields.contains(field)) {
        throw new IllegalArgumentException(
            "Trying to select non-existent field: '"
                + field
                + "' from stream containing fields fields: <"
                + allFields
                + ">");
      }
    }
  }