object CsvToMap
- Source
- CsvToMap.scala
- Alphabetic
- By Inheritance
- CsvToMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toMap(charset: Charset = StandardCharsets.UTF_8): Flow[List[ByteString], Map[String, ByteString], NotUsed]
A flow translating incoming scala.List of pekko.util.ByteString to a map of String and ByteString using the stream's first element's values as keys.
A flow translating incoming scala.List of pekko.util.ByteString to a map of String and ByteString using the stream's first element's values as keys.
- charset
the charset to decode pekko.util.ByteString to scala.Predef.String, defaults to UTF-8
- def toMapAsStrings(charset: Charset = StandardCharsets.UTF_8): Flow[List[ByteString], Map[String, String], NotUsed]
A flow translating incoming scala.List of pekko.util.ByteString to a map of String keys and values using the stream's first element's values as keys.
A flow translating incoming scala.List of pekko.util.ByteString to a map of String keys and values using the stream's first element's values as keys.
- charset
the charset to decode pekko.util.ByteString to scala.Predef.String, defaults to UTF-8
- def toMapAsStringsCombineAll(charset: Charset = StandardCharsets.UTF_8, customFieldValuePlaceholder: Option[String] = None, headerPlaceholder: Option[String] = None): Flow[List[ByteString], Map[String, String], NotUsed]
A flow translating incoming scala.List of pekko.util.ByteString to a map of String keys and values using the stream's first element's values as keys.
A flow translating incoming scala.List of pekko.util.ByteString to a map of String keys and values using the stream's first element's values as keys. If the header values are shorter than the data (or vice-versa) placeholder elements are used to extend the shorter collection to the length of the longer.
- charset
the charset to decode pekko.util.ByteString to scala.Predef.String, defaults to UTF-8
- customFieldValuePlaceholder
placeholder used when there is more data than headers.
- headerPlaceholder
placeholder used when there are more headers than data.
- def toMapCombineAll(charset: Charset = StandardCharsets.UTF_8, customFieldValuePlaceholder: Option[ByteString] = None, headerPlaceholder: Option[String] = None): Flow[List[ByteString], Map[String, ByteString], NotUsed]
A flow translating incoming scala.List of pekko.util.ByteString to a map of String and ByteString using the stream's first element's values as keys.
A flow translating incoming scala.List of pekko.util.ByteString to a map of String and ByteString using the stream's first element's values as keys. If the header values are shorter than the data (or vice-versa) placeholder elements are used to extend the shorter collection to the length of the longer.
- charset
the charset to decode pekko.util.ByteString to scala.Predef.String, defaults to UTF-8
- customFieldValuePlaceholder
placeholder used when there is more data than headers.
- headerPlaceholder
placeholder used when there are more headers than data.
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withHeaders(headers: String*): Flow[List[ByteString], Map[String, ByteString], NotUsed]
A flow translating incoming scala.List of pekko.util.ByteString to a map of String and ByteString using the given headers as keys.
A flow translating incoming scala.List of pekko.util.ByteString to a map of String and ByteString using the given headers as keys.
- headers
column names to be used as map keys
- def withHeadersAsStrings(charset: Charset, headers: String*): Flow[List[ByteString], Map[String, String], NotUsed]
A flow translating incoming scala.List of pekko.util.ByteString to a map of String keys and values using the given headers as keys.
A flow translating incoming scala.List of pekko.util.ByteString to a map of String keys and values using the given headers as keys.
- charset
the charset to decode pekko.util.ByteString to scala.Predef.String
- headers
column names to be used as map keys