@Beta public class ExternalDataStoreConfig extends Object implements IdentifiedDataSerializable, NamedConfig
BatchSource and Sink in Jet JDBC connector.MapStore and MapLoader | Constructor and Description |
|---|
ExternalDataStoreConfig() |
ExternalDataStoreConfig(ExternalDataStoreConfig config) |
ExternalDataStoreConfig(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getClassId()
Returns type identifier for this class.
|
String |
getClassName()
Returns the name of the
ExternalDataStoreFactory implementation class |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
String |
getName()
Returns the name of this external data store.
|
Properties |
getProperties()
Returns all the properties of a datastore
|
String |
getProperty(String key)
Returns a single property of a datastore
|
int |
hashCode() |
boolean |
isShared()
true if an instance of the external data store will be reused. |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
ExternalDataStoreConfig |
setClassName(String className)
Sets the name for the
ExternalDataStoreFactory implementation class |
ExternalDataStoreConfig |
setName(String name)
Sets the name of this external data store, the name must be unique.
|
ExternalDataStoreConfig |
setProperties(Properties properties)
Sets the properties of a datastore.
|
ExternalDataStoreConfig |
setProperty(String key,
String value)
Sets a single property.
|
ExternalDataStoreConfig |
setShared(boolean shared)
true if an instance of the external data store will be reused. |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public ExternalDataStoreConfig()
public ExternalDataStoreConfig(ExternalDataStoreConfig config)
public ExternalDataStoreConfig(String name)
public ExternalDataStoreConfig setName(String name)
setName in interface NamedConfigpublic String getName()
getName in interface NamedConfigpublic String getClassName()
ExternalDataStoreFactory implementation classExternalDataStoreFactory implementation classpublic ExternalDataStoreConfig setClassName(@Nonnull String className)
ExternalDataStoreFactory implementation classclassName - the name to set for the ExternalDataStoreFactory implementation classpublic boolean isShared()
true if an instance of the external data store will be reused. false when on each usage
the data store instance should be created. The default is truepublic ExternalDataStoreConfig setShared(boolean shared)
true if an instance of the external data store will be reused. false when on each usage
the data store instance should be createdshared - if the data store instance should be reusedpublic Properties getProperties()
@Nullable public String getProperty(String key)
key - the property key of a datastorepublic ExternalDataStoreConfig setProperty(String key, String value)
setProperties(Properties)key - the property keyvalue - the property valuepublic ExternalDataStoreConfig setProperties(Properties properties)
ExternalDataStoreFactory
for supported valuesproperties - the properties to be setpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializableCopyright © 2022 Hazelcast, Inc.. All rights reserved.