elasticsearch-hadoop

org.elasticsearch.hadoop.cfg
Class Settings

java.lang.Object
  extended by org.elasticsearch.hadoop.cfg.Settings
All Implemented Interfaces:
ConfigurationOptions, InternalConfigurationOptions
Direct Known Subclasses:
HadoopSettings, PropertiesSettings

public abstract class Settings
extends Object
implements InternalConfigurationOptions

Holder class containing the various configuration bits used by ElasticSearch Hadoop. Handles internally the fall back to defaults when looking for undefined, optional settings.


Field Summary
 
Fields inherited from interface org.elasticsearch.hadoop.cfg.InternalConfigurationOptions
INTERNAL_ES_HOSTS, INTERNAL_ES_TARGET_FIELDS, INTERNAL_ES_VERSION
 
Fields inherited from interface org.elasticsearch.hadoop.cfg.ConfigurationOptions
ES_BATCH_SIZE_BYTES, ES_BATCH_SIZE_BYTES_DEFAULT, ES_BATCH_SIZE_ENTRIES, ES_BATCH_SIZE_ENTRIES_DEFAULT, ES_BATCH_WRITE_REFRESH, ES_BATCH_WRITE_REFRESH_DEFAULT, ES_BATCH_WRITE_RETRY_COUNT, ES_BATCH_WRITE_RETRY_COUNT_DEFAULT, ES_BATCH_WRITE_RETRY_POLICY, ES_BATCH_WRITE_RETRY_POLICY_DEFAULT, ES_BATCH_WRITE_RETRY_POLICY_NONE, ES_BATCH_WRITE_RETRY_POLICY_SIMPLE, ES_BATCH_WRITE_RETRY_WAIT, ES_BATCH_WRITE_RETRY_WAIT_DEFAULT, ES_FIELD_READ_EMPTY_AS_NULL, ES_FIELD_READ_EMPTY_AS_NULL_DEFAULT, ES_FIELD_READ_VALIDATE_PRESENCE, ES_FIELD_READ_VALIDATE_PRESENCE_DEFAULT, ES_HEART_BEAT_LEAD, ES_HEART_BEAT_LEAD_DEFAULT, ES_HOST, ES_HTTP_RETRIES, ES_HTTP_RETRIES_DEFAULT, ES_HTTP_TIMEOUT, ES_HTTP_TIMEOUT_DEFAULT, ES_INDEX_AUTO_CREATE, ES_INDEX_AUTO_CREATE_DEFAULT, ES_INDEX_READ_MISSING_AS_EMPTY, ES_INDEX_READ_MISSING_AS_EMPTY_DEFAULT, ES_INPUT_JSON, ES_INPUT_JSON_DEFAULT, ES_MAPPING_DEFAULT_EXTRACTOR_CLASS, ES_MAPPING_DEFAULT_INDEX_EXTRACTOR_CLASS, ES_MAPPING_DEFAULT_INDEX_FORMATTER_CLASS, ES_MAPPING_ID, ES_MAPPING_ID_EXTRACTOR_CLASS, ES_MAPPING_INDEX_EXTRACTOR_CLASS, ES_MAPPING_INDEX_FORMATTER_CLASS, ES_MAPPING_PARAMS_DEFAULT_EXTRACTOR_CLASS, ES_MAPPING_PARAMS_EXTRACTOR_CLASS, ES_MAPPING_PARENT, ES_MAPPING_PARENT_EXTRACTOR_CLASS, ES_MAPPING_ROUTING, ES_MAPPING_ROUTING_EXTRACTOR_CLASS, ES_MAPPING_TIMESTAMP, ES_MAPPING_TIMESTAMP_EXTRACTOR_CLASS, ES_MAPPING_TTL, ES_MAPPING_TTL_EXTRACTOR_CLASS, ES_MAPPING_VERSION, ES_MAPPING_VERSION_EXTRACTOR_CLASS, ES_NET_PROXY_HTTP_HOST, ES_NET_PROXY_HTTP_PASS, ES_NET_PROXY_HTTP_PORT, ES_NET_PROXY_HTTP_USE_SYSTEM_PROPS, ES_NET_PROXY_HTTP_USE_SYSTEM_PROPS_DEFAULT, ES_NET_PROXY_HTTP_USER, ES_NET_PROXY_SOCKS_HOST, ES_NET_PROXY_SOCKS_PASS, ES_NET_PROXY_SOCKS_PORT, ES_NET_PROXY_SOCKS_USE_SYSTEM_PROPS, ES_NET_PROXY_SOCKS_USE_SYSTEM_PROPS_DEFAULT, ES_NET_PROXY_SOCKS_USER, ES_NODES, ES_NODES_DEFAULT, ES_NODES_DISCOVERY, ES_NODES_DISCOVERY_DEFAULT, ES_OPERATION_CREATE, ES_OPERATION_DELETE, ES_OPERATION_INDEX, ES_OPERATION_UPDATE, ES_OPERATION_UPSERT, ES_PORT, ES_PORT_DEFAULT, ES_QUERY, ES_RESOURCE, ES_RESOURCE_READ, ES_RESOURCE_WRITE, ES_SCROLL_FIELDS, ES_SCROLL_KEEPALIVE, ES_SCROLL_KEEPALIVE_DEFAULT, ES_SCROLL_SIZE, ES_SCROLL_SIZE_DEFAULT, ES_SERIALIZATION_READER_VALUE_CLASS, ES_SERIALIZATION_WRITER_BYTES_CLASS, ES_SERIALIZATION_WRITER_VALUE_CLASS, ES_UPDATE_RETRY_ON_CONFLICT, ES_UPDATE_RETRY_ON_CONFLICT_DEFAULT, ES_UPDATE_SCRIPT, ES_UPDATE_SCRIPT_LANG, ES_UPDATE_SCRIPT_PARAMS, ES_UPDATE_SCRIPT_PARAMS_JSON, ES_WRITE_OPERATION, ES_WRITE_OPERATION_DEFAULT
 
