예제 #1
0
        /// <summary>
        /// Returns the Keyspace with given name
        /// </summary>
        /// <param name="keyspace"></param>
        /// <returns></returns>
        public Keyspace getKeyspace(String keyspace)
        {
            KsDef ks = null;

            try
            {
                ks = client.describe_keyspace(keyspace);
            }
            catch (InvalidRequestException e)
            {
            }

            return(ThriftUtility.ToKeyspaceFromKsDef(ks));
        }
예제 #2
0
        public override void Execute(Apache.Cassandra.Cassandra.Client cassandraClient)
        {
            var keyspaceDescription = cassandraClient.describe_keyspace(keyspace);

            KeyspaceInformation = keyspaceDescription.FromCassandraKsDef();
        }