All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sksamuel.elastic4s.alias.GetAliasResult.scala Maven / Gradle / Ivy

The newest version!
package com.sksamuel.elastic4s.alias

import org.elasticsearch.action.admin.indices.alias.get.GetAliasesResponse
import org.elasticsearch.cluster.metadata.AliasMetaData

import scala.jdk.CollectionConverters._

case class GetAliasResult(response: GetAliasesResponse) {

  def aliases: Map[String, Seq[AliasMetaData]] =
    response.getAliases.keysIt().asScala.map(key => key -> response.getAliases.get(key).asScala.toSeq).toMap
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy