object DatabaseUtils
Utility class with methods to help export data frames to a database
- Alphabetic
- By Inheritance
- DatabaseUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
databaseUrl(database: String, connection: ConnectionInfo): String
Builds the URL for connecting to a database through JDBC.
Builds the URL for connecting to a database through JDBC.
- database
The name of the database.
- connection
The
ConnectionInfo
-
def
deleteRows(scope: PipelineExecutionScopeApi, table: String, database: String, connection: String, filter: Option[String]): Unit
Deletes rows from a table that match a given filter.
Deletes rows from a table that match a given filter.
- scope
The
PipelineExecutionScopeApi
- table
The table to delete data from.
- database
The name of the database.
- connection
The unique ID of the connection object.
- filter
The filter describing what rows to delete. Leave empty to truncate the table.
-
def
deleteRows(databaseUrl: String, table: String, filter: Option[String]): Unit
Deletes rows from a table that match a given filter.
Deletes rows from a table that match a given filter.
- databaseUrl
The URL for connecting to the database.
- table
The table to delete data from.
- filter
The filter describing what rows to delete. Leave empty to truncate the table.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
insertFrame(frame: DataFrame, scope: PipelineExecutionScopeApi, table: String, database: String, connection: String, properties: Properties = new Properties()): Unit
Deletes rows from a table that match a given filter.
Deletes rows from a table that match a given filter.
- frame
The
DataFrame
- scope
The
PipelineExecutionScopeApi
- table
The table to delete data from.
- database
The name of the database.
- connection
The unique ID of the connection object.
- properties
The
Properties
-
def
insertFrame(frame: DataFrame, databaseUrl: String, table: String, properties: Properties): Unit
Insert a data frame into a database.
Insert a data frame into a database.
- frame
The
DataFrame
- databaseUrl
The URL for connecting to the database.
- table
The table to delete data from.
- properties
The
Properties
-
def
insertOrUpdateFrame(frame: DataFrame, scope: PipelineExecutionScopeApi, table: String, database: String, connection: String, keyColumns: List[String], properties: Properties = new Properties()): Unit
Deletes rows from a table that match a given filter.
Deletes rows from a table that match a given filter.
- frame
The
DataFrame
- scope
The
PipelineExecutionScopeApi
- table
The table to delete data from.
- database
The name of the database.
- connection
The unique ID of the connection object.
- keyColumns
The list of columns whose combined values determine the rows to delete before the insert.
- properties
The
Properties
-
def
insertOrUpdateFrame(frame: DataFrame, databaseUrl: String, table: String, keyColumns: List[String], properties: Properties): Unit
Deletes rows from a table that match a given filter.
Deletes rows from a table that match a given filter.
- frame
The
DataFrame
- databaseUrl
The URL for connecting to the database.
- table
The table to delete data from.
- keyColumns
The list of columns whose combined values determine the rows to delete before the insert.
- properties
The
Properties
-
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated