Tabnine Logo
org.apache.flink.optimizer.operators
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.flink.optimizer.operators

Best Java code snippets using org.apache.flink.optimizer.operators (Showing top 20 results out of 315)

origin: apache/flink

public List<RequestedLocalProperties> getPossibleLocalProperties() {
  if (this.localProps == null) {
    this.localProps = createPossibleLocalProperties();
  }
  return this.localProps;
}
origin: apache/flink

public List<LocalPropertiesPair> getPossibleLocalProperties() {
  if (this.localProps == null) {
    this.localProps = createPossibleLocalProperties();
  }
  
  return this.localProps;
}

origin: apache/flink

public List<RequestedGlobalProperties> getPossibleGlobalProperties() {
  if (this.globalProps == null) {
    this.globalProps = createPossibleGlobalProperties();
  }
  return this.globalProps;
}

origin: apache/flink

public void makeJoinWithSolutionSet(int solutionsetInputIndex) {
  OperatorDescriptorDual op;
  if (solutionsetInputIndex == 0) {
    op = new HashJoinBuildFirstProperties(this.keys1, this.keys2);
  } else if (solutionsetInputIndex == 1) {
    op = new HashJoinBuildSecondProperties(this.keys1, this.keys2);
  } else {
    throw new IllegalArgumentException();
  }
  
  this.dataProperties = Collections.singletonList(op);
}

origin: apache/flink

public void makeCoGroupWithSolutionSet(int solutionsetInputIndex) {
  OperatorDescriptorDual op;
  if (solutionsetInputIndex == 0) {
    op = new CoGroupWithSolutionSetFirstDescriptor(keys1, keys2);
  } else if (solutionsetInputIndex == 1) {
    op = new CoGroupWithSolutionSetSecondDescriptor(keys1, keys2);
  } else {
    throw new IllegalArgumentException();
  }
  this.dataProperties = Collections.<OperatorDescriptorDual>singletonList(op);
}
origin: apache/flink

private List<OperatorDescriptorSingle> initPossibleProperties() {
  // check if we can work with a grouping (simple reducer), or if we need ordering because of a group order
  Ordering groupOrder = getOperator().getGroupOrder();
  if (groupOrder != null && groupOrder.getNumberOfFields() == 0) {
    groupOrder = null;
  }
  OperatorDescriptorSingle props = (this.keys == null ?
      new AllGroupCombineProperties() :
      new GroupCombineProperties(this.keys, groupOrder));
  return Collections.singletonList(props);
}
origin: apache/flink

protected List<OperatorDescriptorSingle> getPossibleProperties() {
  return Collections.<OperatorDescriptorSingle>singletonList(new NoOpDescriptor());
}
origin: apache/flink

public List<GlobalPropertiesPair> getPossibleGlobalProperties() {
  if (this.globalProps == null) {
    this.globalProps = createPossibleGlobalProperties();
  }
  
  return this.globalProps;
}

origin: apache/flink

/**
 * Creates a new MapNode for the given operator.
 * 
 * @param operator The map operator.
 */
public MapNode(SingleInputOperator<?, ?, ?> operator) {
  super(operator);
  
  this.possibleProperties = Collections.<OperatorDescriptorSingle>singletonList(new MapDescriptor());
}
origin: apache/flink

/**
 * Creates a new MapNode for the given contract.
 * 
 * @param operator The map partition contract object.
 */
public MapPartitionNode(SingleInputOperator<?, ?, ?> operator) {
  super(operator);
  
  this.possibleProperties = Collections.<OperatorDescriptorSingle>singletonList(new MapPartitionDescriptor());
}
origin: apache/flink

public FlatMapNode(FlatMapOperatorBase<?, ?, ?> operator) {
  super(operator);
  
  this.possibleProperties = Collections.<OperatorDescriptorSingle>singletonList(new FlatMapDescriptor());
}
origin: apache/flink

public FilterNode(FilterOperatorBase<?, ?> operator) {
  super(operator);
  this.possibleProperties = Collections.<OperatorDescriptorSingle>singletonList(new FilterDescriptor());
}
origin: apache/flink

@Override
protected List<OperatorDescriptorDual> getPossibleProperties() {
  return Collections.<OperatorDescriptorDual>singletonList(new UtilSinkJoinOpDescriptor());
}
origin: apache/flink

@Override
public boolean areCoFulfilled(RequestedLocalProperties requested1, RequestedLocalProperties requested2,
    LocalProperties produced1, LocalProperties produced2) {
  int numRelevantFields = this.keys1.size();
  return checkSameOrdering(produced1, produced2, numRelevantFields);
}
origin: apache/flink

@Override
public boolean areCoFulfilled(RequestedLocalProperties requested1, RequestedLocalProperties requested2,
    LocalProperties produced1, LocalProperties produced2) {
  int numRelevantFields = this.keys1.size();
  return checkSameOrdering(produced1, produced2, numRelevantFields);
}
origin: apache/flink

protected boolean checkEquivalentFieldPositionsInKeyFields(FieldList fields1, FieldList fields2) {
  // check number of produced partitioning fields
  if(fields1.size() != fields2.size()) {
    return false;
  } else {
    return checkEquivalentFieldPositionsInKeyFields(fields1, fields2, fields1.size());
  }
}
origin: apache/flink

@Override
protected List<LocalPropertiesPair> createPossibleLocalProperties() {
  // all properties are possible
  return Collections.singletonList(new LocalPropertiesPair(new RequestedLocalProperties(), new RequestedLocalProperties()));
}
origin: apache/flink

@Override
protected List<GlobalPropertiesPair> createPossibleGlobalProperties() {
  RequestedGlobalProperties partitionedGp = new RequestedGlobalProperties();
  partitionedGp.setHashPartitioned(this.keys1);
  return Collections.singletonList(new GlobalPropertiesPair(partitionedGp, new RequestedGlobalProperties()));
}
origin: apache/flink

public NoOpNode() {
  super("No Op", new FieldSet(), new NoOpDescriptor());
}

origin: apache/flink

public NoOpNode(String name) {
  super(name, new FieldSet(), new NoOpDescriptor());
}

org.apache.flink.optimizer.operators

Most used classes

  • CoGroupDescriptor
  • SortMergeInnerJoinDescriptor
  • AbstractJoinDescriptor
    Defines the possible global properties for a join.
  • AbstractSortMergeJoinDescriptor
  • AllGroupCombineProperties
  • AllGroupWithPartialPreGroupProperties,
  • AllReduceProperties,
  • BinaryUnionOpDescriptor,
  • CartesianProductDescriptor,
  • CoGroupRawDescriptor,
  • CoGroupWithSolutionSetFirstDescriptor,
  • CoGroupWithSolutionSetSecondDescriptor,
  • CrossBlockOuterFirstDescriptor,
  • CrossBlockOuterSecondDescriptor,
  • CrossStreamOuterFirstDescriptor,
  • CrossStreamOuterSecondDescriptor,
  • FilterDescriptor,
  • FlatMapDescriptor,
  • GroupCombineProperties
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now