[
https://issues.apache.org/jira/browse/BEAM-4613?focusedWorklogId=115702&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-115702
]
ASF GitHub Bot logged work on BEAM-4613:
----------------------------------------
Author: ASF GitHub Bot
Created on: 25/Jun/18 22:48
Start Date: 25/Jun/18 22:48
Worklog Time Spent: 10m
Work Description: huygaa11 commented on a change in pull request #5723:
[BEAM-4613] Use ByteBuddy to generate a coder class for a specific Schema.
URL: https://github.com/apache/beam/pull/5723#discussion_r197965807
##########
File path:
sdks/java/core/src/main/java/org/apache/beam/sdk/coders/RowCoder.java
##########
@@ -63,9 +64,49 @@
.put(TypeName.DATETIME, Long.BYTES)
.build();
- private static final BitSetCoder nullListCoder = BitSetCoder.of();
+ private final Schema schema;
+ private final UUID id;
+ @Nullable
+ private transient Coder<Row> delegateCoder = null;
- private Schema schema;
+ public static RowCoder of(Schema schema) {
+ return new RowCoder(schema, UUID.randomUUID());
+ }
+
+
+ private RowCoder(Schema schema, UUID id) {
+ this.schema = schema;
+ this.id = id;
+ }
+
+ // Return the generated coder class for this schema.
+ private Coder<Row> getDelegate() {
Review comment:
or just getGeneratedCoder
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 115702)
Time Spent: 1.5h (was: 1h 20m)
> Improve performance of SchemaCoder
> ----------------------------------
>
> Key: BEAM-4613
> URL: https://issues.apache.org/jira/browse/BEAM-4613
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-java-core
> Reporter: Reuven Lax
> Assignee: Reuven Lax
> Priority: Major
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)