@Generated(value={"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
public final class GraphPropertyConfigBuilder
extends java.lang.Object
GraphPropertyConfig
.Constructor and Description |
---|
GraphPropertyConfigBuilder()
Constructs an empty GraphPropertyConfigBuilder
|
GraphPropertyConfigBuilder(GraphPropertyConfig config)
Constructs a GraphPropertyConfigBuilder initialized with the values from the given config
|
GraphPropertyConfigBuilder(GraphPropertyConfigBuilder builder)
Constructs a GraphPropertyConfigBuilder initialized with the values from the given builder
|
GraphPropertyConfigBuilder(java.util.Map<GraphPropertyConfig.Field,java.lang.Object> values)
Constructs a GraphPropertyConfigBuilder initialized with the values from the given map
|
Modifier and Type | Method and Description |
---|---|
GraphPropertyConfig |
build()
Builds the GraphPropertyConfig with a
parentPath of null . |
GraphPropertyConfig |
build(java.lang.String parentPath)
Builds the GraphPropertyConfig.
|
static GraphPropertyConfig |
buildGraphPropertyConfig(java.util.function.Consumer<GraphPropertyConfigBuilder> builderSetup)
Builds a
GraphPropertyConfig in-place |
GraphPropertyConfigBuilder |
clear()
Clears all values from the builder
|
java.util.Map<GraphPropertyConfig.Field,java.lang.Object> |
getValues() |
GraphPropertyConfigBuilder |
putAll(GraphPropertyConfig config)
Puts all values from the given config into this builder
|
GraphPropertyConfigBuilder |
putAll(java.util.Map<GraphPropertyConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.
|
GraphPropertyConfigBuilder |
setColumn(java.lang.Object column)
name or index (starting from 0) of the column holding the property data.
|
GraphPropertyConfigBuilder |
setDefault(java.lang.Object defaultVal)
default value to be assigned to this property if datasource does not provide it.
|
GraphPropertyConfigBuilder |
setDimension(int dimension)
dimension of property
|
GraphPropertyConfigBuilder |
setFormat(java.lang.String... format)
array of formats of property
|
GraphPropertyConfigBuilder |
setMaxDistinctStringsPerPool(int maxDistinctStringsPerPool)
[only relevant if string_pooling_strategy is indexed] amount of distinct strings per property after which to stop pooling.
|
GraphPropertyConfigBuilder |
setName(java.lang.String name)
name of property
|
GraphPropertyConfigBuilder |
setStores(java.lang.Object... stores)
A list of storage identifiers that indicate where this property resides.
|
GraphPropertyConfigBuilder |
setStringPoolingStrategy(StringPoolingStrategy stringPoolingStrategy)
[only relevant if use_string_pool is enabled] which string pooling strategy to use.
|
GraphPropertyConfigBuilder |
setType(PropertyType type)
type of property (Note: date is deprecated, use one of local_date / time / timestamp / time_with_timezone / timestamp_with_timezone instead).
|
GraphPropertyConfigBuilder |
setUseStringPool(boolean useStringPool)
If
true , PGX will store string properties in a pool in order to consume less memory on string properties |
java.io.InputStream |
toInputStream() |
java.lang.String |
toString() |
public GraphPropertyConfigBuilder()
public GraphPropertyConfigBuilder(GraphPropertyConfig config)
config
- the configuration to take the values frompublic GraphPropertyConfigBuilder(GraphPropertyConfigBuilder builder)
builder
- the builder to take the values frompublic GraphPropertyConfigBuilder(java.util.Map<GraphPropertyConfig.Field,java.lang.Object> values)
values
- a map containing configuration valuespublic GraphPropertyConfig build()
parentPath
of null
.build(String)
public GraphPropertyConfig build(java.lang.String parentPath)
parentPath
- if not null, resolves relative paths against this parentPathpublic static GraphPropertyConfig buildGraphPropertyConfig(java.util.function.Consumer<GraphPropertyConfigBuilder> builderSetup)
GraphPropertyConfig
in-placebuilderSetup
- a consumer to setup a newly created GraphPropertyConfig
public GraphPropertyConfigBuilder clear()
public java.util.Map<GraphPropertyConfig.Field,java.lang.Object> getValues()
public GraphPropertyConfigBuilder putAll(GraphPropertyConfig config)
config
- the config to take the values frompublic GraphPropertyConfigBuilder putAll(java.util.Map<GraphPropertyConfig.Field,java.lang.Object> values)
values
- the values to put in the builderpublic GraphPropertyConfigBuilder setColumn(java.lang.Object column)
public GraphPropertyConfigBuilder setDefault(java.lang.Object defaultVal)
yyyy-MM-dd HH:mm:ss
. If no default is present (null
), non-existent properties will contain default Java types (primitives) or empty string (string) or 01.01.1970 00:00
(date).public GraphPropertyConfigBuilder setDimension(int dimension)
public GraphPropertyConfigBuilder setFormat(java.lang.String... format)
format
- possible format for propertypublic GraphPropertyConfigBuilder setMaxDistinctStringsPerPool(int maxDistinctStringsPerPool)
public GraphPropertyConfigBuilder setName(java.lang.String name)
public GraphPropertyConfigBuilder setStores(java.lang.Object... stores)
stores
- Describes the name of the external system where this property resides.public GraphPropertyConfigBuilder setStringPoolingStrategy(StringPoolingStrategy stringPoolingStrategy)
public GraphPropertyConfigBuilder setType(PropertyType type)
public GraphPropertyConfigBuilder setUseStringPool(boolean useStringPool)
true
, PGX will store string properties in a pool in order to consume less memory on string propertiespublic java.io.InputStream toInputStream()
InputStream
representing the configpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.