config space initializer should keep name

This commit is contained in:
Jonathan Shook 2021-12-20 10:04:06 -06:00
parent 0564c30f9c
commit 8b1ac5b574
2 changed files with 4 additions and 2 deletions

View File

@ -22,7 +22,7 @@ public class Cqld4DriverAdapter extends BaseDriverAdapter<Cqld4Op, Cqld4Space> {
@Override
public Function<String, ? extends Cqld4Space> getSpaceInitializer(NBConfiguration cfg) {
return s -> new Cqld4Space(cfg);
return s -> new Cqld4Space(s,cfg);
}
@Override

View File

@ -24,10 +24,12 @@ import java.util.stream.Collectors;
public class Cqld4Space {
private final static Logger logger = LogManager.getLogger(Cqld4Space.class);
private final String space;
CqlSession session;
public Cqld4Space(NBConfiguration cfg) {
public Cqld4Space(String space,NBConfiguration cfg) {
this.space = space;
session = createSession(cfg);
}