CN103699699A - Method for browsing decoded ticket file - Google Patents

Method for browsing decoded ticket file Download PDF

Info

Publication number
CN103699699A
CN103699699A CN201410020836.8A CN201410020836A CN103699699A CN 103699699 A CN103699699 A CN 103699699A CN 201410020836 A CN201410020836 A CN 201410020836A CN 103699699 A CN103699699 A CN 103699699A
Authority
CN
China
Prior art keywords
ticket
client
page
file
decoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410020836.8A
Other languages
Chinese (zh)
Other versions
CN103699699B (en
Inventor
李晓芳
彭建华
庄燕滨
肖贤建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiashan Linhu Xincheng Industrial Co.,Ltd.
Original Assignee
Changzhou Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changzhou Institute of Technology filed Critical Changzhou Institute of Technology
Priority to CN201410020836.8A priority Critical patent/CN103699699B/en
Publication of CN103699699A publication Critical patent/CN103699699A/en
Application granted granted Critical
Publication of CN103699699B publication Critical patent/CN103699699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for browsing a decoded ticket file. The method comprises the steps as follows: a client transmits a ticket file list to be decoded to a server according to a communication protocol format of the client and the server; the server analyzes a decoding request of the client, obtains a decoding file list and a decoding inquiry condition, transfers a ticket decoding library to decode the requested ticket file, and stores the decoding result into a temporary file of the server; the server returns the ticket of the decoding result to the client for the first time; the client receives the first returned decoding result, calculates to-be-displayed total page number of the decoded ticket and displays the ticket of the first page; meanwhile, the server builds an index for the temporary file of the decoding result according to the ticket quantity displayed in each page by the client when the server returns the first page of information to the client. The geometric improvement of the system performance is achieved under the condition of building the index through a separating request of the client and the temporary file of the decoding result, and browsing multiple ticket files.

Description

A kind of decoding CDR file method of browsing
Technical field
The present invention relates to Computers and Communication field, particularly a kind of decoding CDR file method of browsing.
Background technology
In communication charge system, analyze and check charge information, need to decode to CDR file, the decoded file content of original bill files is the more than 8 times of former ticket, data traffic in simultaneous communication system is large, Yi Ge prefecture-level city is in the busy stage of communication, the CDR file that system hour produces reaches tens G bytes, after the CDR file decoding of hour, will reach hundreds of G byte, the ticket information of decoded this hundreds of G byte, service end is directly passed to client, client is carried out loaded and displayed, will there will be following two serious problems:
1. the time that service end transmits decoded result to client is very long, and the network bandwidth is taken greatly;
2. client loads very long, the so large data volume of ticket time of decoded result, causes, in client loading procedure, directly dying;
Based on above reason, general solution is that service end is carried out cutting decoding file, then result is sent to client in batches, client is separated loading to decoded result, although this scheme has solved client and has loaded the problem that decoded result is died, but performance is very low, cause in the CDR inquiry function of large ticket and big data quantity substantially unavailable.
Summary of the invention
For problems of the prior art, the object of the invention is to propose a kind of client and separate that request, service end are set up index to decoded result and paging transmits decoded result to client according to client demand, can solve the difficult problem that charge system is browsed large file and browsed large-data documents, charge system is when checking the CDR file of big data quantity simultaneously, also there is very high performance, the decoding CDR file method of browsing that system stability is high.
In order to achieve the above object, the present invention by the following technical solutions: a kind of decoding CDR file method of browsing, step comprises:
1) the client condition of CDR file of need to decoding, and condition is organized into syllable sequence according to protocol format, and sending inquiry request command to service end, CDR inquiry request protocol form is binary sequence, condition by two bytes of 0x070x07 separately, performs step 2 afterwards);
2) service end receives inquiry request, request command is decoded, obtain inquiry request condition, then according to the time conditions in inquiry request, select the CDR file of the time that meets, file is decoded, obtain ticket, the condition of user that client arrives input, when ticket meets the condition of inquiry request, writes temporary file ticket by row, perform step afterwards 3), otherwise directly perform step 3);
3) when decoding finishes, perform step 4), otherwise execution step 2);
4) temporary file is set up to index, service end reads every page of configuration that shows ticket number of client, obtains every page of value N that shows ticket number of client, set up the mapping buffer area CacheM of ticket position CDRPos in page number sequence number PageIndex temporary file corresponding to the page number, CDR file is read in advance, to the CDR file line number Row reading and N delivery, when the value of mould is 0, set up the map example of position CDRPos in a page number sequence number PageIndex and ticket place file, this example is put in CacheM, page number sequence number PageIndex adds 1 simultaneously, by this mode reading in advance, ticket decoded result temporary file is set up to index by page, perform step afterwards 5), otherwise directly perform step 5),
5) after phone bill decoding result temporary file is set up index and is completed by page, to client query request, return to Query Result, the protocol format returning results is: the ticket of every page of demonstration of the total line number CDRTotalRows0x070x07 of ticket is counted PageCDRRows0x070x07 one page ticket writing data, client calculates by CDRTotalRows or PageCDRRows the client that current inquiry request obtains and shows the total page number that ticket needs, at client initialization Pagination Display interface and show perform step afterwards 6 by first page ticket);
6) user clicks in client needs to show after the page number that ticket is corresponding, and the message that client transmission comprises page number information is to the call bill data of this page of service end request, and request protocol form is: the command code 0x070x07 page number number; Service end is received solicited message, the analysis request data acquisition page number number, by the page number number, from CacheM region of memory, obtain the mapping of the Data Position of this page CDR file corresponding to the page number in temporary file, by mapping, obtain the physical location IndexPos of this page of CDR file in temporary file, service end process is opened temporary file, move position is to IndexPos, read PageCDRRows jargon forms data, the data that read are turned back to client, and client is resolved the call bill data getting and is shown.
Adopt after technique scheme, the present invention has following beneficial effect: separately request of client of the present invention, service end are set up index and according to client demand paging, to client, transmitted the method for decoded result decoded result, not only solved the difficult problem that charge system is browsed large file and browsed large-data documents, charge system is when checking the CDR file of big data quantity simultaneously, also have very high performance, and system stability is high.
Accompanying drawing explanation
Fig. 1 phone bill decoding is set up index and paging query process flow diagram.
Embodiment
According to Figure of description and specific embodiment, the present invention is further explained below.
As shown in Figure 1, a kind of decoding CDR file method of browsing, step comprises:
1) the client condition of CDR file of need to decoding, and condition is organized into syllable sequence according to protocol format, and sending inquiry request command to service end, CDR inquiry request protocol form is binary sequence, condition by two bytes of 0x070x07 separately, performs step 2 afterwards);
2) service end receives inquiry request, request command is decoded, decoded result writes in the temporary file of service end, every ticket is write a line, temporary file to decoded result is set up index, obtain inquiry request condition, then according to the time conditions in inquiry request, select the CDR file of the time that meets, file is decoded, obtain ticket, the condition of user's input that client arrives, when ticket meets the condition of inquiry request, ticket is write to temporary file by row, performs step afterwards 3), otherwise directly perform step 3);
3) when decoding finishes, perform step 4), otherwise execution step 2);
4) temporary file is set up to index, service end reads every page of configuration that shows ticket number of client, obtains every page of value N that shows ticket number of client, decoded result has M bar ticket, every page of demonstration N bar ticket of client, and index segment records number and is: X=M/N, service end internal memory is set up a mapping relations Map sequence of preserving position in index segment and every page of ticket place temporary file, in every page of ticket place temporary file, position account form is: by row, read temporary file, record reads the singly position in temporary file of every jargon, set up the mapping buffer area CacheM of ticket position CDRPos in page number sequence number PageIndex temporary file corresponding to the page number, CDR file is read in advance, to the CDR file line number Row reading and N delivery, when the value of mould is 0, set up the map example of position CDRPos in a page number sequence number PageIndex and ticket place file, this example is put in CacheM, page number sequence number PageIndex adds 1 simultaneously, by this mode reading in advance, ticket decoded result temporary file is set up to index by page, perform step afterwards 5), otherwise directly perform step 5),
5) after phone bill decoding result temporary file is set up index and is completed by page, to client query request, return to Query Result, the protocol format returning results is: the ticket of every page of demonstration of the total line number CDRTotalRows0x070x07 of ticket is counted PageCDRRows0x070x07 one page ticket writing data, client calculates by CDRTotalRows or PageCDRRows the client that current inquiry request obtains and shows the total page number that ticket needs, at client initialization Pagination Display interface and show perform step afterwards 6 by first page ticket);
6) user clicks in client needs to show after the page number that ticket is corresponding, and the message that client transmission comprises page number information is to the call bill data of this page of service end request, and request protocol form is: the command code 0x070x07 page number number; Service end is received solicited message, the analysis request data acquisition page number number, by the page number number, from CacheM region of memory, obtain the mapping of the Data Position of this page CDR file corresponding to the page number in temporary file, by mapping, obtain the physical location IndexPos of this page of CDR file in temporary file, service end process is opened temporary file, move position is to IndexPos, read PageCDRRows jargon forms data, the data that read are turned back to client, and client is resolved the call bill data getting and is shown.

