public static KsDef getKeySpaceDef ( String keyspaceName , List < KsDef > keyspaces ) { keyspaceName = keyspaceName . toUpperCase ( ) ; for ( KsDef ksDef : keyspaces ) { if ( ksDef . name . toUpperCase ( ) . equals ( keyspaceName ) ) return ksDef ; } return null ; }
Parse the statement from cli and return KsDef