MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / _check_graph_paging_available

Method _check_graph_paging_available

cassandra/cluster.py:2862–2876  ·  view source on GitHub ↗

Verify if we can enable graph paging. This executed only once when the session is created.

(self)

Source from the content-addressed store, hash-verified

2860 execution_profile.continuous_paging_options = graph_paging
2861
2862 def _check_graph_paging_available(self):
2863 """Verify if we can enable graph paging. This executed only once when the session is created."""
2864
2865 if not ProtocolVersion.has_continuous_paging_next_pages(self._protocol_version):
2866 return False
2867
2868 for host in self.cluster.metadata.all_hosts():
2869 if host.dse_version is None:
2870 return False
2871
2872 version = Version(host.dse_version)
2873 if version < _GRAPH_PAGING_MIN_DSE_VERSION:
2874 return False
2875
2876 return True
2877
2878 def _resolve_execution_profile_options(self, execution_profile):
2879 """

Callers 1

__init__Method · 0.95

Calls 3

VersionClass · 0.90
all_hostsMethod · 0.45

Tested by

no test coverage detected