@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 |
setAggregate(Aggregate aggregate)
[currently unsupported] which aggregation function to use, aggregation always happens by vertex key
|
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 |
setDropAfterLoading(boolean dropAfterLoading)
[currently unsupported] indicating helper properties only used for aggregation, which are dropped after loading
|
GraphPropertyConfigBuilder |
setField(java.lang.Object field)
name of the JSON field holding the property data.
|
GraphPropertyConfigBuilder |
setFormat(java.lang.String... format)
array of formats of property
|
GraphPropertyConfigBuilder |
setGroupKey(java.lang.String groupKey)
[currently unsupported] can only be used if the property / key is part of the grouping expression
|
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)
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).
|
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 setAggregate(Aggregate aggregate)
public 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 setDropAfterLoading(boolean dropAfterLoading)
public GraphPropertyConfigBuilder setField(java.lang.Object field)
public GraphPropertyConfigBuilder setFormat(java.lang.String... format)
format
- possible format for propertypublic GraphPropertyConfigBuilder setGroupKey(java.lang.String groupKey)
public 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 java.io.InputStream toInputStream()
InputStream
representing the configpublic java.lang.String toString()
toString
in class java.lang.Object