code: public List<String> getKeyspaces() {
          ArrayList<String> result = new ArrayList<String>();
          this.metadata = this.cluster.getMetadata();
          if (!(metadata.getKeyspaces().isEmpty())) {
              for (KeyspaceMetadata k : this.metadata.getKeyspaces()) {
                  result.add(k.getName());
              }
          }
          return result;
      }
docs: Get a list of the existing keyspaces in Cassandra.
  
  @return {@code List<String>}