forked from apache/incubator-wayang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WAYANG-#8] rename to pywy and organization of class
Signed-off-by: bertty <[email protected]>
- Loading branch information
Showing
57 changed files
with
190 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
la | ||
lala | ||
a | ||
lalala |
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
python/src/pywayang/platforms/python/operators/__init__.py
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class Channel: | ||
|
||
def __init__(self): | ||
pass | ||
|
||
def getchannel(self) -> 'Channel': | ||
return self | ||
|
||
def gettype(self): | ||
return type(self) | ||
|
||
class ChannelDescriptor: | ||
|
||
def __init__(self, channelType: type, isReusable: bool, isSuitableForBreakpoint: bool): | ||
self.channelType = channelType | ||
self.isReusable = isReusable | ||
self.isSuitableForBreakpoint = isSuitableForBreakpoint | ||
|
||
def create_instance(self) -> Channel: | ||
return self.channelType() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
23 changes: 1 addition & 22 deletions
23
...src/pywayang/platforms/python/channels.py → python/src/pywy/platforms/python/channels.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from pywy.platforms.basic.mapping import Mapping | ||
from pywy.platforms.python.operators import * | ||
|
||
|
||
PywyOperatorMappings = Mapping() | ||
|
||
PywyOperatorMappings.add_mapping(PyFilterOperator()) | ||
PywyOperatorMappings.add_mapping(PyTextFileSourceOperator()) | ||
PywyOperatorMappings.add_mapping(PyTextFileSinkOperator()) | ||
|
10 changes: 5 additions & 5 deletions
10
...orms/python/operators/PyFilterOperator.py → ...orms/python/operators/PyFilterOperator.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ython/operators/PyTextFileSinkOperator.py → ...ython/operators/PyTextFileSinkOperator.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...hon/operators/PyTextFileSourceOperator.py → ...hon/operators/PyTextFileSourceOperator.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...thon/operators/PythonExecutionOperator.py → ...thon/operators/PythonExecutionOperator.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from pywy.platforms.python.operators.PythonExecutionOperator import PythonExecutionOperator | ||
from pywy.platforms.python.operators.PyFilterOperator import PyFilterOperator | ||
from pywy.platforms.python.operators.PyTextFileSourceOperator import PyTextFileSourceOperator | ||
from pywy.platforms.python.operators.PyTextFileSinkOperator import PyTextFileSinkOperator | ||
|
||
__ALL__ = [ | ||
PythonExecutionOperator, | ||
PyFilterOperator, | ||
PyTextFileSourceOperator, | ||
PyTextFileSinkOperator | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pywy.platforms.python.platform.platform import PythonPlatform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from pywy.platforms.basic.platform import Platform | ||
|
||
class PythonPlatform(Platform): | ||
|
||
def __init__(self): | ||
super(PythonPlatform, self).__init__("Python") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pywy.platforms.python.plugin.plugin import PythonPlugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from pywy.platforms.python.platform import PythonPlatform | ||
from pywy.platforms.basic.plugin import Plugin | ||
from pywy.platforms.python.mappings import PywyOperatorMappings | ||
|
||
|
||
|
||
class PythonPlugin(Plugin): | ||
|
||
def __init__(self): | ||
super(PythonPlugin, self).__init__(PythonPlatform(), PywyOperatorMappings) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from pywy.platforms.basic.platform import Platform | ||
from pywy.platforms.basic.plugin import Plugin | ||
from pywy.platforms.python.plugin import PythonPlugin | ||
|
||
# define the basic plugins that can be used | ||
java = Plugin(Platform('java')) | ||
spark = Plugin(Platform('spark')) | ||
flink = Plugin(Platform('flink')) | ||
# plugin for the python platform | ||
python = PythonPlugin() |
Oops, something went wrong.