public static KSMetaData fromSchema ( Row row , Iterable < CFMetaData > cfms , UTMetaData userTypes ) { UntypedResultSet . Row result = QueryProcessor . resultify ( "SELECT * FROM system.schema_keyspaces" , row ) . one ( ) ; try { return new KSMetaData ( result . getString ( "keyspace_name" ) , AbstractReplicationStrategy . getClass ( result . getString ( "strategy_class" ) ) , fromJsonMap ( result . getString ( "strategy_options" ) ) , result . getBoolean ( "durable_writes" ) , cfms , userTypes ) ; } catch ( ConfigurationException e ) { throw new RuntimeException ( e ) ; } }
Deserialize only Keyspace attributes without nested ColumnFamilies