Constructor Summary
Settings()
           
 
Method Summary
protected abstract  Properties asProperties()
           
abstract  Settings copy()
           
 boolean getBatchRefreshAfterWrite()
           
 int getBatchSizeInBytes()
           
 int getBatchSizeInEntries()
           
 int getBatchWriteRetryCount()
           
 String getBatchWriteRetryPolicy()
           
 long getBatchWriteRetryWait()
           
 FieldPresenceValidation getFieldExistanceValidation()
           
 boolean getFieldReadEmptyAsNull()
           
 org.elasticsearch.hadoop.util.unit.TimeValue getHeartBeatLead()
           
 int getHttpRetries()
           
 long getHttpTimeout()
           
 boolean getIndexAutoCreate()
           
 boolean getIndexReadMissingAsEmpty()
           
 boolean getInputAsJson()
           
 String getMappingDefaultClassExtractor()
           
 String getMappingId()
           
 String getMappingIdExtractorClassName()
           
 String getMappingIndexExtractorClassName()
           
 String getMappingIndexFormatterClassName()
           
 String getMappingParamsExtractorClassName()
           
 String getMappingParent()
           
 String getMappingParentExtractorClassName()
           
 String getMappingRouting()
           
 String getMappingRoutingExtractorClassName()
           
 String getMappingTimestamp()
           
 String getMappingTimestampExtractorClassName()
           
 String getMappingTtl()
           
 String getMappingTtlExtractorClassName()
           
 String getMappingVersion()
           
 String getMappingVersionExtractorClassName()
           
 boolean getNetworkHttpUseSystemProperties()
           
 String getNetworkProxyHttpHost()
           
 String getNetworkProxyHttpPass()
           
 int getNetworkProxyHttpPort()
           
 String getNetworkProxyHttpUser()
           
 String getNetworkProxySocksHost()
           
 String getNetworkProxySocksPass()
           
 int getNetworkProxySocksPort()
           
 String getNetworkProxySocksUser()
           
 boolean getNetworkSocksUseSystemProperties()
           
 String getNodes()
           
 boolean getNodesDiscovery()
           
 String getOperation()
           
 int getPort()
           
abstract  String getProperty(String name)
           
protected  String getProperty(String name, String defaultValue)
           
 String getQuery()
           
protected  String getResource()
           
 String getResourceRead()
           
 String getResourceWrite()
           
 String getScrollFields()
           
 long getScrollKeepAlive()
           
 long getScrollSize()
           
 String getSerializerBytesConverterClassName()
           
 String getSerializerValueReaderClassName()
           
 String getSerializerValueWriterClassName()
           
 int getUpdateRetryOnConflict()
           
 String getUpdateScript()
           
 String getUpdateScriptLang()
           
 String getUpdateScriptParams()
           
 String getUpdateScriptParamsJson()
           
 boolean hasUpdateScript()
           
 boolean hasUpdateScriptParams()
           
 boolean hasUpdateScriptParamsJson()
           
 Settings load(String source)
           
abstract  InputStream loadResource(String location)
           
 Settings merge(Properties properties)
           
 String save()
           
 Settings setHosts(String hosts)
           
 Settings setPort(int port)
           
