-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#510 fixed/hack -- using new type of the meta-rows, that optionaly se…
…rves the meta-information.
- Loading branch information
Showing
5 changed files
with
68 additions
and
22 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
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,23 @@ | ||
from arekit.common.linkage.base import LinkedDataWrapper | ||
|
||
|
||
class MetaEmptyLinkedDataWrapper(LinkedDataWrapper): | ||
""" This is a placeholder data-wrapper utilized for passing system information | ||
while iterating through the data pipelines. | ||
""" | ||
|
||
def __init__(self, doc_id, meta_data=None): | ||
""" meta_data: | ||
optional parameter which serves any information need in further. | ||
""" | ||
super(MetaEmptyLinkedDataWrapper, self).__init__([]) | ||
self.__doc_id = doc_id | ||
self.__meta_data = meta_data | ||
|
||
@property | ||
def RelatedDocID(self): | ||
return self.__doc_id | ||
|
||
@property | ||
def MetaData(self): | ||
return self.__meta_data |
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