Claims (1)

1. browse a decoding CDR file method, it is characterized in that step comprises:
1) the client condition of CDR file of need to decoding, and condition is organized into syllable sequence according to protocol format, and sending inquiry request command to service end, CDR inquiry request protocol form is binary sequence, condition by two bytes of 0x070x07 separately, performs step 2 afterwards);
2) service end receives inquiry request, request command is decoded, obtain inquiry request condition, then according to the time conditions in inquiry request, select the CDR file of the time that meets, file is decoded, obtain ticket, the condition of user that client arrives input, when ticket meets the condition of inquiry request, writes temporary file ticket by row, perform step afterwards 3), otherwise directly perform step 3);
3) when decoding finishes, perform step 4), otherwise execution step 2);
4) temporary file is set up to index, service end reads every page of configuration that shows ticket number of client, obtains every page of value N that shows ticket number of client, set up the mapping buffer area CacheM of ticket position CDRPos in page number sequence number PageIndex temporary file corresponding to the page number, CDR file is read in advance, to the CDR file line number Row reading and N delivery, when the value of mould is 0, set up the map example of position CDRPos in a page number sequence number PageIndex and ticket place file, this example is put in CacheM, page number sequence number PageIndex adds 1 simultaneously, by this mode reading in advance, ticket decoded result temporary file is set up to index by page, perform step afterwards 5), otherwise directly perform step 5),
5) after phone bill decoding result temporary file is set up index and is completed by page, to client query request, return to Query Result, the protocol format returning results is: the ticket of every page of demonstration of the total line number CDRTotalRows0x070x07 of ticket is counted PageCDRRows0x070x07 one page ticket writing data, client calculates by CDRTotalRows or PageCDRRows the client that current inquiry request obtains and shows the total page number that ticket needs, at client initialization Pagination Display interface and show perform step afterwards 6 by first page ticket);
6) user clicks in client needs to show after the page number that ticket is corresponding, and the message that client transmission comprises page number information is to the call bill data of this page of service end request, and request protocol form is: the command code 0x070x07 page number number; Service end is received solicited message, the analysis request data acquisition page number number, by the page number number, from CacheM region of memory, obtain the mapping of the Data Position of this page CDR file corresponding to the page number in temporary file, by mapping, obtain the physical location IndexPos of this page of CDR file in temporary file, service end process is opened temporary file, move position is to IndexPos, read PageCDRRows jargon forms data, the data that read are turned back to client, and client is resolved the call bill data getting and is shown.
CN201410020836.8A 2014-01-16 2014-01-16 One browses decoding CDR file method Active CN103699699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410020836.8A CN103699699B (en) 2014-01-16 2014-01-16 One browses decoding CDR file method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410020836.8A CN103699699B (en) 2014-01-16 2014-01-16 One browses decoding CDR file method

