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

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

The 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 - 2024 Weber Informatics LLC | Privacy Policy