Packages

c

com.datasolvr.services.facade

ExcelWriterInMemory

class ExcelWriterInMemory extends ExcelWriterBase

This excel writer is in memory, thus slower than the ExcelWriter, but it supports pivot tables and formula evaluations.

Linear Supertypes
ExcelWriterBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExcelWriterInMemory
  2. ExcelWriterBase
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ExcelWriterInMemory(existingWorkbook: Option[XSSFWorkbook] = None)

    existingWorkbook

    an optional existing XSSFWorkbook.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addPivot(sheetName: String, filterColumns: List[String], colColumns: List[String], rowColumns: List[String], valueColumns: List[(DataConsolidateFunction, String, String)], createInSheet: Option[String] = None, pivotRowOffset: Int = 0, pivotCollOffset: Int = 0): Unit

    Adds a pivot table to an existing sheet

    Adds a pivot table to an existing sheet

    sheetName

    name

    filterColumns

    list of filter names - must be in the header of the sheet

    colColumns

    list of column names - must be in the header of the sheet

    rowColumns

    list of filter row names - must be in the header of the sheet

    valueColumns

    a triplet of an aggregation function, a column name and a format. For formatting see https://stackoverflow.com/questions/319438/basic-excel-currency-format-with-apache-poi or use a custom format from excel

  5. def addPivotWithIndexes(sheetName: String, filterColumns: List[Int], colColumns: List[Int], rowColumns: List[Int], valueColumns: List[(DataConsolidateFunction, Int, String)], createInSheet: Option[String] = None, pivotRowOffset: Int = 0, pivotCollOffset: Int = 0): Unit

    Adds a pivot table to an existing sheet

    Adds a pivot table to an existing sheet

    sheetName

    name

    filterColumns

    list of filter indexes

    colColumns

    list of column indexes

    rowColumns

    list of filter row indexes

    valueColumns

    a triplet of an aggregation function, an index and a format. For formatting see https://stackoverflow.com/questions/319438/basic-excel-currency-format-with-apache-poi or use a custom format from excel

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. val existingWorkbook: Option[XSSFWorkbook]
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  17. def save(outputStream: OutputStream): Unit

    Writes the workbook to an output location.

    Writes the workbook to an output location.

    outputStream

    The stream the workbook is written to.

    Definition Classes
    ExcelWriterBase
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. def workbook: XSSFWorkbook
    Definition Classes
    ExcelWriterInMemoryExcelWriterBase
  24. def writeSheet(name: String, content: List[Array[String]]): Unit

    Writes the given content to a new sheet with given name.

    Writes the given content to a new sheet with given name.

    name

    The name of the sheet to write.

    content

    The rows of content to write.

    Definition Classes
    ExcelWriterBase
  25. def writeSheet(name: String, csv: CSVReader): Unit

    Writes the content read from a csv source to a new sheet with given name.

    Writes the content read from a csv source to a new sheet with given name.

    name

    The name of the sheet to write.

    csv

    The reader for the csv source.

    Definition Classes
    ExcelWriterBase
  26. def writeSheet(file: FileContent): Unit

    Writes the content of a file to new sheet named with the file name.

    Writes the content of a file to new sheet named with the file name.

    file

    The file to write.

    Definition Classes
    ExcelWriterBase
  27. def writeSheetMatch(name: String, header: Iterable[String], content: Iterable[Product]): Unit

    Writes the given content to a new sheet with given name and header.

    Writes the given content to a new sheet with given name and header. Supports all case classes as content.

    name

    The name of the sheet to write.

    header

    The header of the new sheet

    content

    The rows of content to write.

  28. def writeSheetMatchAny(name: String, header: Iterable[String], content: Iterable[Iterable[Any]]): Unit

    Writes the given content to a new sheet with given name and header.

    Writes the given content to a new sheet with given name and header. Supports types

    Double

    ,

    Int

    , Boolean and String.

    name

    The name of the sheet to write.

    header

    The header of the new sheet

    content

    The rows of content to write.

  29. def writeSheetMatchProduct[T](name: String, content: Iterable[Product])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Unit

    Writes the given content to a new sheet with given name.

    Writes the given content to a new sheet with given name. Supports all case classes and automatically defines a header from the class fields.

    name

    The name of the sheet to write.

    content

    The rows of content to write.

    Definition Classes
    ExcelWriterBase
  30. def writeSheetMatchTypes(name: String, content: List[Array[Any]]): Unit

    Writes the given content to a new sheet with given name.

    Writes the given content to a new sheet with given name. Supports types

    Double

    ,

    Int

    , Boolean and String.

    name

    The name of the sheet to write.

    content

    The rows of content to write.

    Definition Classes
    ExcelWriterBase
  31. def writeValue(row: Row, value: Any, col: Int): Any
    Attributes
    protected
    Definition Classes
    ExcelWriterBase

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from ExcelWriterBase

Inherited from AnyRef

Inherited from Any

Ungrouped