com.sksamuel.elastic4s.admin.IndexSegments.scala Maven / Gradle / Ivy
package com.sksamuel.elastic4s.admin
case class IndexSegments(original: org.elasticsearch.action.admin.indices.segments.IndexSegments) {
import scala.collection.JavaConverters._
def index: String = original.getIndex
def shards: Map[Integer, IndexShardSegments] =
Option(original.getShards)
.map(_.asScala.map { case (k, v) => k -> IndexShardSegments(v) }.toMap)
.getOrElse(Map.empty)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy