Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"""
Gets existing cache names.
:param connection: connection to Ignite server,
:param query_id: (optional) a value generated by client and returned as-is
in response.query_id. When the parameter is omitted, a random value
is generated,
:return: API result data object. Contains zero status and a list of cache
names, non-zero status and an error description otherwise.
"""
query_struct = Query(OP_CACHE_GET_NAMES, query_id=query_id)
result = query_struct.perform(
connection,
response_config=[
('cache_names', StringArray),
],
)
if result.status == 0:
result.value = result.value['cache_names']
return result
def fields_or_field_count(self):
if self.include_field_names:
return 'fields', StringArray
return 'field_count', Int
def fields_or_field_count(self):
if self.include_field_names:
return 'fields', StringArray
return 'field_count', Int
def fields_or_field_count(self):
if self.include_field_names:
return 'fields', StringArray
return 'field_count', Int