flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twalthr <...@git.apache.org>
Subject [GitHub] flink pull request #5043: [FLINK-2170] [connectors] Add OrcRowInputFormat an...
Date Wed, 22 Nov 2017 11:12:41 GMT
Github user twalthr commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5043#discussion_r152519868
  
    --- Diff: flink-core/src/main/java/org/apache/flink/api/java/typeutils/RowTypeInfo.java
---
    @@ -355,4 +355,21 @@ public void addComparatorField(int fieldId, TypeComparator<?>
comparator) {
     				comparatorOrders);
     		}
     	}
    +
    +	/**
    +	 * Creates a {@link RowTypeInfo} with projected fields.
    +	 *
    +	 * @param rowType The original RowTypeInfo whose fields are projected
    +	 * @param fieldMapping The field mapping of the projection
    +	 * @return A RowTypeInfo with projected fields.
    +	 */
    +	public static RowTypeInfo projectFields(RowTypeInfo rowType, int[] fieldMapping) {
    --- End diff --
    
    Why is this method static?


---

Mime
View raw message