Publications (2)

Publication Number Publication Date
CN103699699A true CN103699699A (en) 2014-04-02
CN103699699B CN103699699B (en) 2016-09-28

Family

ID=50361227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410020836.8A Active CN103699699B (en) 2014-01-16 2014-01-16 One browses decoding CDR file method

Country Status (1)

Country Link
CN (1) CN103699699B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357453A (en) * 2015-11-24 2016-02-24 长春乙天科技有限公司 Communication group sending and group receiving control method based on multi-detector imaging camera
CN105843958A (en) * 2016-04-15 2016-08-10 北京思特奇信息技术股份有限公司 Cache-based server paging method and system
CN110245114A (en) * 2019-06-24 2019-09-17 北京润科通用技术有限公司 A kind of data processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6167402A (en) * 1998-04-27 2000-12-26 Sun Microsystems, Inc. High performance message store
US6192376B1 (en) * 1998-11-13 2001-02-20 International Business Machines Corporation Method and apparatus for shadowing a hierarchical file system index structure to enable error recovery
CN101996194B (en) * 2009-08-14 2012-08-29 北京大学 On-line browsing method and system of electronic file

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357453A (en) * 2015-11-24 2016-02-24 长春乙天科技有限公司 Communication group sending and group receiving control method based on multi-detector imaging camera
CN105843958A (en) * 2016-04-15 2016-08-10 北京思特奇信息技术股份有限公司 Cache-based server paging method and system
CN110245114A (en) * 2019-06-24 2019-09-17 北京润科通用技术有限公司 A kind of data processing method and device

