This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make CoveringIndexConfig available in Python
- Loading branch information
Chungmin Lee
committed
Jul 2, 2021
1 parent
7f10ec7
commit 27d39e9
Showing
3 changed files
with
16 additions
and
13 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from .hyperspace import Hyperspace | ||
from .indexconfig import IndexConfig | ||
from .indexconfig import CoveringIndexConfig, IndexConfig | ||
|
||
__all__ = [ | ||
'Hyperspace', 'IndexConfig' | ||
'Hyperspace', 'CoveringIndexConfig', 'IndexConfig' | ||
] |
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
class IndexConfig: | ||
class CoveringIndexConfig: | ||
def __init__(self, indexName, indexedColumns, includedColumns): | ||
""" | ||
Initializes IndexConfig object. | ||
Initializes CoveringIndexConfig object. | ||
:param indexName: index name | ||
:param indexedColumns: indexed columns | ||
:param includedColumns: included columns | ||
:return: IndexConfig object | ||
:return: CoveringIndexConfig object | ||
>>> idxConfig = IndexConfig("indexName", ["c1"], ["c2","c3"]) | ||
>>> idxConfig = CoveringIndexConfig("indexName", ["c1"], ["c2","c3"]) | ||
""" | ||
self.indexName = indexName | ||
self.indexedColumns = indexedColumns | ||
self.includedColumns = includedColumns | ||
|
||
# TODO(ChungminL): Add deprecation warning | ||
IndexConfig = CoveringIndexConfig |