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, setDateFormatpublic PgNosqlGraphConfigBuilder()
public PgNosqlGraphConfigBuilder addEdgeProperty(String name, PropertyType type, Object defaultVal)
AbstractGraphConfigBuilderaddEdgeProperty 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)
AbstractGraphConfigBuilderaddVertexProperty 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)
AbstractGraphConfigBuildersetCreateEdgeIdIndex in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>create - if true, a edge ID index is createdgraph configuration documentation for details about the effects and default of this flagpublic PgNosqlGraphConfigBuilder setCreateEdgeIdMapping(boolean create)
AbstractGraphConfigBuildersetCreateEdgeIdMapping in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>create - if true, a edge ID mapping is createdgraph configuration documentation for details about the effects and default of this flagpublic PgNosqlGraphConfigBuilder setCreateVertexIdIndex(boolean create)
AbstractGraphConfigBuildersetCreateVertexIdIndex in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>create - if true, a vertex ID index is createdgraph configuration documentation for details about the effects and default of this flagpublic PgNosqlGraphConfigBuilder setCreateVertexIdMapping(boolean create)
AbstractGraphConfigBuildersetCreateVertexIdMapping in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>create - if true, a vertex ID mapping is createdgraph configuration documentation for details about the effects and default of this flagpublic PgNosqlGraphConfigBuilder setErrorHandlingOnMissedPropKey(OnMismatch action)
AbstractGraphConfigBuildersetErrorHandlingOnMissedPropKey in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>action - the actiongraph configuration documentation for details about the effects and default of this settingpublic PgNosqlGraphConfigBuilder setErrorHandlingOnPropConversion(OnMismatch action)
AbstractGraphConfigBuildersetErrorHandlingOnPropConversion in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>action - the actiongraph configuration documentation for details about the effects and default of this settingpublic PgNosqlGraphConfigBuilder setErrorHandlingOnTypeMismatch(OnMismatch action)
AbstractGraphConfigBuildersetErrorHandlingOnTypeMismatch in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>action - the actiongraph configuration documentation for details about the effects and default of this settingpublic PgNosqlGraphConfigBuilder setHosts(List<String> hosts)
hosts - the hostspublic PgNosqlGraphConfigBuilder setLoadEdgeLabel(boolean b)
AbstractPgGraphConfigBuildersetLoadEdgeLabel in class AbstractPgGraphConfigBuilder<PgNosqlGraphConfig>b - if true, loads the edge labelgraph configuration documentation for details about the effects and default of this settingpublic PgNosqlGraphConfigBuilder setMaxNumConnections(int c)
AbstractPgGraphConfigBuildersetMaxNumConnections in class AbstractPgGraphConfigBuilder<PgNosqlGraphConfig>c - the number of connectionsgraph configuration documentation for details about the effects and default of this settingpublic PgNosqlGraphConfigBuilder setName(String name)
AbstractPgGraphConfigBuildersetName in class AbstractPgGraphConfigBuilder<PgNosqlGraphConfig>name - the namegraph configuration documentation for details about the effects of this settingpublic PgNosqlGraphConfigBuilder setPassword(String p)
p - the passwordpublic PgNosqlGraphConfigBuilder setRefreshIntervalMs(int milliseconds)
AbstractGraphConfigBuildersetRefreshIntervalMs in class AbstractGraphConfigBuilder<PgNosqlGraphConfig>milliseconds - the interval in millisecondsgraph configuration documentation for details about the effects and default of this flagpublic 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.