com.sksamuel.elastic4s.admin.ShardSegments.scala Maven / Gradle / Ivy
The newest version!
package com.sksamuel.elastic4s.admin
import org.elasticsearch.index.engine.Segment
case class ShardSegments(original: org.elasticsearch.action.admin.indices.segments.ShardSegments) {
import scala.jdk.CollectionConverters._
def numberOfCommitted: Integer = original.getNumberOfCommitted
def numberOfSearch: Integer = original.getNumberOfSearch
def segments: Seq[Segment] = Option(original.getSegments).map(_.asScala.toSeq).getOrElse(Nil)
def shardRouting = original.getShardRouting
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy