Stream$.from
Code IndexAdd Codota to your IDE (free)

Best code snippets using scala.collection.immutable.Stream$.from(Showing top 5 results out of 315)

origin: apache/mahout

object BiDictionary {

 /**
  * Append new keys to an existing BiDictionary and return the result. The values will start
  * at m.size and increase to create a continuous non-zero value set from 0 to size - 1
  * @param keys new keys to append, not checked for uniqueness so may be dangerous
  * @param biDi merge keys to this BiDictionary and create new values buy incremeting from the highest Int value
  * @return a BiDictionary with added mappings
  */
 /*def append(keys: Seq[String], biDi: BiDictionary): BiDictionary = {
  val hm = HashMap(keys.view.zip (Stream from biDi.size): _*)
  new BiDictionary(biDi.m ++ hm)
 }*/

}
origin: com.typesafe.slick/slick_2.10

final case class ProductNode(children: ConstArray[Node]) extends SimplyTypedNode {
 type Self = ProductNode
 override def getDumpInfo = super.getDumpInfo.copy(name = "ProductNode", mainInfo = "")
 protected[this] def rebuild(ch: ConstArray[Node]): Self = copy(ch)
 override def childNames: Iterable[String] = Stream.from(1).map(_.toString)
 protected def buildType: Type = ProductType(children.map { ch =>
  val t = ch.nodeType
  if(t == UnassignedType) throw new SlickException(s"ProductNode child $ch has UnassignedType")
  t
 })
 def flatten: ProductNode = {
  def f(n: Node): ConstArray[Node] = n match {
   case ProductNode(ns) => ns.flatMap(f)
   case StructNode(els) => els.flatMap(el => f(el._2))
   case n => ConstArray(n)
  }
  ProductNode(f(this))
 }
}
origin: com.typesafe.slick/slick_2.10

def childNames: Iterable[String] = Stream.from(0).map(_.toString)
origin: apache/ignite

val serverNodes = ic.ignite().cluster().forCacheNodes(cacheName).forServers().nodes()
Array(IgniteDataFramePartition(0, serverNodes.head, Stream.from(0).take(1024).toList))
origin: apache/ignite

val aff = ic.ignite().affinity[IgniteUuid](cacheName)
Stream.from(1, Math.max(1000, aff.partitions() * 2))
  .map(_ ⇒ IgniteUuid.randomUuid()).find(node == null || aff.mapKeyToNode(_).eq(node))
  .getOrElse(IgniteUuid.randomUuid())
scala.collection.immutableStream$from

Popular methods of Stream$

  • canBuildFrom
  • empty
  • consWrapper
  • apply
  • continually
  • range

Popular classes and methods

  • getOriginalFilename (MultipartFile)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • findViewById (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Table (org.hibernate.mapping)
    A relational table
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)