in cassandra-analytics-core/src/main/java/org/apache/cassandra/spark/bulkwriter/CassandraClusterInfo.java [262:286]
public String getKeyspaceSchema(boolean cached)
{
String currentKeyspaceSchema = keyspaceSchema;
if (cached && currentKeyspaceSchema != null)
{
return currentKeyspaceSchema;
}
synchronized (this)
{
if (!cached || keyspaceSchema == null)
{
try
{
keyspaceSchema = getCurrentKeyspaceSchema();
}
catch (Exception exception)
{
throw new RuntimeException("Unable to initialize schema information for keyspace " + conf.keyspace,
exception);
}
}
return keyspaceSchema;
}
}