T
- which table configuration object this builder will producepublic abstract class AbstractTableConfigBuilder<T extends AbstractTableConfigBuilder<T,GTC>,GTC extends GraphTableConfig>
extends java.lang.Object
implements oracle.pgx.config.internal.ConvertibleToTableConfigBuilder
Constructor and Description |
---|
AbstractTableConfigBuilder()
default constructor
|
Modifier and Type | Method and Description |
---|---|
T |
addAttribute(java.lang.String key,
java.lang.String value)
Adds a specific additional attribute to this config
|
T |
addProperty(java.lang.String name,
PropertyType type)
Convenience method for
addProperty(String, PropertyType, Object) . |
T |
addProperty(java.lang.String name,
PropertyType type,
java.lang.Object defaultVal)
Add a property to this builder
|
GTC |
build()
Build the table configuration object
|
T |
clearProperties()
Removes all properties from this builder
|
T |
copyBaseFrom(GraphTableConfig tableConfig)
Sets this builder with the values of the given table config, this only includes base settings (format,
temporal formats, vertex properties, edge properties, loading configuration and error handling configuration).
|
T |
copyFrom(GTC tableConfig)
Sets this builder with all the values of the given table config.
|
T |
createKeyMapping(boolean flag)
Sets the flag to create the entity key mapping.
|
T |
loadLabels(boolean flag)
Sets the entity label loading.
|
T |
removeProperty(java.lang.String name)
Removes a property from this builder
|
T |
setDateFormat(java.lang.String dateFormat)
Sets the date format used for loading and storing the table.
|
T |
setDestinationVertexTable(java.lang.String name)
Sets the name of the destination vertex table
|
T |
setErrorHandlingOnMissedPropKey(OnMismatch action)
Sets the error handling on missed prop key.
|
T |
setErrorHandlingOnMissingVertex(OnMissingVertex action)
Sets the error handling on a missing vertex.
|
T |
setErrorHandlingOnPropConversion(OnMismatch action)
Sets the error handling on prop conversion.
|
T |
setErrorHandlingOnTypeMismatch(OnMismatch action)
Sets the error handling on type mismatch.
|
T |
setIdType(IdType idType)
Sets the type of vertex IDs
|
T |
setLocalDateFormat(java.util.List<java.lang.String> localDateFormatList)
Sets the list of local_date formats used for loading and storing the table.
|
T |
setName(java.lang.String name)
Sets the name of the table
|
T |
setSourceVertexTable(java.lang.String name)
Sets the name of the source vertex table
|
T |
setStrictMode(boolean strictMode)
Sets the strict mode.
|
T |
setTableLabel(java.lang.String tableLabel)
Sets the date format used for loading and storing the table.
|
T |
setTimeFormat(java.util.List<java.lang.String> timeFormatList)
Sets the list of time formats used for loading and storing the table.
|
T |
setTimestampFormat(java.util.List<java.lang.String> timestampFormatList)
Sets the list timestamp formats used for loading and storing the table.
|
T |
setTimestampWithTimezoneFormat(java.util.List<java.lang.String> timestampWithTimezoneFormatList)
Sets the list of timestamp with timezone formats used for loading and storing the table.
|
T |
setTimeWithTimezoneFormat(java.util.List<java.lang.String> timeWithTimezoneFormatList)
Sets the list of time with timezone formats used for loading and storing the table.
|
public AbstractTableConfigBuilder()
public T addAttribute(java.lang.String key, java.lang.String value)
key
- the attribute's keyvalue
- the attribute's valuepublic T addProperty(java.lang.String name, PropertyType type)
addProperty(String, PropertyType, Object)
.name
- the name of the propertytype
- the type of the propertypublic T addProperty(java.lang.String name, PropertyType type, java.lang.Object defaultVal)
name
- the name of the propertytype
- the type of the propertydefaultVal
- the default value of the property (can be null
)public GTC build()
public T clearProperties()
public final T copyBaseFrom(GraphTableConfig tableConfig)
tableConfig
- the table configuration from which to copy the valuespublic T copyFrom(GTC tableConfig)
tableConfig
- the table configuration from which to copy the valuespublic T createKeyMapping(boolean flag)
flag
- if true
, an entity key mapping is createdpublic T loadLabels(boolean flag)
flag
- sets to load the edge label if true
public T removeProperty(java.lang.String name)
name
- the name of the propertypublic T setDateFormat(java.lang.String dateFormat)
dateFormat
- the date formatpublic T setDestinationVertexTable(java.lang.String name)
name
- the name of the destination vertex tablepublic T setErrorHandlingOnMissedPropKey(OnMismatch action)
action
- the actionpublic T setErrorHandlingOnMissingVertex(OnMissingVertex action)
action
- the actionpublic T setErrorHandlingOnPropConversion(OnMismatch action)
action
- the actionpublic T setErrorHandlingOnTypeMismatch(OnMismatch action)
action
- the actionpublic T setIdType(IdType idType)
idType
- the type of vertex IDspublic T setLocalDateFormat(java.util.List<java.lang.String> localDateFormatList)
localDateFormatList
- the list of date formatspublic T setName(java.lang.String name)
name
- the name of the tablepublic T setSourceVertexTable(java.lang.String name)
name
- the name of the source vertex tablepublic T setStrictMode(boolean strictMode)
strictMode
- if true
, strict mode is enabled, otherwise strict mode is disabledpublic T setTableLabel(java.lang.String tableLabel)
dateFormat
- the date formatpublic T setTimeFormat(java.util.List<java.lang.String> timeFormatList)
timeFormatList
- the list of date formatspublic T setTimestampFormat(java.util.List<java.lang.String> timestampFormatList)
timestampFormatList
- the list of date formatspublic T setTimestampWithTimezoneFormat(java.util.List<java.lang.String> timestampWithTimezoneFormatList)
timestampWithTimezoneFormatList
- the list of date formatspublic T setTimeWithTimezoneFormat(java.util.List<java.lang.String> timeWithTimezoneFormatList)
timeWithTimezoneFormatList
- the list of date formatsCopyright © 2016, 2019, Oracle and/or its affiliates. All Rights Reserved.