Package org.apache.flink.types

Examples of org.apache.flink.types.NullKeyFieldException


  @Override
  public void setReference(Record reference) {
    for (int i = 0; i < this.keyFields1.length; i++) {
      if (!reference.getFieldInto(this.keyFields1[i], this.keyHolders1[i])) {
        throw new NullKeyFieldException(this.keyFields1[i]);
      }
    }
  }
View Full Code Here


  @Override
  public boolean equalToReference(Record candidate) {
    for (int i = 0; i < this.keyFields2.length; i++) {
      final Key k = candidate.getField(this.keyFields2[i], this.keyHolders2[i]);
      if (k == null) {
        throw new NullKeyFieldException(this.keyFields2[i]);
      } else if (!k.equals(this.keyHolders1[i])) {
        return false;
      }
    }
    return true;
View Full Code Here

  @Override
  public int compareToReference(Record candidate) {
    for (int i = 0; i < this.keyFields2.length; i++) {
      final Key k = candidate.getField(this.keyFields2[i], this.keyHolders2[i]);
      if (k == null) {
        throw new NullKeyFieldException(this.keyFields2[i]);
      } else {
        final int comp = k.compareTo(this.keyHolders1[i]);
        if (comp != 0) {
          return comp;
        }
View Full Code Here

TOP

Related Classes of org.apache.flink.types.NullKeyFieldException

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.