@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 NamedConfig
public String getName()
getName
in interface NamedConfig
public 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 true
public 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
DataSerializable
writeData
in interface DataSerializable
out
- 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
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
Copyright © 2023 Hazelcast, Inc.. All rights reserved.