flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggevay <...@git.apache.org>
Subject [GitHub] flink pull request #2094: [FLINK-3702] Make FieldAccessors support nested fi...
Date Wed, 24 Aug 2016 11:38:53 GMT
Github user ggevay commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2094#discussion_r76040571
  
    --- Diff: flink-core/src/main/java/org/apache/flink/api/java/typeutils/TupleTypeInfoBase.java
---
    @@ -203,7 +205,26 @@ public void getFlatFields(String fieldExpression, int offset, List<FlatFieldDesc
     		TypeInformation<X> typed = (TypeInformation<X>) this.types[pos];
     		return typed;
     	}
    -	
    +
    +	@Override
    +	@PublicEvolving
    +	public <F> FieldAccessor<T, F> getFieldAccessor(int pos, ExecutionConfig
config) {
    +		return new FieldAccessor.SimpleTupleFieldAccessor<T, F>(pos, this);
    +	}
    +
    +	@Override
    +	@PublicEvolving
    +	public <F> FieldAccessor<T, F> getFieldAccessor(String fieldExpression,
ExecutionConfig config) {
    +		FieldAccessor.FieldExpressionDecomposition decomp = FieldAccessor.decomposeFieldExpression(fieldExpression);
    +		int FieldPos = this.getFieldIndex(decomp.head);
    --- End diff --
    
    5be08372611ed7c7e2fa83395f07c5ab1193f4fc
    22326c7aea0c8f350d3453eef97df92382ee87f1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message