@Generated(value="config_generator.py") public class FileTableConfig extends AbstractFileTableConfig
Modifier and Type | Class and Description |
---|---|
static class |
FileTableConfig.Field
Fields of PGX Engine File Table Config
|
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
default java.text.DateFormat |
createDateFormat() |
default java.util.List<java.time.format.DateTimeFormatter> |
createLocalDateFormat() |
default java.util.List<java.time.format.DateTimeFormatter> |
createTimeFormat() |
default java.util.List<java.time.format.DateTimeFormatter> |
createTimestampFormat() |
default java.util.List<java.time.format.DateTimeFormatter> |
createTimestampWithTimezoneFormat() |
default java.util.List<java.time.format.DateTimeFormatter> |
createTimeWithTimezoneFormat() |
java.util.Map |
getAttributes()
additional attributes needed to read/write the graph data
|
static FileTableConfig.Field[] |
getConfigFields() |
java.lang.String |
getDateFormat()
the date format to use when loading and storing date properties.
|
java.lang.String |
getDestinationVertexTable()
name of the destination vertex table to be used for this edge table
|
GraphErrorHandlingConfig |
getErrorHandling()
error handling configuration
|
Format |
getFormat()
graph format
|
IdType |
getIdType()
type of the ID
|
TableLoadingConfig |
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.String |
getName()
table 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 table
|
java.lang.String |
getSeparator()
separator string for text files.
|
java.lang.String |
getSourceVertexTable()
name of the source vertex table to be used for this edge table
|
FileGraphStoringConfig |
getStoring()
storing-specific configuration
|
java.lang.String |
getTableLabel()
label to associate to all the entities of the table
|
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.util.List<java.lang.String> |
getUris()
list of unified resource identifiers
|
java.util.Map<FileTableConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<FileTableConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(FileTableConfig.Field field)
Checks for default value.
|
java.lang.Boolean |
isDetectGzip()
enable/disable automatic gzip compression detection when loading graphs
|
boolean |
isEmpty()
Checks if it's empty.
|
java.lang.Boolean |
isHeader()
first line of file is meant for headers, e.g.
|
static FileTableConfig |
parse(java.io.InputStream is,
boolean strict,
java.lang.String parentPath)
Parses an input stream.
|
static FileTableConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw,
boolean strict,
java.lang.String parentPath)
Parses a raw key/value mapping.
|
static FileTableConfig |
parse(java.util.Properties props,
boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean hideSensitiveData) |
equals, hashCode, toTableConfigBuilder
getDestinationVertexIdType, getPropertyDefault, getPropertyDimension, getPropertyName, getPropertyType, getSourceVertexIdType, isKeyMappingEnabled, isLabelLoadingEnabled, numProperties
getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
public java.util.Map getAttributes()
getAttributes
in class AbstractFileTableConfig
public static FileTableConfig.Field[] getConfigFields()
public java.lang.String getDateFormat()
public java.lang.String getDestinationVertexTable()
getDestinationVertexTable
in class GraphTableConfig
public GraphErrorHandlingConfig getErrorHandling()
public Format getFormat()
public IdType getIdType()
getIdType
in class GraphTableConfig
public TableLoadingConfig getLoading()
getLoading
in class GraphTableConfig
public java.util.List<java.lang.String> getLocalDateFormat()
public java.lang.String getName()
getName
in class AbstractFileTableConfig
public java.lang.String getPoint2d()
public java.util.List<GraphPropertyConfig> getProps()
getProps
in class GraphTableConfig
public java.lang.String getSeparator()
getSeparator
in class AbstractFileTableConfig
public java.lang.String getSourceVertexTable()
getSourceVertexTable
in class GraphTableConfig
public FileGraphStoringConfig getStoring()
getStoring
in class AbstractFileTableConfig
public java.lang.String getTableLabel()
getTableLabel
in class GraphTableConfig
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.util.List<java.lang.String> getUris()
getUris
in class AbstractFileTableConfig
public java.util.Map<FileTableConfig.Field,java.lang.Object> getValues()
public java.util.Map<FileTableConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(FileTableConfig.Field field)
field
- the fieldpublic java.lang.Boolean isDetectGzip()
isDetectGzip
in class AbstractFileTableConfig
public boolean isEmpty()
public java.lang.Boolean isHeader()
isHeader
in class AbstractFileTableConfig
public static FileTableConfig 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 FileTableConfig 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 FileTableConfig 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.text.DateFormat createDateFormat()
public java.util.List<java.time.format.DateTimeFormatter> createLocalDateFormat()
public java.util.List<java.time.format.DateTimeFormatter> createTimeFormat()
public java.util.List<java.time.format.DateTimeFormatter> createTimestampFormat()
public java.util.List<java.time.format.DateTimeFormatter> createTimestampWithTimezoneFormat()
public java.util.List<java.time.format.DateTimeFormatter> createTimeWithTimezoneFormat()
Copyright © 2016, 2019, Oracle and/or its affiliates. All Rights Reserved.