public class PgNosqlGraphConfigBuilder extends AbstractPgGraphConfigBuilder<PgNosqlGraphConfig>
Constructor and Description |
---|
PgNosqlGraphConfigBuilder()
Instantiates a new PgNosqlGraphConfigBuilder.
|
Modifier and Type | Method and Description |
---|---|
PgNosqlGraphConfigBuilder |
addEdgeProperty(String name, PropertyType type, Object defaultVal)
Adds an edge property to this builder
|
PgNosqlGraphConfigBuilder |
addVertexProperty(String name, PropertyType type, Object defaultVal)
Add a vertex property to this builder
|
PgNosqlGraphConfigBuilder |
setCreateEdgeIdIndex(boolean create)
Sets the create edge id index flag.
|
PgNosqlGraphConfigBuilder |
setCreateEdgeIdMapping(boolean create)
Sets the create edge id mapping.
|
PgNosqlGraphConfigBuilder |
setCreateVertexIdIndex(boolean create)
Sets the create vertex ID index flag.
|
PgNosqlGraphConfigBuilder |
setCreateVertexIdMapping(boolean create)
Sets the create vertex id mapping flag.
|
PgNosqlGraphConfigBuilder |
setErrorHandlingOnMissedPropKey(OnMismatch action)
Sets the error handling on missed prop key.
|
PgNosqlGraphConfigBuilder |
setErrorHandlingOnPropConversion(OnMismatch action)
Sets the error handling on prop conversion.
|
PgNosqlGraphConfigBuilder |
setErrorHandlingOnTypeMismatch(OnMismatch action)
Sets the error handling on type mismatch.
|
PgNosqlGraphConfigBuilder |
setHosts(List<String> hosts)
Sets the lists of hosts.
|
PgNosqlGraphConfigBuilder |
setLoadEdgeLabel(boolean b)
Sets whether to load edge label.
|
PgNosqlGraphConfigBuilder |
setMaxNumConnections(int c)
Sets the maximum number of connections.
|
PgNosqlGraphConfigBuilder |
setName(String name)
Sets the Property Graph (PG) name.
|
PgNosqlGraphConfigBuilder |
setPassword(String p)
Sets the password
|
PgNosqlGraphConfigBuilder |
setRefreshIntervalMs(int milliseconds)
Sets the refresh interval in milliseconds
|
PgNosqlGraphConfigBuilder |
setRequestTimeout(long timeout, TimeUnit unit)
Sets the request timeout.
|
PgNosqlGraphConfigBuilder |
setStoreName(String storeName)
Sets the store name.
|
PgNosqlGraphConfigBuilder |
setTrustStoreFile(String p)
Sets the Java truststore file
|
PgNosqlGraphConfigBuilder |
setUsername(String u)
Sets the username
|
addNodeProperty, build, setDateFormat
public PgNosqlGraphConfigBuilder()
public PgNosqlGraphConfigBuilder addEdgeProperty(String name, PropertyType type, Object defaultVal)
AbstractGraphConfigBuilder
addEdgeProperty
in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>
name
- the name of the edge propertytype
- the type of the edge propertydefaultVal
- the default value of the edge property (can be null
)public PgNosqlGraphConfigBuilder addVertexProperty(String name, PropertyType type, Object defaultVal)
AbstractGraphConfigBuilder
addVertexProperty
in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>
name
- the name of the vertex propertytype
- the type of the vertex propertydefaultVal
- the default value of the vertex property (can be null
)public PgNosqlGraphConfigBuilder setCreateEdgeIdIndex(boolean create)
AbstractGraphConfigBuilder
setCreateEdgeIdIndex
in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>
create
- if true
, a edge ID index is createdgraph configuration documentation for details about the effects and default of this flag
public PgNosqlGraphConfigBuilder setCreateEdgeIdMapping(boolean create)
AbstractGraphConfigBuilder
setCreateEdgeIdMapping
in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>
create
- if true
, a edge ID mapping is createdgraph configuration documentation for details about the effects and default of this flag
public PgNosqlGraphConfigBuilder setCreateVertexIdIndex(boolean create)
AbstractGraphConfigBuilder
setCreateVertexIdIndex
in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>
create
- if true
, a vertex ID index is createdgraph configuration documentation for details about the effects and default of this flag
public PgNosqlGraphConfigBuilder setCreateVertexIdMapping(boolean create)
AbstractGraphConfigBuilder
setCreateVertexIdMapping
in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>
create
- if true
, a vertex ID mapping is createdgraph configuration documentation for details about the effects and default of this flag
public PgNosqlGraphConfigBuilder setErrorHandlingOnMissedPropKey(OnMismatch action)
AbstractGraphConfigBuilder
setErrorHandlingOnMissedPropKey
in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>
action
- the actiongraph configuration documentation for details about the effects and default of this setting
public PgNosqlGraphConfigBuilder setErrorHandlingOnPropConversion(OnMismatch action)
AbstractGraphConfigBuilder
setErrorHandlingOnPropConversion
in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>
action
- the actiongraph configuration documentation for details about the effects and default of this setting
public PgNosqlGraphConfigBuilder setErrorHandlingOnTypeMismatch(OnMismatch action)
AbstractGraphConfigBuilder
setErrorHandlingOnTypeMismatch
in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>
action
- the actiongraph configuration documentation for details about the effects and default of this setting
public PgNosqlGraphConfigBuilder setHosts(List<String> hosts)
hosts
- the hostspublic PgNosqlGraphConfigBuilder setLoadEdgeLabel(boolean b)
AbstractPgGraphConfigBuilder
setLoadEdgeLabel
in class AbstractPgGraphConfigBuilder<PgNosqlGraphConfig>
b
- if true, loads the edge labelgraph configuration documentation for details about the effects and default of this setting
public PgNosqlGraphConfigBuilder setMaxNumConnections(int c)
AbstractPgGraphConfigBuilder
setMaxNumConnections
in class AbstractPgGraphConfigBuilder<PgNosqlGraphConfig>
c
- the number of connectionsgraph configuration documentation for details about the effects and default of this setting
public PgNosqlGraphConfigBuilder setName(String name)
AbstractPgGraphConfigBuilder
setName
in class AbstractPgGraphConfigBuilder<PgNosqlGraphConfig>
name
- the namegraph configuration documentation for details about the effects of this setting
public PgNosqlGraphConfigBuilder setPassword(String p)
p
- the passwordpublic PgNosqlGraphConfigBuilder setRefreshIntervalMs(int milliseconds)
AbstractGraphConfigBuilder
setRefreshIntervalMs
in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>
milliseconds
- the interval in millisecondsgraph configuration documentation for details about the effects and default of this flag
public PgNosqlGraphConfigBuilder setRequestTimeout(long timeout, TimeUnit unit)
timeout
- the timeoutunit
- the time unitpublic PgNosqlGraphConfigBuilder setStoreName(String storeName)
storeName
- the store namepublic PgNosqlGraphConfigBuilder setTrustStoreFile(String p)
p
- the name and path to a Java truststore filepublic PgNosqlGraphConfigBuilder setUsername(String u)
u
- the usernameCopyright © 2015. All rights reserved.