public class CassandraDataSource extends Object implements org.ballerinalang.model.values.BValue
CassandraDataSource util class for Cassandra connector initialization.| Constructor and Description |
|---|
CassandraDataSource() |
| Modifier and Type | Method and Description |
|---|---|
org.ballerinalang.model.values.BValue |
copy(Map<org.ballerinalang.model.values.BValue,org.ballerinalang.model.values.BValue> map) |
com.datastax.driver.core.Cluster |
getCluster() |
com.datastax.driver.core.Session |
getSession() |
org.ballerinalang.model.types.BType |
getType() |
boolean |
init(String host,
int port,
String username,
String password,
org.ballerinalang.connector.api.Struct options)
Initializes the Cassandra cluster.
|
void |
stamp(org.ballerinalang.model.types.BType bType,
List<org.ballerinalang.bre.bvm.BVM.TypeValuePair> list) |
String |
stringValue() |
public com.datastax.driver.core.Cluster getCluster()
public com.datastax.driver.core.Session getSession()
public boolean init(String host, int port, String username, String password, org.ballerinalang.connector.api.Struct options)
host - Host(s) Cassandra instance(s) reside(s)port - Port for the Cassandra instance(s)username - Username if authentication is enabledpassword - Password if authentication is enabledoptions - BStruct containing available options for cluster connection initializationpublic String stringValue()
stringValue in interface org.ballerinalang.model.values.BValuepublic org.ballerinalang.model.types.BType getType()
getType in interface org.ballerinalang.model.values.BValuepublic void stamp(org.ballerinalang.model.types.BType bType,
List<org.ballerinalang.bre.bvm.BVM.TypeValuePair> list)
stamp in interface org.ballerinalang.model.values.BValuepublic org.ballerinalang.model.values.BValue copy(Map<org.ballerinalang.model.values.BValue,org.ballerinalang.model.values.BValue> map)
copy in interface org.ballerinalang.model.values.BValueCopyright © 2019. All rights reserved.