[
https://issues.apache.org/jira/browse/BEAM-7356?focusedWorklogId=247197&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-247197
]
ASF GitHub Bot logged work on BEAM-7356:
----------------------------------------
Author: ASF GitHub Bot
Created on: 23/May/19 00:34
Start Date: 23/May/19 00:34
Worklog Time Spent: 10m
Work Description: reuvenlax commented on pull request #8613: [BEAM-7356]
Support generic field selections in Filter.
URL: https://github.com/apache/beam/pull/8613#discussion_r286737925
##########
File path:
sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/transforms/Filter.java
##########
@@ -84,95 +87,128 @@
/** Implementation of the filter. */
public static class Inner<T> extends PTransform<PCollection<T>,
PCollection<T>> {
- private final Map<String, SerializableFunction<?, Boolean>>
fieldNameFilters =
- Maps.newHashMap();
- private final Map<Integer, SerializableFunction<?, Boolean>>
fieldIdFilters = Maps.newHashMap();
- private final Map<List<String>, SerializableFunction<Row, Boolean>>
fieldNamesFilters =
- Maps.newHashMap();
- private final Map<List<Integer>, SerializableFunction<Row, Boolean>>
fieldIdsFilters =
- Maps.newHashMap();
+ @AutoValue
+ abstract static class FilterDescription<FieldT> implements Serializable {
+ abstract FieldAccessDescriptor getFieldAccessDescriptor();
+
+ abstract SerializableFunction<FieldT, Boolean> getPredicate();
+
+ @Nullable
+ abstract Schema getOutputSchema();
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 247197)
Time Spent: 1h 40m (was: 1.5h)
> Select should support nested schema selectors
> ---------------------------------------------
>
> Key: BEAM-7356
> URL: https://issues.apache.org/jira/browse/BEAM-7356
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-java-core
> Reporter: Reuven Lax
> Priority: Major
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)