Package org.apache.flink.types

Examples of org.apache.flink.types.NullKeyFieldException


    @Override
    public void setReference(Record reference) {
      try {
        this.key = reference.getField(0, IntValue.class).getValue();
      } catch (NullPointerException npex) {
        throw new NullKeyFieldException();
      }
    }
View Full Code Here


    @Override
    public boolean equalToReference(Record candidate) {
      try {
        return this.key == candidate.getField(0, IntValue.class).getValue();
      } catch (NullPointerException npex) {
        throw new NullKeyFieldException();
      }
    }
View Full Code Here

    public int compareToReference(Record candidate) {
      try {
        final int i = candidate.getField(0, IntValue.class).getValue();
        return i - this.key;
      } catch (NullPointerException npex) {
        throw new NullKeyFieldException();
      }
       
    }
View Full Code Here

    public boolean equalToReference(Record candidate) {
      try {
        final IntValue i = candidate.getField(0, IntValue.class);
        return i.getValue() == this.reference;
      } catch (NullPointerException npex) {
        throw new NullKeyFieldException();
      }
    }
View Full Code Here

    public int compareToReference(Record candidate) {
      try {
        final IntValue i = candidate.getField(0, IntValue.class);
        return i.getValue() - this.reference;
      } catch (NullPointerException npex) {
        throw new NullKeyFieldException();
      }
    }
View Full Code Here

        }
      }
      return 0;
    }
    catch (NullPointerException npex) {
      throw new NullKeyFieldException(keyPositions[i]);
    }
    catch (IndexOutOfBoundsException iobex) {
      throw new KeyFieldOutOfBoundsException(keyPositions[i]);
    }
  }
View Full Code Here

        }
      }
     
      return 0;
    } catch (NullPointerException npex) {
      throw new NullKeyFieldException(keyPositions[i]);
    } catch (IndexOutOfBoundsException iobex) {
      throw new KeyFieldOutOfBoundsException(keyPositions[i], iobex);
    }
  }
View Full Code Here

        code += this.comparators[i].hash(value.getFieldNotNull(keyPositions[i]));
      }
      return code;
    }
    catch (NullFieldException nfex) {
      throw new NullKeyFieldException(nfex);
    }
    catch (IndexOutOfBoundsException iobex) {
      throw new KeyFieldOutOfBoundsException(keyPositions[i]);
    }
  }
View Full Code Here

      for (; i < this.keyPositions.length; i++) {
        this.comparators[i].setReference(toCompare.getFieldNotNull(this.keyPositions[i]));
      }
    }
    catch (NullFieldException nfex) {
      throw new NullKeyFieldException(nfex);
    }
    catch (IndexOutOfBoundsException iobex) {
      throw new KeyFieldOutOfBoundsException(keyPositions[i]);
    }
  }
View Full Code Here

        }
      }
      return true;
    }
    catch (NullFieldException nfex) {
      throw new NullKeyFieldException(nfex);
    }
    catch (IndexOutOfBoundsException iobex) {
      throw new KeyFieldOutOfBoundsException(keyPositions[i]);
    }
  }
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.