Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A data returning method, receiving method, returning device and receiving device

A technology for returning devices and data, which is applied in the field of R language, can solve problems such as delayed client response time, and the R server program Rserve does not support the transmission of calculation results, etc., to achieve the effects of shortening the result response time, reducing access operations, and reducing complexity

Active Publication Date: 2018-03-13
深圳市华讯方舟光电技术有限公司 +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The purpose of the embodiment of the present invention is to provide a data return method, which aims to solve the problem that the R server program Rserve does not support real-time transmission of calculation results to the client, which seriously delays the response time of the client

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A data returning method, receiving method, returning device and receiving device
  • A data returning method, receiving method, returning device and receiving device
  • A data returning method, receiving method, returning device and receiving device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] figure 1 It is an implementation flowchart of the data return method provided by the embodiment of the present invention, and the details are as follows:

[0034] In step S101, in the R-based server program Rserve, an interface for sending data to the client is embedded;

[0035] Rserve has added an interface for sending data to the client, so that when the client sends a command sequence to the server or instructs the server to execute a script, it can call the interface at any position in the command sequence or script, so as to control the server in real time. Return the calculation result at a time.

[0036] In step S102, receive the command sequence or execute the script sent by the client;

[0037] In step S103, run the command sequence or execute the script to obtain the calculation result, and return the calculation result to the client in real time through the interface.

[0038] Step S103 is specifically:

[0039] When the calculation result is obtained by running the c...

Embodiment 2

[0043] The embodiment of the present invention describes the implementation process of the embedded interface for sending data to the client, and the details are as follows:

[0044] In the R-based server program Rserve, a service startup interface is added, and an interface for sending data to the client is embedded in the service startup interface.

Embodiment 3

[0046] The embodiment of the present invention describes the composition of the newly added data structure, which is detailed as follows:

[0047] Add a new data structure, the data structure includes execution ID, result type and result value;

[0048] The execution ID corresponds to a unique number;

[0049] The result type is any one of text, graphics, failure, and end;

[0050] The result value is any one of the string of the text result, the binary string of the graphic result, the string of the failure notification, and the string of the end notification;

[0051] The character string of the end notification is a null value.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A data return method, a receiving method, a return apparatus, and a reception apparatus. The data return method comprises: in an R server program Rserve, embedding an interface for sending data to a client; receiving a command sequence or an execution script sent by the client; and running the command sequence or the execution script to obtain a computation result, and returning the computation result to the client in real time through the interface. The present invention has the beneficial effects in the following two aspects: in one hand, an R server can transmit a result to a client in real time, and accordingly the result response time is effectively shortened; and in another aspect, the R server can reduce access operations for external storage medium and reduce the complexity of the result access, so that the result is actively pushed rather than being passively acquired, thereby achieving a higher efficiency.

Description

Technical field [0001] The present invention belongs to the technical field of R language, and particularly relates to a data return method, receiving method, return device and receiving device. Background technique [0002] R language is a programming language and environment for statistical computing. It was first developed by Ihaka and Gent Leman of the University of Auckland in New Zealand in 1996. As a language of statistics, R language has been shining in niche fields. Until the explosion of big data, the R language has become a hot data analysis tool. As more and more people with engineering background join, the R language community is rapidly expanding and growing. Now it is not only in the field of statistics, education, banking, e-commerce, and the Internet are all using the R language. The server using R language is referred to as R server, and the client using R language is referred to as R client. [0003] However, the existing R server program Rserve does not suppo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54
CPCG06F9/54
Inventor 万修远赵术开范丛明
Owner 深圳市华讯方舟光电技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products