Package org.apache.sysds.api
Class PythonDMLScript
java.lang.Object
org.apache.sysds.api.PythonDMLScript
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic py4j.GatewayServer -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidEntry point for Python API.voidstatic voidstatic voidsetDMLGateWayListenerLoggerLevel(org.apache.log4j.Level l) static voidvoidstartReadingColFromPipe(int id, FrameBlock fb, int rows, int totalBytes, int col, Types.ValueType type, boolean any) startReadingMbFromPipe(int id, int rlen, int clen, Types.ValueType type) startReadingMbFromPipes(int[] blockSizes, int rlen, int clen, Types.ValueType type) voidstartWritingColToPipe(int id, FrameBlock fb, int col) voidstartWritingMbToPipe(int id, MatrixBlock mb)
-
Field Details
-
GwS
public static py4j.GatewayServer GwS -
fromPython
-
toPython
-
baseDir
-
-
Method Details
-
main
Entry point for Python API.- Parameters:
args- Command line arguments.- Throws:
Exception- Throws exceptions if there is issues in startup or while running.
-
setDMLGateWayListenerLoggerLevel
public static void setDMLGateWayListenerLoggerLevel(org.apache.log4j.Level l) -
getConnection
-
openPipes
- Throws:
IOException
-
startReadingMbFromPipe
public MatrixBlock startReadingMbFromPipe(int id, int rlen, int clen, Types.ValueType type) throws IOException - Throws:
IOException
-
startReadingMbFromPipes
public MatrixBlock startReadingMbFromPipes(int[] blockSizes, int rlen, int clen, Types.ValueType type) throws ExecutionException, InterruptedException -
startWritingMbToPipe
- Throws:
IOException
-
startReadingColFromPipe
public void startReadingColFromPipe(int id, FrameBlock fb, int rows, int totalBytes, int col, Types.ValueType type, boolean any) throws IOException - Throws:
IOException
-
startWritingColToPipe
- Throws:
IOException
-
closePipes
- Throws:
IOException
-
setExitHandler
-
resetExitHandler
public static void resetExitHandler()
-