Package oracle.pgx.config
Class EsEntityProviderConfigBuilder
- java.lang.Object
-
- oracle.pgx.config.AbstractEntityProviderConfigBuilder<EsEntityProviderConfigBuilder,EsEntityProviderConfig>
-
- oracle.pgx.config.EsEntityProviderConfigBuilder
-
- All Implemented Interfaces:
oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder
public final class EsEntityProviderConfigBuilder extends AbstractEntityProviderConfigBuilder<EsEntityProviderConfigBuilder,EsEntityProviderConfig>
A table configuration builder for es-based table configurations.
-
-
Constructor Summary
Constructors Constructor Description EsEntityProviderConfigBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EsEntityProviderConfigBuilder
copyFrom(EsEntityProviderConfig providerConfig)
Sets this builder with all the values of the given provider config.EsEntityProviderConfigBuilder
setDestinationField(java.lang.String toVkey)
Sets the name of the Field holding the keys of the destination vertices.EsEntityProviderConfigBuilder
setEsIndexName(java.lang.String esIndexName)
Sets the table name in the database.EsEntityProviderConfigBuilder
setEsQuery(java.lang.String esQuery)
Sets the Elasticsearch query to be executed upon loadingEsEntityProviderConfigBuilder
setEsUrl(java.lang.String url)
Sets the Es url.EsEntityProviderConfigBuilder
setKeyField(java.lang.String nKey)
Sets the name for the Field holding the keys.EsEntityProviderConfigBuilder
setMaxBatchSize(int maxPreFetchedRows)
Sets the maximum number of prefetched rows.EsEntityProviderConfigBuilder
setProxyUrl(java.lang.String proxyUrl)
Sets the proxy url.EsEntityProviderConfigBuilder
setScrollTime(java.lang.String scrollTime)
Sets the scroll time.EsEntityProviderConfigBuilder
setSourceField(java.lang.String fromVkey)
Sets the name of the Field holding the keys of the source vertices.EsEntityProviderConfigBuilder
setUsername(java.lang.String username)
Sets the username.EsEntityProviderConfigBuilder
toEntityProviderConfigBuilder()
-
Methods inherited from class oracle.pgx.config.AbstractEntityProviderConfigBuilder
addAttribute, addProperty, addProperty, addProperty, addStringProperty, addStringProperty, addVectorProperty, addVectorProperty, addVectorProperty, addVectorProperty, build, clearProperties, copyBaseFrom, createKeyMapping, enableEdgeIdDuplicateCheck, enableVertexIdDuplicateCheck, redactPassword, removeProperty, setDestinationVertexKeyType, setDestinationVertexProvider, setErrorHandlingOnDuplicateEntityId, setErrorHandlingOnMissedPropKey, setErrorHandlingOnMissingVertex, setErrorHandlingOnParsingIssue, setErrorHandlingOnPropConversion, setErrorHandlingOnTypeMismatch, setErrorHandlingOnVectorLengthMismatch, setHasKeys, setKeyColumns, setKeystoreAlias, setKeyType, setLabel, setLocalDateFormat, setName, setPassword, setSourceVertexKeyType, setSourceVertexProvider, setStrictMode, setTimeFormat, setTimestampFormat, setTimestampWithTimezoneFormat, setTimeWithTimezoneFormat
-
-
-
-
Method Detail
-
toEntityProviderConfigBuilder
public EsEntityProviderConfigBuilder toEntityProviderConfigBuilder()
-
copyFrom
public EsEntityProviderConfigBuilder copyFrom(EsEntityProviderConfig providerConfig)
Description copied from class:AbstractEntityProviderConfigBuilder
Sets this builder with all the values of the given provider config. If a format was already specified it will remain unchanged, however any other values copied from the given provider config will overwrite the corresponding values of this builder.- Overrides:
copyFrom
in classAbstractEntityProviderConfigBuilder<EsEntityProviderConfigBuilder,EsEntityProviderConfig>
- Parameters:
providerConfig
- the provider configuration from which to copy the values- Returns:
- this builder
-
setEsUrl
public EsEntityProviderConfigBuilder setEsUrl(java.lang.String url)
Sets the Es url.- Parameters:
url
- the url- Returns:
- this builder
-
setProxyUrl
public EsEntityProviderConfigBuilder setProxyUrl(java.lang.String proxyUrl)
Sets the proxy url.- Parameters:
proxyUrl
- the proxyUrl- Returns:
- this builder
-
setScrollTime
public EsEntityProviderConfigBuilder setScrollTime(java.lang.String scrollTime)
Sets the scroll time.- Parameters:
scrollTime
- the scrollTime- Returns:
- this builder
-
setUsername
public EsEntityProviderConfigBuilder setUsername(java.lang.String username)
Sets the username.- Parameters:
username
- the username- Returns:
- this builder
-
setEsIndexName
public EsEntityProviderConfigBuilder setEsIndexName(java.lang.String esIndexName)
Sets the table name in the database.- Parameters:
esIndexName
- the nodes table name- Returns:
- this builder
-
setEsQuery
public EsEntityProviderConfigBuilder setEsQuery(java.lang.String esQuery)
Sets the Elasticsearch query to be executed upon loading- Parameters:
esQuery
- the Elasticsearch query to be executed- Returns:
- this builder
-
setKeyField
public EsEntityProviderConfigBuilder setKeyField(java.lang.String nKey)
Sets the name for the Field holding the keys.- Parameters:
nKey
- the name of the key Field- Returns:
- this builder
-
setSourceField
public EsEntityProviderConfigBuilder setSourceField(java.lang.String fromVkey)
Sets the name of the Field holding the keys of the source vertices.- Parameters:
fromVkey
- the Field name- Returns:
- this builder
-
setDestinationField
public EsEntityProviderConfigBuilder setDestinationField(java.lang.String toVkey)
Sets the name of the Field holding the keys of the destination vertices.- Parameters:
toVkey
- the Field id- Returns:
- this builder
-
setMaxBatchSize
public EsEntityProviderConfigBuilder setMaxBatchSize(int maxPreFetchedRows)
Sets the maximum number of prefetched rows.- Parameters:
maxPreFetchedRows
- the maximum number of prefetched rows- Returns:
- this builder
-
-