String connectorId = "cassandra-test";
CassandraConnectorFactory connectorFactory = new CassandraConnectorFactory(
connectorId,
ImmutableMap.<String, String>of("node.environment", "test"));
Connector connector = connectorFactory.create(connectorId, ImmutableMap.<String, String>of(
"cassandra.contact-points", "localhost",
"cassandra.native-protocol-port", "9142"));
metadata = connector.getMetadata();
assertInstanceOf(metadata, CassandraMetadata.class);
splitManager = connector.getSplitManager();
assertInstanceOf(splitManager, CassandraSplitManager.class);
recordSetProvider = connector.getRecordSetProvider();
assertInstanceOf(recordSetProvider, CassandraRecordSetProvider.class);
ConnectorHandleResolver handleResolver = connector.getHandleResolver();
assertInstanceOf(handleResolver, CassandraHandleResolver.class);
database = "presto_database";
table = new SchemaTableName(database, "presto_test");
tableUnpartitioned = new SchemaTableName(database, "presto_test_unpartitioned");