Also Published As

Publication number Publication date
CN103699699B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN109947668B (en) Method and device for storing data
WO2018036272A1 (en) News content pushing method, electronic device, and computer readable storage medium
CN109960629B (en) Method and device for monitoring service volume of payment system in real time
US20120254118A1 (en) Recovery of tenant data across tenant moves
CN102497424A (en) Method for achieving cloud storage through mobile storage device
WO2014173151A1 (en) Method, device and terminal for data processing
CN103699557A (en) Report processing method and report processing system
CN103345696A (en) Display method, device and mobile terminal of pushing information
WO2015000259A1 (en) Method and apparatus for establishing huge character library, and character display method and apparatus
CN103699699A (en) Method for browsing decoded ticket file
CN102541891A (en) Browser error reporting method and browser error reporting device based on interceptor
CN107784085B (en) Data list exporting method and terminal thereof
CN104978325B (en) A kind of web page processing method, device and user terminal
WO2021189766A1 (en) Data visualization method and related device
CN116680315A (en) Data offline processing method and device, electronic equipment and storage medium
CN106909596B (en) Service processing method, device and system
CN103123651A (en) Method of rapidly searching multiple same-kind paper, device and mobile equipment
CN111008865A (en) Coupon synchronous display method and device, server and storage medium
CN114398520A (en) Data retrieval method, system, device, electronic equipment and storage medium
CN109299051A (en) A kind of performance data files management method and relevant apparatus
CN102624913A (en) Data pushing method, and terminal device and server employing same
US10108929B2 (en) Systems and methods for generating a report from stream data
CN104394518A (en) Short message sending method and short message platform
CN101419618B (en) In-text information displaying method and apparatus
CN109614592B (en) Text processing method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201223

Address after: Room 204, No. 158, Yaozhuang Avenue, Yaozhuang Town, Jiashan County, Jiaxing City, Zhejiang Province

Patentee after: Jiashan Linhu Xincheng Industrial Co.,Ltd.

Address before: 213022 Wushan Road, Xinbei District, Changzhou, Jiangsu Province, No. 1

Patentee before: CHANGZHOU INSTITUTE OF TECHNOLOGY

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20140402

Assignee: Jiashan County Yaozhuang Business Management Co.,Ltd.

Assignor: Jiashan Linhu Xincheng Industrial Co.,Ltd.

Contract record no.: X2023330000545

Denomination of invention: A Method for Browsing and Decoding Call Order Files

Granted publication date: 20160928

License type: Common License

Record date: 20230822