Package org.apache.flink.api.common.operators.util

Examples of org.apache.flink.api.common.operators.util.FieldSet


      return;
    }

    for (String str : rf) {
      if (str != null) {
        FieldSet fs = readFieldSetFromString(str, inType, outType);
        dm.addReadFields2(fs);
      }
    }
  }
View Full Code Here


      return;
    }

    for (String str : cfe) {
      if (str != null) {
        FieldSet fs = readFieldSetFromString(str, inType, outType);

        for (int i = 0; i < outType.getArity(); i++) {
          if (!fs.contains(i)) {
            sm.addForwardedField(i, i);
          }
        }
      }
    }
View Full Code Here

    if (!matcher.matches()) {
      throw new InvalidProgramException("Unrecognized annotation string format.");
    }

    matcher = PATTERN_DIGIT.matcher(s);
    FieldSet fs = FieldSet.EMPTY_SET;

    while (matcher.find()) {
      int field = Integer.valueOf(matcher.group());
      if (!isValidField(outType, field)) {
        throw new IndexOutOfBoundsException("Annotation: Field " + field + " not available in the output tuple.");
      }
      if (!isValidField(inType, field)) {
        throw new IndexOutOfBoundsException("Annotation: Field " + field + " not available in the input tuple.");
      }
     
      fs = fs.addField(field);
    }
    return fs;
  }
View Full Code Here

      return;
    }

    for (String str : rf) {
      if (str != null) {
        FieldSet fs = readFieldSetFromString(str, inType, outType);
        sm.addReadFields(fs);
      }
    }
  }
View Full Code Here

* The optimizer's internal representation of a <i>No Operation</i> node.
*/
public class NoOpNode extends UnaryOperatorNode {
 
  public NoOpNode() {
    super("No Op", new FieldSet(), new NoOpDescriptor());
  }
View Full Code Here

  public NoOpNode() {
    super("No Op", new FieldSet(), new NoOpDescriptor());
  }
 
  public NoOpNode(String name) {
    super(name, new FieldSet(), new NoOpDescriptor());
  }
View Full Code Here

    DualInputSemanticProperties semanticProperties = c.getSemanticProperties();
   
    switch(input) {
    case 0:
      if (semanticProperties != null) {
        FieldSet fs;
        if ((fs = semanticProperties.getForwardedField1(fieldNumber)) != null) {
          return fs.contains(fieldNumber);
        }
      }
      break;
    case 1:
      if(semanticProperties != null) {
        FieldSet fs;
        if ((fs = semanticProperties.getForwardedField2(fieldNumber)) != null) {
          return fs.contains(fieldNumber);
        }
      }
      break;
    default:
      throw new IndexOutOfBoundsException();
View Full Code Here

    if (this.uniqueFieldCombinations != null) {
      HashSet<FieldSet> newSet = new HashSet<FieldSet>();
      newSet.addAll(this.uniqueFieldCombinations);
     
      for (Iterator<FieldSet> combos = newSet.iterator(); combos.hasNext(); ){
        FieldSet current = combos.next();
        for (Integer field : current) {
          if (!node.isFieldConstant(input, field)) {
            combos.remove();
            break;
          }
View Full Code Here

   */
  protected SingleInputNode(SingleInputOperator<?, ?, ?> pactContract) {
    super(pactContract);
   
    int[] k = pactContract.getKeyColumns(0);
    this.keys = k == null || k.length == 0 ? null : new FieldSet(k);
  }
View Full Code Here

   
    SingleInputOperator<?, ?, ?> c = getPactContract();
    SingleInputSemanticProperties semanticProperties = c.getSemanticProperties();
   
    if (semanticProperties != null) {
      FieldSet fs;
      if ((fs = semanticProperties.getForwardedField(fieldNumber)) != null) {
        return fs.contains(fieldNumber);
      }
    }
   
    return false;
  }
View Full Code Here

TOP

Related Classes of org.apache.flink.api.common.operators.util.FieldSet

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.