Skip to main content

%SQL.RDP.Loader

class %SQL.RDP.Loader extends %Library.RegisteredObject

Property Inventory

Method Inventory

Parameters

parameter JarDir = /dev/java/lib/1.8;
parameter ParquetJarFile = intersystems-loader;
parameter ParquetJavaClass = com.intersystems.loader.parquet.Loader;

Properties

property gateway as %External.JavaGateway;
Connection to a Java Gateway
Property methods: gatewayGet(), gatewayGetSwizzled(), gatewayIsValid(), gatewayNewObject(), gatewaySet()

Methods

method %OnClose() as %Status
Inherited description: This callback method is invoked automatically when the OREF goes out of scope and its reference count drops to zero.

The return value of this method is ignored.

method %OnNew(javaServer As %RawString = "") as %Status
Inherited description: This callback method is invoked by the %New() method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

classmethod CMGetMetadata(secretName As %String, fileUri As %String, Output metadata As %String) as %Status
Class method to get metadata
classmethod CMLoadData(loadRequests As %ListOfObjects) as %Status
Class method to load data
method Close() as %Status
Disconnect from the Java Gateway
method Connect(javaServer As %RawString = "") as %Status
Connect to a Java Gateway
method GetMetadata(secretName As %Library.String, fileUri As %Library.String) as %Library.String
Get Parquet file metadata as JSON string Parameters: secretName - Parquet secret name in the IRIS Wallet fileUri - Parquet file URI Returns: Metadata as JSON string The method is synchronous. It invokes the Java method to get the Parquet file metadata.
method LoadData(loadRequests As %ListOfObjects) as %Status
Load Parquet data into IRIS table Parameters: loadRequests - List of InterSystems.Parquet.LoadRequest objects Returns: Status The method is asynchronous. It invokes the Java method for each LoadRequest object in the list. The Java method starts a new thread to load the Parquet data into the specified IRIS table. When the load is complete, the specified callback method is invoked.

Inherited Members

Inherited Methods

FeedbackOpens in a new tab