[
https://issues.apache.org/jira/browse/CRAIL-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16519754#comment-16519754
]
Patrick Stuedi commented on CRAIL-27:
-------------------------------------
What does that mean?
The way Crail implements the HDFS interfaces FileSystem and AbstractFileSystem
is exactly how HDFS does as well, which is by "delegating the implementation to
a separate shared class" Here is the example
1) FileSystem
Crail: CrailHadoopFileSystem extends FileSystem
HDFS: DistributedFileSystem extends FileSystem
2) AbstractFileSystem
Crail: CrailHDFS extends AbstractFileSystem
HDFS: Hdfs extends AbstractFile System
3) Delegation
Crail: CrailHadoopFileSystem and CrailHDFS delegate impl to CoreStore
HDFS: DistributedFileSystem and Hdfs delegate impl to DFCClient
> Do not reimplement HDFS adapter for AbstractFileSystem
> ------------------------------------------------------
>
> Key: CRAIL-27
> URL: https://issues.apache.org/jira/browse/CRAIL-27
> Project: Apache Crail
> Issue Type: Improvement
> Reporter: Jonas Pfefferle
> Priority: Minor
>
> Use DelegateToFileSystem class to implement AbstractFileSystem instead of
> reimplementing all the calls.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)