public List<RequestedLocalProperties> getPossibleLocalProperties() { if (this.localProps == null) { this.localProps = createPossibleLocalProperties(); } return this.localProps; }
public List<LocalPropertiesPair> getPossibleLocalProperties() { if (this.localProps == null) { this.localProps = createPossibleLocalProperties(); } return this.localProps; }
public List<RequestedGlobalProperties> getPossibleGlobalProperties() { if (this.globalProps == null) { this.globalProps = createPossibleGlobalProperties(); } return this.globalProps; }
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); }
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); }
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); }
protected List<OperatorDescriptorSingle> getPossibleProperties() { return Collections.<OperatorDescriptorSingle>singletonList(new NoOpDescriptor()); }
public List<GlobalPropertiesPair> getPossibleGlobalProperties() { if (this.globalProps == null) { this.globalProps = createPossibleGlobalProperties(); } return this.globalProps; }
/** * 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()); }
/** * 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()); }
public FlatMapNode(FlatMapOperatorBase<?, ?, ?> operator) { super(operator); this.possibleProperties = Collections.<OperatorDescriptorSingle>singletonList(new FlatMapDescriptor()); }
public FilterNode(FilterOperatorBase<?, ?> operator) { super(operator); this.possibleProperties = Collections.<OperatorDescriptorSingle>singletonList(new FilterDescriptor()); }
@Override protected List<OperatorDescriptorDual> getPossibleProperties() { return Collections.<OperatorDescriptorDual>singletonList(new UtilSinkJoinOpDescriptor()); }
@Override public boolean areCoFulfilled(RequestedLocalProperties requested1, RequestedLocalProperties requested2, LocalProperties produced1, LocalProperties produced2) { int numRelevantFields = this.keys1.size(); return checkSameOrdering(produced1, produced2, numRelevantFields); }
@Override public boolean areCoFulfilled(RequestedLocalProperties requested1, RequestedLocalProperties requested2, LocalProperties produced1, LocalProperties produced2) { int numRelevantFields = this.keys1.size(); return checkSameOrdering(produced1, produced2, numRelevantFields); }
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()); } }
@Override protected List<LocalPropertiesPair> createPossibleLocalProperties() { // all properties are possible return Collections.singletonList(new LocalPropertiesPair(new RequestedLocalProperties(), new RequestedLocalProperties())); }
@Override protected List<GlobalPropertiesPair> createPossibleGlobalProperties() { RequestedGlobalProperties partitionedGp = new RequestedGlobalProperties(); partitionedGp.setHashPartitioned(this.keys1); return Collections.singletonList(new GlobalPropertiesPair(partitionedGp, new RequestedGlobalProperties())); }
public NoOpNode() { super("No Op", new FieldSet(), new NoOpDescriptor()); }
public NoOpNode(String name) { super(name, new FieldSet(), new NoOpDescriptor()); }