public class DataSetSpec
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_INCREMENTAL |
static java.lang.String |
PROP_REMOTE |
Constructor and Description |
---|
DataSetSpec(java.lang.String tableName,
java.lang.String connectorName,
ConnectorType type,
java.util.Collection<Property> properties)
Creates a new
DataSetSpec instance. |
DataSetSpec(java.lang.String tableName,
java.lang.String connectorName,
ConnectorType type,
Property... properties)
Creates a new
DataSetSpec instance. |
DataSetSpec(java.lang.String tableName,
java.lang.String connectorName,
java.lang.String displaySource,
ConnectorType type,
java.util.Collection<Property> properties)
Creates a new
DataSetSpec instance. |
DataSetSpec(java.lang.String tableName,
java.lang.String connectorName,
java.lang.String displaySource,
ConnectorType type,
Property... properties)
Creates a new
DataSetSpec instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanProperty(java.lang.String name,
boolean defaultValue)
Returns the value of a specific property as a boolean value.
|
java.lang.String |
getConnectorName()
Returns the name of the connector instance that this data set uses.
|
java.lang.String |
getDisplaySource()
Returns data set display source, which is the text displayed under the data set icon when editing a schema table.
|
double |
getDoubleProperty(java.lang.String name,
double defaultValue)
Returns the value of a specific property as a double value.
|
int |
getIntProperty(java.lang.String name,
int defaultValue)
Returns the value of a specific property as an int value.
|
long |
getLongProperty(java.lang.String name,
long defaultValue)
Returns the value of a specific property as a long value.
|
java.util.List<Property> |
getProperties()
Returns all the property objects of this spec.
|
java.lang.String |
getProperty(java.lang.String name)
Returns the value of a specific property.
|
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Returns the value of a specific property.
|
java.util.List<java.lang.String> |
getPropertyNames()
Returns all the property names of this spec.
|
java.lang.String |
getTableName()
Returns the name of the schema table that the data set belongs to.
|
ConnectorType |
getType()
Returns the connector type of this data set.
|
int |
hashCode() |
boolean |
isIncremental()
Returns true if
incremental property is set to true in this data set, false otherwise. |
boolean |
isRemote()
Returns true if
remote property is set to true in this data set, false otherwise. |
java.lang.String |
toString() |
public static final java.lang.String PROP_INCREMENTAL
public static final java.lang.String PROP_REMOTE
public DataSetSpec(java.lang.String tableName, java.lang.String connectorName, ConnectorType type, Property... properties)
DataSetSpec
instance.tableName
- connectorName
- type
- properties
- public DataSetSpec(java.lang.String tableName, java.lang.String connectorName, ConnectorType type, java.util.Collection<Property> properties)
DataSetSpec
instance.tableName
- connectorName
- type
- properties
- public DataSetSpec(java.lang.String tableName, java.lang.String connectorName, java.lang.String displaySource, ConnectorType type, Property... properties)
DataSetSpec
instance.tableName
- connectorName
- displaySource
- type
- properties
- public DataSetSpec(java.lang.String tableName, java.lang.String connectorName, java.lang.String displaySource, ConnectorType type, java.util.Collection<Property> properties)
DataSetSpec
instance.tableName
- connectorName
- displaySource
- type
- properties
- public java.lang.String getTableName()
public java.lang.String getConnectorName()
public java.lang.String getDisplaySource()
public ConnectorType getType()
public boolean isIncremental()
incremental
property is set to true in this data set, false otherwise.public boolean isRemote()
remote
property is set to true in this data set, false otherwise.public java.lang.String toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.List<Property> getProperties()
Property
objectspublic java.util.List<java.lang.String> getPropertyNames()
public java.lang.String getProperty(java.lang.String name)
name
- Property namepublic java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
name
- Property namedefaultValue
- Property default valuedefaultValue
if property value is not found or emptypublic boolean getBooleanProperty(java.lang.String name, boolean defaultValue)
"true"
or "false"
), the specified default value is returned.name
- Property namedefaultValue
- Property default valuedefaultValue
if property value is not found or empty or not a valid booleanpublic int getIntProperty(java.lang.String name, int defaultValue)
name
- Property namedefaultValue
- Property default valuedefaultValue
if property value is not found or empty or not a valid integerpublic long getLongProperty(java.lang.String name, long defaultValue)
name
- Property namedefaultValue
- Property default valuedefaultValue
if property value is not found or empty or not a valid longpublic double getDoubleProperty(java.lang.String name, double defaultValue)
name
- Property namedefaultValue
- Property default valuedefaultValue
if property value is not found or empty or not a valid double