Skip to content

Commit

Permalink
This closes #1516
Browse files Browse the repository at this point in the history
  • Loading branch information
kennknowles committed Dec 6, 2016
2 parents 493c04f + a37068d commit b29bb1b
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public PCollectionTuple apply(
input.isBounded().and(signature.isBoundedPerElement()));

// Set output type descriptor similarly to how ParDo.BoundMulti does it.
outputs.get(mainOutputTag).setTypeDescriptorInternal(fn.getOutputTypeDescriptor());
outputs.get(mainOutputTag).setTypeDescriptor(fn.getOutputTypeDescriptor());

return outputs;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public PCollection<OutputT> apply(PCollection<? extends InputT> input) {
.withOutputTags(mainOutputTag, TupleTagList.empty()));
PCollection<OutputT> output = outputs.get(mainOutputTag);

output.setTypeDescriptorInternal(underlyingParDo.getNewFn().getOutputTypeDescriptor());
output.setTypeDescriptor(underlyingParDo.getNewFn().getOutputTypeDescriptor());
return output;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public PCollection<KV<String, Integer>> apply(PBegin input) {
input.getPipeline(),
WindowingStrategy.globalDefault(),
PCollection.IsBounded.UNBOUNDED)
.setTypeDescriptorInternal(new TypeDescriptor<KV<String, Integer>>() {});
.setTypeDescriptor(new TypeDescriptor<KV<String, Integer>>() {});
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public PCollection<KV<String, Integer>> apply(PBegin input) {
input.getPipeline(),
WindowingStrategy.globalDefault(),
PCollection.IsBounded.UNBOUNDED)
.setTypeDescriptorInternal(new TypeDescriptor<KV<String, Integer>>() {});
.setTypeDescriptor(new TypeDescriptor<KV<String, Integer>>() {});
}
})
.apply(view);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ public PCollection<OutputT> apply(PCollection<? extends InputT> input) {
input.getPipeline(),
input.getWindowingStrategy(),
input.isBounded())
.setTypeDescriptorInternal(getOldFn().getOutputTypeDescriptor());
.setTypeDescriptor(getOldFn().getOutputTypeDescriptor());
}

@Override
Expand Down Expand Up @@ -1065,7 +1065,7 @@ public PCollectionTuple apply(PCollection<? extends InputT> input) {
// The fn will likely be an instance of an anonymous subclass
// such as DoFn<Integer, String> { }, thus will have a high-fidelity
// TypeDescriptor for the output type.
outputs.get(mainOutputTag).setTypeDescriptorInternal(getOldFn().getOutputTypeDescriptor());
outputs.get(mainOutputTag).setTypeDescriptor(getOldFn().getOutputTypeDescriptor());

return outputs;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ private PCollection(Pipeline p) {
* etc., to provide more detailed reflective information.
*/
@Override
public PCollection<T> setTypeDescriptorInternal(TypeDescriptor<T> typeDescriptor) {
super.setTypeDescriptorInternal(typeDescriptor);
public PCollection<T> setTypeDescriptor(TypeDescriptor<T> typeDescriptor) {
super.setTypeDescriptor(typeDescriptor);
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public static PCollectionTuple ofPrimitiveOutputsInternal(
TypeDescriptor<Object> token = (TypeDescriptor<Object>) outputTag.getTypeDescriptor();
PCollection<Object> outputCollection = PCollection
.createPrimitiveOutputInternal(pipeline, windowingStrategy, isBounded)
.setTypeDescriptorInternal(token);
.setTypeDescriptor(token);

pcollectionMap.put(outputTag, outputCollection);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public TypeDescriptor<T> getTypeDescriptor() {
* reflective type information will lead to better {@link Coder}
* inference.
*/
public TypedPValue<T> setTypeDescriptorInternal(TypeDescriptor<T> typeDescriptor) {
public TypedPValue<T> setTypeDescriptor(TypeDescriptor<T> typeDescriptor) {
this.typeDescriptor = typeDescriptor;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public PCollection<KV<String, Integer>> apply(PBegin input) {
input.getPipeline(),
WindowingStrategy.globalDefault(),
PCollection.IsBounded.UNBOUNDED)
.setTypeDescriptorInternal(new TypeDescriptor<KV<String, Integer>>() {});
.setTypeDescriptor(new TypeDescriptor<KV<String, Integer>>() {});
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ public PCollection<KV<String, Integer>> apply(PBegin input) {
input.getPipeline(),
WindowingStrategy.globalDefault(),
PCollection.IsBounded.UNBOUNDED)
.setTypeDescriptorInternal(new TypeDescriptor<KV<String, Integer>>() {});
.setTypeDescriptor(new TypeDescriptor<KV<String, Integer>>() {});
}
})
.apply(view);
Expand Down

0 comments on commit b29bb1b

Please sign in to comment.