org.hibernate.search.elasticsearch.schema.impl

## Class ElasticsearchSchemaAccessor

- java.lang.Object
- - org.hibernate.search.elasticsearch.schema.impl.ElasticsearchSchemaAccessor

-     public class ElasticsearchSchemaAccessor
      extends Object

  A utility implementing primitives for the various `DefaultElasticsearchSchema*`.
  Author:
    Gunnar Morling, Yoann Rodiere

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ElasticsearchSchemaAccessor(ElasticsearchWorkFactory workFactory, ElasticsearchWorkProcessor workProcessor)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `closeIndex(URLEncodedString indexName)`
    `void` | `createIndex(URLEncodedString indexName, IndexSettings settings, ExecutionOptions executionOptions)`
    `boolean` | `createIndexIfAbsent(URLEncodedString indexName, IndexSettings settings, ExecutionOptions executionOptions)`
    `void` | `dropIndex(URLEncodedString indexName, ExecutionOptions executionOptions)`
    `IndexMetadata` | `getCurrentIndexMetadata(URLEncodedString indexName)`
    `boolean` | `indexExists(URLEncodedString indexName)`
    `void` | `openIndex(URLEncodedString indexName)`
    `void` | `putMapping(URLEncodedString indexName, URLEncodedString mappingName, TypeMapping mapping)`
    `void` | `updateSettings(URLEncodedString indexName, IndexSettings settings)`
    `void` | `waitForIndexStatus(URLEncodedString indexName, ExecutionOptions executionOptions)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ElasticsearchSchemaAccessor

          public ElasticsearchSchemaAccessor(ElasticsearchWorkFactory workFactory,
                                             ElasticsearchWorkProcessor workProcessor)

  - ### Method Detail

    - #### createIndex

          public void createIndex(URLEncodedString indexName,
                                  IndexSettings settings,
                                  ExecutionOptions executionOptions)

    - #### createIndexIfAbsent

          public boolean createIndexIfAbsent(URLEncodedString indexName,
                                             IndexSettings settings,
                                             ExecutionOptions executionOptions)

      Parameters:
        `indexName` - The name of the index
        `settings` - The settings for the newly created index
        `executionOptions` - The execution options
      Returns:
        `true` if the index was actually created, `false` if it already existed.

    - #### indexExists

          public boolean indexExists(URLEncodedString indexName)

    - #### getCurrentIndexMetadata

          public IndexMetadata getCurrentIndexMetadata(URLEncodedString indexName)

    - #### updateSettings

          public void updateSettings(URLEncodedString indexName,
                                     IndexSettings settings)

    - #### putMapping

          public void putMapping(URLEncodedString indexName,
                                 URLEncodedString mappingName,
                                 TypeMapping mapping)

    - #### waitForIndexStatus

          public void waitForIndexStatus(URLEncodedString indexName,
                                         ExecutionOptions executionOptions)

    - #### dropIndex

          public void dropIndex(URLEncodedString indexName,
                                ExecutionOptions executionOptions)

    - #### closeIndex

          public void closeIndex(URLEncodedString indexName)

    - #### openIndex

          public void openIndex(URLEncodedString indexName)

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved