Interface FieldMappings.FieldMappingWriter

All Known Implementing Classes:
LuceneFieldMappingWriter, OpenSearchIndexManagerImpl
Enclosing class:
FieldMappings

public static interface FieldMappings.FieldMappingWriter
Writer for creating field mappings physically on the underlying index.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Create the specified field mapping on the underlying index if it is not already present.
  • Method Details

    • putIfAbsent

      boolean putIfAbsent(FieldMapping mapping) throws SearchIndexAccessException
      Create the specified field mapping on the underlying index if it is not already present.
      Parameters:
      mapping - a mapping to add
      Returns:
      true if the mapping was created on the index, or false if it was already present.
      Throws:
      SearchIndexAccessException - if the mapping failed to be created