@Generated(value="config_generator.py") public class GraphPropertyConfig extends AbstractGraphPropertyConfig
Modifier and Type | Class and Description |
---|---|
static class |
GraphPropertyConfig.Field
Fields of PGX Engine Graph Property Config
|
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getColumn()
name or index (starting from 0) of the column holding the property data.
|
static GraphPropertyConfig.Field[] |
getConfigFields() |
java.lang.Object |
getDefault()
default value to be assigned to this property if datasource does not provide it.
|
java.lang.Integer |
getDimension()
dimension of property
|
java.util.List<java.lang.String> |
getFormat()
array of formats of property
|
java.lang.Integer |
getMaxDistinctStringsPerPool()
[only relevant if string_pooling_strategy is indexed] amount of distinct strings per property after which to stop pooling.
|
java.lang.String |
getName()
name of property
|
java.util.List<java.util.Map> |
getStores()
A list of storage identifiers that indicate where this property resides.
|
StringPoolingStrategy |
getStringPoolingStrategy()
[only relevant if use_string_pool is enabled] which string pooling strategy to use.
|
PropertyType |
getType()
type of property (Note: date is deprecated, use one of local_date / time / timestamp / time_with_timezone / timestamp_with_timezone instead).
|
java.util.Map<GraphPropertyConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<GraphPropertyConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(GraphPropertyConfig.Field field)
Checks for default value.
|
boolean |
isEmpty()
Checks if it's empty.
|
static GraphPropertyConfig |
parse(java.io.InputStream is,
boolean strict,
java.lang.String parentPath)
Parses an input stream.
|
static GraphPropertyConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw,
boolean strict,
java.lang.String parentPath)
Parses a raw key/value mapping.
|
static GraphPropertyConfig |
parse(java.util.Properties props,
boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean hideSensitiveData) |
java.lang.Boolean |
useStringPool()
If
true , PGX will store string properties in a pool in order to consume less memory on string properties |
getParsedDefaultValue, hashCode, isExternal, isInMemory, isStringPoolEnabled
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Object getColumn()
getColumn
in class AbstractGraphPropertyConfig
public static GraphPropertyConfig.Field[] getConfigFields()
public java.lang.Object getDefault()
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 java.lang.Integer getDimension()
public java.util.List<java.lang.String> getFormat()
getFormat
in class AbstractGraphPropertyConfig
public java.lang.Integer getMaxDistinctStringsPerPool()
public java.lang.String getName()
getName
in class AbstractGraphPropertyConfig
public java.util.List<java.util.Map> getStores()
getStores
in class AbstractGraphPropertyConfig
public StringPoolingStrategy getStringPoolingStrategy()
public PropertyType getType()
getType
in class AbstractGraphPropertyConfig
public java.util.Map<GraphPropertyConfig.Field,java.lang.Object> getValues()
public java.util.Map<GraphPropertyConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(GraphPropertyConfig.Field field)
field
- the fieldpublic boolean isEmpty()
public static GraphPropertyConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
is
- the input streamstrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathjava.io.IOException
- Signals that an I/O exception has occurred.public static GraphPropertyConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathpublic static GraphPropertyConfig parse(java.util.Properties props, boolean strict)
props
- the properties to parsestrict
- if true, parses in strict modepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean hideSensitiveData)
public java.lang.Boolean useStringPool()
true
, PGX will store string properties in a pool in order to consume less memory on string propertiesCopyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.