@Generated(value="config_generator.py") public class SparkStreamsConfig extends AbstractSparkStreamsConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
SparkStreamsConfig.Field
Fields of spark streams config
|
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX| Modifier and Type | Method and Description |
|---|---|
static SparkStreamsConfig.Field[] |
getConfigFields() |
java.lang.Integer |
getMaxPortRange()
PGX will open port with same or smaller than this value
|
java.lang.Integer |
getMaxRowSizeInBytes()
the maximum size of Spark Row in bytes, Spark loader can handle.
|
java.lang.Integer |
getMinPortRange()
PGX will open port with same or larger than this value.
|
java.lang.String |
getNetworkInterface()
the name of an interface will be used spark data communication
|
java.util.Map<SparkStreamsConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<SparkStreamsConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(SparkStreamsConfig.Field field)
Checks for default value.
|
boolean |
isEmpty()
Checks if it's empty.
|
static SparkStreamsConfig |
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.
|
static SparkStreamsConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.
|
static SparkStreamsConfig |
parse(java.util.Properties props, boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean hashSensitiveData) |
getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializablepublic static SparkStreamsConfig.Field[] getConfigFields()
public java.lang.Integer getMaxPortRange()
getMaxPortRange in class AbstractSparkStreamsConfigpublic java.lang.Integer getMaxRowSizeInBytes()
public java.lang.Integer getMinPortRange()
getMinPortRange in class AbstractSparkStreamsConfigpublic java.lang.String getNetworkInterface()
getNetworkInterface in class AbstractSparkStreamsConfigpublic java.util.Map<SparkStreamsConfig.Field,java.lang.Object> getValues()
public java.util.Map<SparkStreamsConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(SparkStreamsConfig.Field field)
field - the fieldpublic boolean isEmpty()
public static SparkStreamsConfig 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 SparkStreamsConfig 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 SparkStreamsConfig 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.Objectpublic java.lang.String toString(boolean hashSensitiveData)
Copyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.