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

com.sksamuel.elastic4s.requests.common.FetchSourceContext.scala Maven / Gradle / Ivy

There is a newer version: 8.16.0
Show newest version
package com.sksamuel.elastic4s.requests.common

case class FetchSourceContext(fetchSource: Boolean,
                              includes: Set[String] = Set.empty,
                              excludes: Set[String] = Set.empty)

object FetchSourceContext {
  def apply(fetchSource: Boolean,
            includes: Array[String],
            excludes: Array[String]): FetchSourceContext =
    FetchSourceContext(fetchSource, includes.toSet, excludes.toSet)

  def apply(fetchSource: Boolean, includes: Array[String]): FetchSourceContext =
    FetchSourceContext(fetchSource, includes.toSet)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy