flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aljoscha Krettek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-8008) PojoTypeInfo should sort fields fields based on boolean
Date Wed, 08 Nov 2017 09:53:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-8008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16243626#comment-16243626

Aljoscha Krettek commented on FLINK-8008:

I believe you can use this constructor instead:
public PojoCsvInputFormat(Path filePath, PojoTypeInfo<OUT> pojoTypeInfo, String[] fieldNames)

Here you can specify the fields and the order should match the order in the file.

> PojoTypeInfo should sort fields fields based on boolean
> -------------------------------------------------------
>                 Key: FLINK-8008
>                 URL: https://issues.apache.org/jira/browse/FLINK-8008
>             Project: Flink
>          Issue Type: Improvement
>          Components: DataSet API
>    Affects Versions: 1.3.2
>            Reporter: Muhammad Imran Tariq
>            Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
> Flink PojoTypeInfo<T> sorts fields array that are passed into constructor arguments.
I want to create another constructor that takes boolean parameter to sort field or not.

This message was sent by Atlassian JIRA

View raw message