abstract  void setProperty(String name, String value)
           
 Settings setQuery(String query)
           
 Settings setResourceRead(String index)
           
 Settings setResourceWrite(String index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Settings

public Settings()
Method Detail

getNodes

public String getNodes()

getPort

public int getPort()

getNodesDiscovery

public boolean getNodesDiscovery()

getHttpTimeout

public long getHttpTimeout()

getHttpRetries

public int getHttpRetries()

getBatchSizeInBytes

public int getBatchSizeInBytes()

getBatchSizeInEntries

public int getBatchSizeInEntries()

getBatchWriteRetryCount

public int getBatchWriteRetryCount()

getBatchWriteRetryWait

public long getBatchWriteRetryWait()

getBatchWriteRetryPolicy

public String getBatchWriteRetryPolicy()

getBatchRefreshAfterWrite

public boolean getBatchRefreshAfterWrite()

getScrollKeepAlive

public long getScrollKeepAlive()

getScrollSize

public long getScrollSize()

getScrollFields

public String getScrollFields()

getSerializerValueWriterClassName

public String getSerializerValueWriterClassName()

getSerializerBytesConverterClassName

public String getSerializerBytesConverterClassName()

getSerializerValueReaderClassName

public String getSerializerValueReaderClassName()

getIndexAutoCreate

public boolean getIndexAutoCreate()

getIndexReadMissingAsEmpty

public boolean getIndexReadMissingAsEmpty()

getInputAsJson

public boolean getInputAsJson()

getOperation

public String getOperation()

getMappingId

public String getMappingId()

getMappingParent

public String getMappingParent()

getMappingVersion

public String getMappingVersion()

getMappingRouting

public String getMappingRouting()

getMappingTtl

public String getMappingTtl()

getMappingTimestamp

public String getMappingTimestamp()

getMappingDefaultClassExtractor

public String getMappingDefaultClassExtractor()

getMappingIdExtractorClassName

public String getMappingIdExtractorClassName()

getMappingParentExtractorClassName

public String getMappingParentExtractorClassName()

getMappingVersionExtractorClassName

public String getMappingVersionExtractorClassName()

getMappingRoutingExtractorClassName

public String getMappingRoutingExtractorClassName()

getMappingTtlExtractorClassName

public String getMappingTtlExtractorClassName()

getMappingTimestampExtractorClassName

public String getMappingTimestampExtractorClassName()

getMappingIndexExtractorClassName

public String getMappingIndexExtractorClassName()

getMappingIndexFormatterClassName

public String getMappingIndexFormatterClassName()

getMappingParamsExtractorClassName

public String getMappingParamsExtractorClassName()

getUpdateRetryOnConflict

public int getUpdateRetryOnConflict()

getUpdateScript

public String getUpdateScript()

getUpdateScriptLang

public String getUpdateScriptLang()

getUpdateScriptParams

public String getUpdateScriptParams()

getUpdateScriptParamsJson

public String getUpdateScriptParamsJson()

hasUpdateScript

public boolean hasUpdateScript()

hasUpdateScriptParams

public boolean hasUpdateScriptParams()

hasUpdateScriptParamsJson

public boolean hasUpdateScriptParamsJson()

getFieldReadEmptyAsNull

public boolean getFieldReadEmptyAsNull()

getFieldExistanceValidation

public FieldPresenceValidation getFieldExistanceValidation()

getHeartBeatLead

public org.elasticsearch.hadoop.util.unit.TimeValue getHeartBeatLead()

getNetworkProxyHttpHost

public String getNetworkProxyHttpHost()

getNetworkProxyHttpPort

public int getNetworkProxyHttpPort()

getNetworkProxyHttpUser

public String getNetworkProxyHttpUser()

getNetworkProxyHttpPass

public String getNetworkProxyHttpPass()

getNetworkHttpUseSystemProperties

public boolean getNetworkHttpUseSystemProperties()

getNetworkProxySocksHost

public String getNetworkProxySocksHost()

getNetworkProxySocksPort

public int getNetworkProxySocksPort()

getNetworkProxySocksUser

public String getNetworkProxySocksUser()

getNetworkProxySocksPass

public String getNetworkProxySocksPass()

getNetworkSocksUseSystemProperties

public boolean getNetworkSocksUseSystemProperties()

setHosts

public Settings setHosts(String hosts)

setPort

public Settings setPort(int port)

setResourceRead

public Settings setResourceRead(String index)

setResourceWrite

public Settings setResourceWrite(String index)

setQuery

public Settings setQuery(String query)

getResource

protected String getResource()

getResourceRead

public String getResourceRead()

getResourceWrite

public String getResourceWrite()

getQuery

public String getQuery()

loadResource

public abstract InputStream loadResource(String location)

copy

public abstract Settings copy()

getProperty

protected String getProperty(String name,
                             String defaultValue)

getProperty

public abstract String getProperty(String name)

setProperty

public abstract void setProperty(String name,
                                 String value)

merge

public Settings merge(Properties properties)

load

public Settings load(String source)

save

public String save()

asProperties

protected abstract Properties asProperties()

elasticsearch-hadoop