Package com.hazelcast.dataconnection
Class DataConnectionResource
- java.lang.Object
-
- com.hazelcast.dataconnection.DataConnectionResource
-
public class DataConnectionResource extends java.lang.Object
DataConnection Resource is an object for which a mapping can be created.For example, JDBC returns the list of tables and views, Kafka returns the list of topics, and for a filesystem the list of files etc.
- Since:
- 5.3
-
-
Constructor Summary
Constructors Constructor Description DataConnectionResource(java.lang.String type, java.lang.String name)
Create a Resource with given type and nameDataConnectionResource(java.lang.String type, java.lang.String... name)
Create a Resource with given type and name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String[]
name()
Name of the resource, e.g.java.lang.String
toString()
java.lang.String
type()
Type of the resource, e.g.
-
-
-
Constructor Detail
-
DataConnectionResource
public DataConnectionResource(@Nonnull java.lang.String type, @Nonnull java.lang.String name)
Create a Resource with given type and name
-
DataConnectionResource
public DataConnectionResource(@Nonnull java.lang.String type, @Nonnull java.lang.String... name)
Create a Resource with given type and name
-
-
Method Detail
-
type
@Nonnull public java.lang.String type()
Type of the resource, e.g. TABLE for JDBC connector
-
name
@Nonnull public java.lang.String[] name()
Name of the resource, e.g. name of the JDBC table, including any namespace prefix such as schema.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-