2929from rbc import ctools , typesystem
3030
3131
32- __all__ = ['RemoteHeavyDB' , 'RemoteOmnisci' , ' RemoteCallCapsule' , 'is_available' ,
32+ __all__ = ['RemoteHeavyDB' , 'RemoteCallCapsule' , 'is_available' ,
3333 'type_to_type_name' , 'get_client_config' , 'global_heavydb_singleton' ]
3434
3535
@@ -95,8 +95,7 @@ def _global_heavydb():
9595 """Implements singleton of a global RemoteHeavyDB instance.
9696 """
9797 config = get_client_config ()
98- remotedb = dict (heavyai = RemoteHeavyDB ,
99- omnisci = RemoteHeavyDB )[config ['dbname' ]](** config )
98+ remotedb = RemoteHeavyDB (** config )
10099 while True :
101100 yield remotedb
102101
@@ -105,7 +104,7 @@ def _global_heavydb():
105104
106105
107106def is_available (_cache = {}):
108- """Return version tuple and None if HeavyDB/OmnisciDB server is
107+ """Return version tuple and None if HeavyDB server is
109108 accessible or recent enough. Otherwise return None and the reason
110109 about unavailability.
111110 """
@@ -130,25 +129,22 @@ def get_client_config(**config):
130129 """Retrieve the HeavyDB client configuration parameters from a client
131130 home directory.
132131
133- Two HeavyDB brands (HEAVYDB_BRAND) are supported: heavyai and
134- omnisci.
135-
136132 Note that here the client configurations parameters are those that
137133 are used to configure the client software such as rbc or pymapd.
138134 This is different from heavydb instance configuration described in
139135 https://docs.heavy.ai/installation-and-configuration/config-parameters
140136 that is used for configuring the heavydb server software.
141137
142138 In Linux clients, the HeavyDB client configuration is read from
143- :code:`$HOME/.config/$HEAVYDB_BRAND /client.conf`
139+ :code:`$HOME/.config/heavyai /client.conf`
144140
145141 In Windows clients, the configuration is read from
146- :code:`%UserProfile/.config/%HEAVYDB_BRAND% /client.conf` or
147- :code:`%AllUsersProfile/.config/%HEAVYDB_BRAND% /client.conf`
142+ :code:`%UserProfile/.config/heavyai /client.conf` or
143+ :code:`%AllUsersProfile/.config/heavyai /client.conf`
148144
149- When :code:`HEAVYDB_CLIENT_CONF` or :code:`OMNISCI_CLIENT_CONF`
150- environment variable is defined then the configuration is read
151- from the file specified in this variable.
145+ When :code:`HEAVYDB_CLIENT_CONF` environment variable is defined
146+ then the configuration is read from the file specified in
147+ this variable.
152148
153149 The configuration file must use configuration language similar to
154150 one used in MS Windows INI files. For HeavyDB client
@@ -161,7 +157,7 @@ def get_client_config(**config):
161157 [server]
162158 host: <HeavyDB server host name or IP, defaults to localhost>
163159 port: <HeavyDB server port, defaults to 6274>
164- dbname: <HeavyDB database name, defaults to heavyai or omnisci >
160+ dbname: <HeavyDB database name, defaults to heavyai>
165161
166162 Parameters
167163 ----------
@@ -182,8 +178,7 @@ def get_client_config(**config):
182178 config = _config
183179
184180 conf_file = None
185- for brand , client_conf_env in [('heavyai' , 'HEAVYDB_CLIENT_CONF' ),
186- ('omnisci' , 'OMNISCI_CLIENT_CONF' )]:
181+ for brand , client_conf_env in [('heavyai' , 'HEAVYDB_CLIENT_CONF' )]:
187182 conf_file = os .environ .get (client_conf_env , None )
188183 if conf_file is not None and not os .path .isfile (conf_file ):
189184 print ('rbc.heavydb.get_client_config:'
@@ -264,7 +259,7 @@ def is_sizer(t):
264259
265260
266261def get_sizer_enum (t ):
267- """Return sizer enum value as defined by the omniscidb server.
262+ """Return sizer enum value as defined by the heavydb server.
268263 """
269264 sizer = t .annotation ()['sizer' ]
270265 sizer = output_buffer_sizer_map .get (sizer or None , sizer )
@@ -1561,8 +1556,3 @@ def remote_call(self, func, ftype: typesystem.Type, arguments: tuple, hold=False
15611556 return numpy .array (list (result ), dtype ).view (numpy .recarray )
15621557 else :
15631558 return dtype [0 ][1 ](list (result )[0 ][0 ])
1564-
1565-
1566- class RemoteOmnisci (RemoteHeavyDB ):
1567- """Omnisci - the previous brand of HeavyAI
1568- """
0 commit comments