trait VerticaFileBuilder[-R] extends FileBuilder[R]
A file builder that additionally knows how to generate COPY statements to load resulting files to Vertica tables.
- R
type of the records written to files being built.
- Alphabetic
- By Inheritance
- VerticaFileBuilder
- FileBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def build(): Option[File]
Builds a data file from all the added records and flushes it to disk.
Builds a data file from all the added records and flushes it to disk. The builder instance can no longer be used after calling this method.
- returns
The resulting file if any records were added, None otherwise.
- Definition Classes
- FileBuilder
- abstract def copyStatement(file: File, table: String, loadMethod: VerticaLoadMethod): String
Generates a COPY statement to load a given file to the destination table.
Generates a COPY statement to load a given file to the destination table.
- file
File being loaded to.
- table
Vertica table to load data into.
- loadMethod
The Vertica load method to use in the
COPY
statement.- returns
A COPY statement.
- abstract def discard(): Unit
Discards the file currently being built and closes the builder.
Discards the file currently being built and closes the builder.
- Definition Classes
- FileBuilder
- abstract def getDataSize: Long
Gets the current size of the data added to the file.
Gets the current size of the data added to the file.
- Definition Classes
- FileBuilder
- abstract def getRecordCount: Long
Gets the count of records currently written to the file.
Gets the count of records currently written to the file.
- Definition Classes
- FileBuilder
- abstract def write(record: R): Unit
Adds a record to the file.
Adds a record to the file.
- Definition Classes
- FileBuilder
Concrete 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()
- def compressionStr(compression: Compression): String
- Attributes
- protected
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- def loadMethodStr(loadMethod: VerticaLoadMethod): String
- Attributes
- protected
- 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 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()