@Generated(value="config_generator.py") public class EsEntityProviderConfig extends AbstractEsEntityProviderConfig
Modifier and Type | Class and Description |
---|---|
static class |
EsEntityProviderConfig.Field
Fields of PGX Engine Es Entity Provider Config
|
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Map |
getAttributes()
additional attributes needed to read/write the graph data
|
static EsEntityProviderConfig.Field[] |
getConfigFields() |
java.lang.String |
getDestinationField()
name of the field in the Elasticsearch index containing the keys of the destination vertices
|
java.lang.String |
getDestinationVertexProvider()
name of the destination vertex provider to be used for this edge provider
|
GraphErrorHandlingConfig |
getErrorHandling()
error handling configuration
|
java.lang.String |
getEsIndexName()
Index name on the Elasticsearch server form which graph data is loaded
|
java.lang.String |
getEsQuery()
Elasticsearch query expressed as escaped JSON string
|
java.lang.String |
getEsUrl()
Elasticsearch URL pointing to an Elasticsearch instance
|
ProviderFormat |
getFormat()
provider format
|
java.lang.String |
getKeyField()
name of the field in the Elasticsearch index containing the keys of the entity
|
java.lang.String |
getKeystoreAlias()
alias to the keystore to use when connecting to database
|
IdType |
getKeyType()
type of the keys
|
java.lang.String |
getLabel()
label for the entities loaded from this provider
|
java.util.Map<java.lang.String,java.lang.Object> |
getLeftoverValues()
Gets the values that do not belong to any field.
|
ProviderLoadingConfig |
getLoading()
loading-specific configuration
|
java.util.List<java.lang.String> |
getLocalDateFormat()
array of local_date formats to use when loading and storing local_date properties.
|
java.lang.Integer |
getMaxBatchSize()
maximal batch size of Elasticsearch response objects
|
java.lang.String |
getName()
entity provider name
|
java.lang.String |
getPoint2d()
longitude and latitude as floating point values separated by a space
|
java.util.List<GraphPropertyConfig> |
getProps()
specification of the properties associated with this entity provider
|
java.lang.String |
getProxyUrl()
proxy server URL to be used for connection to es_url
|
java.lang.String |
getScrollTime()
time to keep Elasticsearch-scroll alive, batch data needs to be received and processed in that time window.
|
java.lang.String |
getSourceField()
name of the field in the Elasticsearch index containing the keys of the source vertices
|
java.lang.String |
getSourceVertexProvider()
name of the source vertex provider to be used for this edge provider
|
java.util.List<java.lang.String> |
getTimeFormat()
the time format to use when loading and storing time properties.
|
java.util.List<java.lang.String> |
getTimestampFormat()
the timestamp format to use when loading and storing timestamp properties.
|
java.util.List<java.lang.String> |
getTimestampWithTimezoneFormat()
the timestamp with timezone format to use when loading and storing timestamp with timezone properties.
|
java.util.List<java.lang.String> |
getTimeWithTimezoneFormat()
the time with timezone format to use when loading and storing time with timezone properties.
|
java.lang.String |
getUsername()
username to use when connecting to an Elasticsearch instance
|
java.util.Map<EsEntityProviderConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<EsEntityProviderConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
java.lang.Character |
getVectorComponentDelimiter()
delimiter for the different components of vector properties
|
boolean |
hasDefaultValue(EsEntityProviderConfig.Field field)
Checks for default value.
|
java.lang.Boolean |
hasKeys()
indicates if the provided entities data have keys
|
boolean |
isEmpty()
Checks if it's empty.
|
static EsEntityProviderConfig |
parse(java.io.InputStream is,
boolean strict,
java.lang.String parentPath)
Parses an input stream.
|
static EsEntityProviderConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw,
boolean strict,
java.lang.String parentPath)
Parses a raw key/value mapping.
|
static EsEntityProviderConfig |
parse(java.util.Properties props,
boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean hideSensitiveData) |
getEsIndexName, getEsUrl, getKeystoreAlias, getLoadedEsIndexName, getMaxBatchSize, getScrollTime, getUsername, hashCode, supportsVectorProperties, toEntityProviderConfigBuilder
getDestinationVertexKeyType, getPropertyDefault, getPropertyDimension, getPropertyName, getPropertyType, getSourceVertexKeyType, getValidatedLabel, isKeyMappingEnabled, isLabelLoadingEnabled, numProperties, supportsPropertyColumn, supportsPropertyColumn, supportsVectorProperties
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
createLocalDateFormat, createTimeFormat, createTimestampFormat, createTimestampWithTimezoneFormat, createTimeWithTimezoneFormat
public boolean equals(java.lang.Object obj)
equals
in class AbstractEsEntityProviderConfig
public java.util.Map getAttributes()
public static EsEntityProviderConfig.Field[] getConfigFields()
public java.lang.String getDestinationField()
getDestinationField
in class AbstractEsEntityProviderConfig
public java.lang.String getDestinationVertexProvider()
getDestinationVertexProvider
in class EntityProviderConfig
public GraphErrorHandlingConfig getErrorHandling()
public java.lang.String getEsIndexName()
getEsIndexName
in interface EsConnectionConfig
getEsIndexName
in class AbstractEsEntityProviderConfig
public java.lang.String getEsQuery()
public java.lang.String getEsUrl()
public ProviderFormat getFormat()
public java.lang.String getKeyField()
getKeyField
in class AbstractEsEntityProviderConfig
public java.lang.String getKeystoreAlias()
getKeystoreAlias
in interface CommonLoadableConfig<ProviderFormat>
getKeystoreAlias
in class AbstractEsEntityProviderConfig
public IdType getKeyType()
getKeyType
in class EntityProviderConfig
public java.lang.String getLabel()
getLabel
in class EntityProviderConfig
public java.util.Map<java.lang.String,java.lang.Object> getLeftoverValues()
public ProviderLoadingConfig getLoading()
getLoading
in class EntityProviderConfig
public java.util.List<java.lang.String> getLocalDateFormat()
public java.lang.Integer getMaxBatchSize()
public java.lang.String getName()
getName
in interface CommonLoadableConfig<ProviderFormat>
getName
in class EntityProviderConfig
public java.lang.String getPoint2d()
public java.util.List<GraphPropertyConfig> getProps()
getProps
in class EntityProviderConfig
public java.lang.String getProxyUrl()
public java.lang.String getScrollTime()
public java.lang.String getSourceField()
getSourceField
in class AbstractEsEntityProviderConfig
public java.lang.String getSourceVertexProvider()
getSourceVertexProvider
in class EntityProviderConfig
public java.util.List<java.lang.String> getTimeFormat()
public java.util.List<java.lang.String> getTimestampFormat()
public java.util.List<java.lang.String> getTimestampWithTimezoneFormat()
public java.util.List<java.lang.String> getTimeWithTimezoneFormat()
public java.lang.String getUsername()
public java.util.Map<EsEntityProviderConfig.Field,java.lang.Object> getValues()
getValues
in class AbstractConfig
public java.util.Map<EsEntityProviderConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public java.lang.Character getVectorComponentDelimiter()
public boolean hasDefaultValue(EsEntityProviderConfig.Field field)
hasDefaultValue
in class AbstractEsEntityProviderConfig
field
- the fieldpublic java.lang.Boolean hasKeys()
hasKeys
in class EntityProviderConfig
public boolean isEmpty()
public static EsEntityProviderConfig 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 EsEntityProviderConfig 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 EsEntityProviderConfig 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)