• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

georgia-tech-db / eva / #758

04 Sep 2023 08:37PM UTC coverage: 0.0% (-78.3%) from 78.333%
#758

push

circle-ci

hershd23
Increased underline length in at line 75 in text_summarization.rst
	modified:   docs/source/benchmarks/text_summarization.rst

0 of 11303 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/evadb/plan_nodes/create_index_plan.py
1
# coding=utf-8
2
# Copyright 2018-2023 EvaDB
3
#
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
# you may not use this file except in compliance with the License.
6
# You may obtain a copy of the License at
7
#
8
#     http://www.apache.org/licenses/LICENSE-2.0
9
#
10
# Unless required by applicable law or agreed to in writing, software
11
# distributed under the License is distributed on an "AS IS" BASIS,
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
# See the License for the specific language governing permissions and
14
# limitations under the License.
15
from typing import List
×
16

17
from evadb.catalog.catalog_type import VectorStoreType
×
18
from evadb.expression.function_expression import FunctionExpression
×
19
from evadb.parser.create_statement import ColumnDefinition
×
20
from evadb.parser.table_ref import TableRef
×
21
from evadb.plan_nodes.abstract_plan import AbstractPlan
×
22
from evadb.plan_nodes.types import PlanOprType
×
23

24

25
class CreateIndexPlan(AbstractPlan):
×
26
    def __init__(
×
27
        self,
28
        name: str,
29
        table_ref: TableRef,
30
        col_list: List[ColumnDefinition],
31
        vector_store_type: VectorStoreType,
32
        udf_func: FunctionExpression = None,
33
    ):
34
        super().__init__(PlanOprType.CREATE_INDEX)
×
35
        self._name = name
×
36
        self._table_ref = table_ref
×
37
        self._col_list = col_list
×
38
        self._vector_store_type = vector_store_type
×
39
        self._udf_func = udf_func
×
40

41
    @property
×
42
    def name(self):
×
43
        return self._name
×
44

45
    @property
×
46
    def table_ref(self):
×
47
        return self._table_ref
×
48

49
    @property
×
50
    def col_list(self):
×
51
        return self._col_list
×
52

53
    @property
×
54
    def vector_store_type(self):
×
55
        return self._vector_store_type
×
56

57
    @property
×
58
    def udf_func(self):
×
59
        return self._udf_func
×
60

61
    def __str__(self):
×
62
        return "CreateIndexPlan(name={}, \
×
63
            table_ref={}, \
64
            col_list={}, \
65
            vector_store_type={}, \
66
            {})".format(
67
            self._name,
68
            self._table_ref,
69
            tuple(self._col_list),
70
            self._vector_store_type,
71
            "" if not self._udf_func else "udf_func={}".format(self._udf_func),
72
        )
73

74
    def __hash__(self) -> int:
×
75
        return hash(
×
76
            (
77
                super().__hash__(),
78
                self.name,
79
                self.table_ref,
80
                tuple(self.col_list),
81
                self.vector_store_type,
82
                self.udf_func,
83
            )
84
        )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc