Skip to content

Refactor the ResourceFactory #206

@PsypherPunk

Description

@PsypherPunk

Following on from the merging of #189, the ResourceFactory could use an overhaul.

Currently the code is a series of if statements:

if(urlOrPath.startsWith("http://"))
...
} else if(urlOrPath.startsWith("hdfs://") || urlOrPath.startsWith("s3://")

If we continue supporting more protocols this is going to get unwieldy. We should probably refactor the code better handle multiple Resource types.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions