public class PgHbaseGraphConfigBuilder extends AbstractPgGraphConfigBuilder<PgHbaseGraphConfig>
Constructor and Description |
---|
PgHbaseGraphConfigBuilder()
Instantiates a new pg hbase graph config builder.
|
Modifier and Type | Method and Description |
---|---|
PgHbaseGraphConfigBuilder |
addEdgeProperty(String name, PropertyType type, Object defaultVal)
Adds an edge property to this builder
|
PgHbaseGraphConfigBuilder |
addVertexProperty(String name, PropertyType type, Object defaultVal)
Add a vertex property to this builder
|
PgHbaseGraphConfigBuilder |
setBlockCacheSize(int bcs)
Sets the block cache size
|
PgHbaseGraphConfigBuilder |
setCompression(String compression)
Sets the compression.
|
PgHbaseGraphConfigBuilder |
setCreateEdgeIdIndex(boolean create)
Sets the create edge id index flag.
|
PgHbaseGraphConfigBuilder |
setCreateEdgeIdMapping(boolean create)
Sets the create edge id mapping.
|
PgHbaseGraphConfigBuilder |
setCreateVertexIdIndex(boolean create)
Sets the create vertex ID index flag.
|
PgHbaseGraphConfigBuilder |
setCreateVertexIdMapping(boolean create)
Sets the create vertex id mapping flag.
|
PgHbaseGraphConfigBuilder |
setErrorHandlingOnMissedPropKey(OnMismatch action)
Sets the error handling on missed prop key.
|
PgHbaseGraphConfigBuilder |
setErrorHandlingOnPropConversion(OnMismatch action)
Sets the error handling on prop conversion.
|
PgHbaseGraphConfigBuilder |
setErrorHandlingOnTypeMismatch(OnMismatch action)
Sets the error handling on type mismatch.
|
PgHbaseGraphConfigBuilder |
setHadoopSecAuth(String s)
Sets the Hadoop security authentication
|
PgHbaseGraphConfigBuilder |
setHbaseSecAuth(String s)
Sets the HBase security authentication
|
PgHbaseGraphConfigBuilder |
setHmKerberosPrincipal(String s)
Sets the HM Kerberos Principal
|
PgHbaseGraphConfigBuilder |
setInitialEdgeNumRegions(int inr)
Sets the initial edge number of regions.
|
PgHbaseGraphConfigBuilder |
setInitialVertexNumRegions(int inr)
Sets the initial vertex number of regions.
|
PgHbaseGraphConfigBuilder |
setKeytab(String s)
Sets the path to the keytab file
|
PgHbaseGraphConfigBuilder |
setLoadEdgeLabel(boolean b)
Sets whether to load edge label.
|
PgHbaseGraphConfigBuilder |
setMaxNumConnections(int c)
Sets the maximum number of connections.
|
PgHbaseGraphConfigBuilder |
setName(String name)
Sets the Property Graph (PG) name.
|
PgHbaseGraphConfigBuilder |
setRefreshIntervalMs(int milliseconds)
Sets the refresh interval in milliseconds
|
PgHbaseGraphConfigBuilder |
setRsKerberosPrincipal(String s)
Sets the RS Kerberos Principal
|
PgHbaseGraphConfigBuilder |
setSplitsPerRegion(int spr)
Sets the splits per region.
|
PgHbaseGraphConfigBuilder |
setUserPrincipal(String s)
Sets the User Principal
|
PgHbaseGraphConfigBuilder |
setZkClientPort(int port)
Sets the ZooKeeper client port.
|
PgHbaseGraphConfigBuilder |
setZkQuorum(String quorum)
Sets the ZooKeeper quorum.
|
PgHbaseGraphConfigBuilder |
setZkSessionTimeout(int to)
Sets the ZooKeeper session timeout.
|
addNodeProperty, build, setDateFormat
public PgHbaseGraphConfigBuilder()
public PgHbaseGraphConfigBuilder addEdgeProperty(String name, PropertyType type, Object defaultVal)
AbstractGraphConfigBuilder
addEdgeProperty
in class AbstractGraphConfigBuilder<PgHbaseGraphConfig>
name
- the name of the edge propertytype
- the type of the edge propertydefaultVal
- the default value of the edge property (can be null
)public PgHbaseGraphConfigBuilder addVertexProperty(String name, PropertyType type, Object defaultVal)
AbstractGraphConfigBuilder
addVertexProperty
in class AbstractGraphConfigBuilder<PgHbaseGraphConfig>
name
- the name of the vertex propertytype
- the type of the vertex propertydefaultVal
- the default value of the vertex property (can be null
)public PgHbaseGraphConfigBuilder setBlockCacheSize(int bcs)
bcs
- the block cache sizepublic PgHbaseGraphConfigBuilder setCompression(String compression)
compression
- the compressionpublic PgHbaseGraphConfigBuilder setCreateEdgeIdIndex(boolean create)
AbstractGraphConfigBuilder
setCreateEdgeIdIndex
in class AbstractGraphConfigBuilder<PgHbaseGraphConfig>
create
- if true
, a edge ID index is createdgraph configuration documentation for details about the effects and default of this flag
public PgHbaseGraphConfigBuilder setCreateEdgeIdMapping(boolean create)
AbstractGraphConfigBuilder
setCreateEdgeIdMapping
in class AbstractGraphConfigBuilder<PgHbaseGraphConfig>
create
- if true
, a edge ID mapping is createdgraph configuration documentation for details about the effects and default of this flag
public PgHbaseGraphConfigBuilder setCreateVertexIdIndex(boolean create)
AbstractGraphConfigBuilder
setCreateVertexIdIndex
in class AbstractGraphConfigBuilder<PgHbaseGraphConfig>
create
- if true
, a vertex ID index is createdgraph configuration documentation for details about the effects and default of this flag
public PgHbaseGraphConfigBuilder setCreateVertexIdMapping(boolean create)
AbstractGraphConfigBuilder
setCreateVertexIdMapping
in class AbstractGraphConfigBuilder<PgHbaseGraphConfig>
create
- if true
, a vertex ID mapping is createdgraph configuration documentation for details about the effects and default of this flag
public PgHbaseGraphConfigBuilder setErrorHandlingOnMissedPropKey(OnMismatch action)
AbstractGraphConfigBuilder
setErrorHandlingOnMissedPropKey
in class AbstractGraphConfigBuilder<PgHbaseGraphConfig>
action
- the actiongraph configuration documentation for details about the effects and default of this setting
public PgHbaseGraphConfigBuilder setErrorHandlingOnPropConversion(OnMismatch action)
AbstractGraphConfigBuilder
setErrorHandlingOnPropConversion
in class AbstractGraphConfigBuilder<PgHbaseGraphConfig>
action
- the actiongraph configuration documentation for details about the effects and default of this setting
public PgHbaseGraphConfigBuilder setErrorHandlingOnTypeMismatch(OnMismatch action)
AbstractGraphConfigBuilder
setErrorHandlingOnTypeMismatch
in class AbstractGraphConfigBuilder<PgHbaseGraphConfig>
action
- the actiongraph configuration documentation for details about the effects and default of this setting
public PgHbaseGraphConfigBuilder setHadoopSecAuth(String s)
s
- the Hadoop security authenticationpublic PgHbaseGraphConfigBuilder setHbaseSecAuth(String s)
s
- the HBase security authenticationpublic PgHbaseGraphConfigBuilder setHmKerberosPrincipal(String s)
s
- the HM Kerberos Principalpublic PgHbaseGraphConfigBuilder setInitialEdgeNumRegions(int inr)
inr
- the number of regionspublic PgHbaseGraphConfigBuilder setInitialVertexNumRegions(int inr)
inr
- the number of regionspublic PgHbaseGraphConfigBuilder setKeytab(String s)
s
- the path to the keytab filepublic PgHbaseGraphConfigBuilder setLoadEdgeLabel(boolean b)
AbstractPgGraphConfigBuilder
setLoadEdgeLabel
in class AbstractPgGraphConfigBuilder<PgHbaseGraphConfig>
b
- if true, loads the edge labelgraph configuration documentation for details about the effects and default of this setting
public PgHbaseGraphConfigBuilder setMaxNumConnections(int c)
AbstractPgGraphConfigBuilder
setMaxNumConnections
in class AbstractPgGraphConfigBuilder<PgHbaseGraphConfig>
c
- the number of connectionsgraph configuration documentation for details about the effects and default of this setting
public PgHbaseGraphConfigBuilder setName(String name)
AbstractPgGraphConfigBuilder
setName
in class AbstractPgGraphConfigBuilder<PgHbaseGraphConfig>
name
- the namegraph configuration documentation for details about the effects of this setting
public PgHbaseGraphConfigBuilder setRefreshIntervalMs(int milliseconds)
AbstractGraphConfigBuilder
setRefreshIntervalMs
in class AbstractGraphConfigBuilder<PgHbaseGraphConfig>
milliseconds
- the interval in millisecondsgraph configuration documentation for details about the effects and default of this flag
public PgHbaseGraphConfigBuilder setRsKerberosPrincipal(String s)
s
- the RS Kerberos Principalpublic PgHbaseGraphConfigBuilder setSplitsPerRegion(int spr)
spr
- the splits per regionpublic PgHbaseGraphConfigBuilder setUserPrincipal(String s)
s
- the User Principalpublic PgHbaseGraphConfigBuilder setZkClientPort(int port)
port
- the portpublic PgHbaseGraphConfigBuilder setZkQuorum(String quorum)
quorum
- the quorumpublic PgHbaseGraphConfigBuilder setZkSessionTimeout(int to)
to
- the timeout in millisecondsCopyright © 2015. All rights reserved.