Package eu.stratosphere.api.common.operators.util

Examples of eu.stratosphere.api.common.operators.util.FieldSet


   */
  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

* 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

          }
        }
        continue;
      }
      String found = forwardMatcher.group(4);
      FieldSet fs = readFieldSetFromString(found, inType, outType);

      if (sp instanceof SingleInputSemanticProperties) {
        ((SingleInputSemanticProperties) sp).addForwardedField(sourceField, fs);
      } else if (sp instanceof DualInputSemanticProperties) {
        if (input == 0) {
          ((DualInputSemanticProperties) sp).addForwardedField1(sourceField, fs);
        } else if (input == 1) {
          ((DualInputSemanticProperties) sp).addForwardedField2(sourceField, fs);
        }
      }
    }
    s = forwardMatcher.replaceAll("");

    Matcher listMatcher = PATTERN_LIST.matcher(s);

    while (listMatcher.find()) {
      String list = listMatcher.group();
      FieldSet fs = readFieldSetFromString(list, inType, outType);
      for (int i : fs) {
        if (sp instanceof SingleInputSemanticProperties) {
          ((SingleInputSemanticProperties) sp).addForwardedField(i, i);
        } else if (sp instanceof DualInputSemanticProperties) {
          if (input == 0) {
View Full Code Here

    for (String str : cffe) {
      if (str == null) {
        continue;
      }

      FieldSet fs = readFieldSetFromString(str, inType, outType);

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

    for (String str : cfse) {
      if (str == null) {
        continue;
      }

      FieldSet fs = readFieldSetFromString(str, inType, outType);

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

      return;
    }

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

TOP

Related Classes of eu.stratosphere.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.