[
https://issues.apache.org/jira/browse/HDFS-11170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15691873#comment-15691873
]
Andrew Wang commented on HDFS-11170:
------------------------------------
Thinking about it a little more, I think we just need a factory method that
returns a CreateBuilder in FileSystem. Filesystem subclasses can override and
extend as desired. Users can query for additional capabilities by downcasting
the returned Builder. If we want to be more generic, we can add interfaces for
adding favored nodes and erasure coding parameters that Builder subclasses can
implement. This is similar to how the different FSDataOutputStreams implement
Syncable.
> Add create API in filesystem public class to support assign parameter through
> builder
> -------------------------------------------------------------------------------------
>
> Key: HDFS-11170
> URL: https://issues.apache.org/jira/browse/HDFS-11170
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: SammiChen
> Assignee: SammiChen
>
> FileSystem class supports multiple create functions to help user create file.
> Some create functions has many parameters, it's hard for user to exactly
> remember these parameters and their orders. This task is to add builder
> based create functions to help user more easily create file.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]