public class CqlFamilyFactory
extends java.lang.Object
implements com.netflix.astyanax.AstyanaxTypeFactory<com.datastax.driver.core.Cluster>
AstyanaxTypeFactory that acts as the bridge between the AstyanaxContext setup and all the java driver setup.
The main link is the ConnectionPoolProxy class which gives us access to the ConnectionPoolConfiguration object.
The class expects a JavaDriverConnectionPoolConfigurationImpl based impl which encapsulates all the config that is required
by java driver.
Thus this bridge is built with the intention to let the outside caller to directly use the Configuration object and inject it
using AstyanaxContext.
Restating, the simple flow that enables the bridge is
1. Construct the Configuration object with all the desired options for configuring the java driver.
2. Construct the JavaDriverConnectionPoolConfigurationImpl object and pass the java driver configuration object to it.
3. Set the ConnectionPoolConfiguration created in step 2. on the AstyanaxContext builder object when creating the Astyanax Keyspace
See AstyanaxContext for more details on how to do this.| Constructor and Description |
|---|
CqlFamilyFactory() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
batchColumnUpdates() |
com.netflix.astyanax.Cluster |
createCluster(com.netflix.astyanax.connectionpool.ConnectionPool<com.datastax.driver.core.Cluster> cp,
com.netflix.astyanax.AstyanaxConfiguration asConfig,
com.netflix.astyanax.KeyspaceTracerFactory tracerFactory) |
com.netflix.astyanax.connectionpool.ConnectionFactory<com.datastax.driver.core.Cluster> |
createConnectionFactory(com.netflix.astyanax.AstyanaxConfiguration asConfig,
com.netflix.astyanax.connectionpool.ConnectionPoolConfiguration cfConfig,
com.netflix.astyanax.KeyspaceTracerFactory tracerFactory,
com.netflix.astyanax.connectionpool.ConnectionPoolMonitor monitor) |
com.netflix.astyanax.Keyspace |
createKeyspace(java.lang.String ksName,
com.netflix.astyanax.connectionpool.ConnectionPool<com.datastax.driver.core.Cluster> cp,
com.netflix.astyanax.AstyanaxConfiguration asConfig,
com.netflix.astyanax.KeyspaceTracerFactory tracerFactory) |
CqlFamilyFactory |
enableColumnBatchUpdates(boolean condition) |
static CqlFamilyFactory |
getInstance() |
public static CqlFamilyFactory getInstance()
public com.netflix.astyanax.Keyspace createKeyspace(java.lang.String ksName,
com.netflix.astyanax.connectionpool.ConnectionPool<com.datastax.driver.core.Cluster> cp,
com.netflix.astyanax.AstyanaxConfiguration asConfig,
com.netflix.astyanax.KeyspaceTracerFactory tracerFactory)
createKeyspace in interface com.netflix.astyanax.AstyanaxTypeFactory<com.datastax.driver.core.Cluster>public com.netflix.astyanax.Cluster createCluster(com.netflix.astyanax.connectionpool.ConnectionPool<com.datastax.driver.core.Cluster> cp,
com.netflix.astyanax.AstyanaxConfiguration asConfig,
com.netflix.astyanax.KeyspaceTracerFactory tracerFactory)
createCluster in interface com.netflix.astyanax.AstyanaxTypeFactory<com.datastax.driver.core.Cluster>public com.netflix.astyanax.connectionpool.ConnectionFactory<com.datastax.driver.core.Cluster> createConnectionFactory(com.netflix.astyanax.AstyanaxConfiguration asConfig,
com.netflix.astyanax.connectionpool.ConnectionPoolConfiguration cfConfig,
com.netflix.astyanax.KeyspaceTracerFactory tracerFactory,
com.netflix.astyanax.connectionpool.ConnectionPoolMonitor monitor)
createConnectionFactory in interface com.netflix.astyanax.AstyanaxTypeFactory<com.datastax.driver.core.Cluster>public CqlFamilyFactory enableColumnBatchUpdates(boolean condition)
public static boolean batchColumnUpdates()