CN109977033A - Store the method and device of telecom number - Google Patents
Store the method and device of telecom number Download PDFInfo
- Publication number
- CN109977033A CN109977033A CN201711461336.8A CN201711461336A CN109977033A CN 109977033 A CN109977033 A CN 109977033A CN 201711461336 A CN201711461336 A CN 201711461336A CN 109977033 A CN109977033 A CN 109977033A
- Authority
- CN
- China
- Prior art keywords
- tail
- storage address
- network equipment
- storage
- telecom
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000005611 electricity Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000000151 deposition Methods 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a kind of method and device for storing telecom number, is related to technical field of memory, can reduce the memory space of occupancy when storing telecom number, promote the runnability of the network equipment.This method comprises: the network equipment, by the telecom number number of being divided into head and number tail, a number first packet includes at least one numerical character, a number tail includes at least one numerical character;The network equipment stores head to the first storage address;The value for the numerical character that the network equipment includes according to number tail determines the second storage address;The network equipment is that bit identification is arranged in number tail, and the bit identification of number tail is stored to the memory space occupied to the second storage address, the memory space less than sign tail that bit identification occupies.
Description
Technical field
This application involves technical field of memory more particularly to a kind of method and devices for storing telecom number.
Background technique
Currently, being stored with telecom number in the network equipment, wherein usually deposit numerical character according to putting in order to be stored in
In reservoir, for example, when storage telecom number 15088886666, by numerical character ' 1 ', ' 5 ', ' 0 ', ' 8 ', ' 8 ', ' 8 ', ' 8 ',
' 6 ', ' 6 ', ' 6 ', ' 6 ' are sequentially stored in memory.
However above-mentioned storage mode is taken, when storing each telecom number, each numeric word of telecom number need to be stored
Symbol, when the more telecom number of network equipment storage quantity, can occupy a large amount of memory spaces of the network equipment, influence network and set
Standby runnability.
Summary of the invention
The application provides a kind of method and device for storing telecom number, can reduce telecommunications when storing telecom number
The memory space that number occupies, promotes the runnability of the network equipment.
In order to achieve the above objectives, the application adopts the following technical scheme that
In a first aspect, the application provides a kind of storage telecom number method, this method may include:
For the network equipment by the telecom number number of being divided into head and number tail, described first packet includes at least one numerical character, described
Number tail includes at least one numerical character;The network equipment stores described head to the first storage address;The network is set
The value of the standby numerical character for including according to number tail determines the second storage address;The network equipment is that position is arranged in described number tail
Mark, and the bit identification of described tail is stored to second storage address, the memory space that the bit identification occupies is less than
The memory space that described tail occupies.
Second aspect, the application provide a kind of device for storing telecom number, which includes: division module, storage mould
Block, determining module and setup module.
Wherein, division module, for by the telecom number number of being divided into head and number tail, described first packet to include at least one number
Character, described tail include at least one numerical character;Memory module, for storing described head to the first storage address;
The value of determining module, the numerical character for including according to number tail determines the second storage address;Setup module is used for as institute
Bit identification is arranged in the number of stating tail;The memory module is also used to store the bit identification of described tail to second storage address,
The memory space that the bit identification occupies is less than the memory space that described number tail occupies.
The third aspect, the application provide it is a kind of store telecom number device, the device include: processor, transceiver and
Memory.Wherein, memory is for storing one or more programs.The one or more program includes computer executed instructions,
When the device is running, processor execute the memory storage the computer executed instructions so that device execute first aspect and
In its various optional implementation it is one of any described in storage telecom number method.
Fourth aspect, the application provide a kind of computer readable storage medium, are stored in computer readable storage medium
Instruction, when device executes the instruction, the device execute in above-mentioned first aspect and its various optional implementations it is any it
The method of telecom number is stored described in one.
5th aspect, computer program product, including instruction, when computer program product is run on computers, make
Computer execute in above-mentioned first aspect and its various optional implementations it is one of any described in storage telecom number
Method.
Each numerical character with that in the prior art, need to store telecom number, occupies biggish memory space, leads to net
The runnability of network equipment is lower to be compared, and the storage method and device of telecom number provided by the present application divide telecom number
It stores for number head and number tail, a number head to the first storage address, then the value of basis tail numerical character obtains the second storage address,
And tail bit identification is stored to the second storage address, wherein what the memory space less than sign tail that number tail bit identification occupies occupied
Memory space.As it can be seen that the only number of being stored with head and number tail bit identification in the network equipment, multiple in entire tail without storing
Numerical character has saved the memory space of the network equipment, so that the runnability of the network equipment is promoted.
Detailed description of the invention
Fig. 1 is the flow diagram of the method for storage telecom number provided by the embodiments of the present application;
Fig. 2 is the flow diagram of the method for storage telecom number provided by the embodiments of the present application;
Fig. 3 is the illustrative diagram of storage telecom number provided by the embodiments of the present application;
Fig. 4 is the illustrative diagram of storage telecom number provided by the embodiments of the present application;
Fig. 5 is the flow diagram of the method for storage telecom number provided by the embodiments of the present application;
Fig. 6 is the illustrative diagram of storage telecom number provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram one of the device of storage telecom number provided by the embodiments of the present application;
Fig. 8 is the structural schematic diagram two of the device of storage telecom number provided by the embodiments of the present application.
Specific embodiment
Storage telecom number method and device provided by the embodiments of the present application is described in detail with reference to the accompanying drawing.
Term " first " and " second " in the description of the present application and attached drawing etc. be for distinguishing different objects, or
Person is used to distinguish the different disposal to same target, rather than is used for the particular order of description object.
In addition, the term " includes " being previously mentioned in the description of the present application and " having " and their any deformation, it is intended that
It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have
It is defined in listed step or unit, but optionally further comprising the step of other are not listed or unit, or optionally
It further include the other step or units intrinsic for these process, methods, product or equipment.
It should be noted that in the embodiment of the present application, " illustrative " or " such as " etc. words make example, example for indicating
Card or explanation.Be described as in the embodiment of the present application " illustrative " or " such as " any embodiment or design scheme do not answer
It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used
Such as " word is intended to that related notion is presented in specific ways.
In the description of the present application, unless otherwise indicated, the meaning of " plurality " is refer to two or more.
The embodiment of the present application provides a kind of storage telecom number method, as shown in Figure 1, this method may include S101-
S104:
S101, the network equipment are by the telecom number number of being divided into head and number tail, wherein a number first packet includes at least one numeric word
Symbol, a number tail includes at least one numerical character.
In general, the front three numerical character of telecom number is as network identification mark, for distinguishing different carrier networks,
Intermediate 4-digit number character is as area code, and for distinguishing differently city region, last 4-digit number character is as user number
Code, for distinguishing different users.As a kind of possible implementation, in S101 divide telecom number mode can be by
The first seven bit digital character number of being divided into head of telecom number, the rear 4-digit number character number of being divided into tail.For example, telecom number
15088886666, number head are 1,5,0,8,8,8,8 this 7 bit digital character, and number tail is 6,6,6,6 this 4 bit digital character.
Alternatively, the head that can further check the number is divided.It wherein, can be by the first seven as a kind of possible implementation
It is three network identification marks in bit digital character as a number first first part, four area codes are as number first second
Point.For example, being directed to telecom number 15088886666, in number head 1508888, number first first part is 150, number first second
Part is 8888.The quantity for the various pieces that number head is specifically divided can be set according to concrete application scene, this paragraph is only each
A citing in a implementation.
It is understood that the division mode of number head and number tail can be determined according to concrete application scene, for example, it is also possible to
By the top N numerical character number of the being divided into head of telecom number, remaining the numerical character number of being divided into tail, the embodiment of the present application is not right
This is limited.
S102, the network equipment store head to the first storage address.
Optionally, other numerical characters in number head other than the first bit digital character can be stored to the first storage
Address.
It is understood that the first bit digital character due to telecom number is 1, so, electric signal can not be stored
First bit digital character of code, to save memory space.
For example, when storing telecom number 15088886666, it is assumed that number head is 1,5,0,8,8,8,8 this 7 bit digital word
Symbol, then can only will be in the first memory space of 5,0,8,8,8,8 this 6 bit digital character number of being stored in.
Specifically, HASHMAP technology can be taken to determine the storage address of each numerical character.
Specifically, when executing storage operation, the corresponding HASHCODE method of call number character obtains numerical character
HASHCODE value, then, the storage address that the network equipment can determine numerical character according to the HASHCODE value.
The value for the numerical character that S103, the network equipment include according to number tail determines the second storage address.
Specifically, in the network equipment number of being previously stored with tail and the second storage address corresponding relationship, in turn, in rear afterflow
Cheng Zhong, the network equipment is by searching for corresponding second storage address of corresponding relationship determination tail.
For example, network equipment medium size tail and the corresponding relationship of the second storage address are as shown in table 1:
Table 1
Number tail | Second storage address |
6666 | 7777H |
6667 | 7778H |
6668 | 7779H |
Number tail of telecom number 15088886666 is 6666, then right according to shown in table 1 when storing the telecom number
The list that should be related to, corresponding second storage address of the network equipment number of finding tail 6666 are 7777H.
S104, the network equipment are that bit identification is arranged in number tail, and the bit identification of number tail is stored to the second storage address.Its
In, the memory space for the memory space less than sign tail occupancy that number tail bit identification occupies.
Optionally, bit identification can be set to the bit identification of 1bit.It can take the mode of BITSET that bit identification is set.Example
Such as, when storing telecom number 15088886666, first storage head 508888, is then stored in advance by the network equipment in S103
The corresponding second storage address 7777H of the corresponding relationship number of finding tail 6666, set 1 for the bit identification of number tail 6666, and
Bit identification 1 is stored in the second storage address.Since bit identification only only takes up 1bit memory space, which is less than
The memory space that number tail 6666 occupies, only stores bit identification, not the number of storage tail 6666, can reduce depositing for telecom number occupancy
Store up space.
It is worth noting that, can also take other modes that bit identification is arranged, wherein bit identification can be marked for N positions
Know.For example, setting bit identification to 3 target string a36.It is understood that the mode and position mark of setting bit identification
Knowing the memory space specifically occupied can determine that above-mentioned as just citing, the embodiment of the present application is simultaneously according to practical application scene
It is limited not to this.
Each numerical character with that in the prior art, need to store telecom number, occupies biggish memory space, leads to net
The runnability of network equipment is lower to be compared, and the storage method and device of telecom number provided by the present application divide telecom number
It stores for number head and number tail, a number head to the first storage address, then the value of basis tail numerical character obtains the second storage address,
And tail bit identification is stored to the second storage address, wherein what the memory space less than sign tail that number tail bit identification occupies occupied
Memory space.As it can be seen that the only number of being stored with head and number tail bit identification in the network equipment, multiple in entire tail without storing
Numerical character has saved the memory space of the network equipment, so that the runnability of the network equipment is promoted.
It should be noted that the memory space of number head and number tail is likely to different after division head and number tail, in order to
Complete telecom number is inquired, the first and number tail that need to check the number is associated, this is based on, as shown in Fig. 2, in the another of the embodiment of the present application
In a kind of implementation, after the value for the numerical character that S103, the network equipment include according to number tail determines the second storage address,
S201 can also be performed.
The corresponding relationship of S201, the network equipment creation the first storage address and the second storage address.
In the embodiment of the present application, after division head and number tail, head and a number tail bit identification can be stored in together
One memory space, i.e. number tail bit identification can be in next memory spaces of the first memory space of the number of being stored directly in.For example, to deposit
For storage signal code 15088886666 and 15088886667, a number head is 508888, and a number tail is respectively 6666 and 6667.Such as
Shown in a in Fig. 3, after 15088886666 number head 508888 is stored in the first storage address, by the bit identification of number tail
1 is stored in next storage address of the first storage address, i.e. the first storage address of the telecom number and the second storage ground
Location be it is adjacent, later, store second telecom number 15088886667, head 508888 be stored in the telecom number
The first storage address after, the bit identification 1 of number tail is stored in next storage address of the first storage address, i.e. the electricity
The first storage address and the second storage address of signal code are also adjacent.It is worth noting that, in this storage telecom number
Implementation in, due to corresponding first storage address of number head of a telecom number and bit identification it is corresponding second storage ground
Location is adjacent, so, it is not necessary to create the corresponding relationship of the first storage address and the second storage address.
As alternatively possible implementation, can the independent number of opening up first memory space and number tail memory space,
A memory space is warded off in number first opening for as whole telecom numbers, and number tail for whole telecom numbers opens up a memory space.
As shown in the b in Fig. 3, the first telecom number be 15088886666, by the number one head 508888 of the first telecom number store to
First storage address of the telecom number, it is then corresponding according to 6666 look-up table of number tail, the 1 medium size tail 6666 of the first telecom number
The second storage address, and tail bit identification 1 is stored to the second storage address, later, creates the first storage address and second
The corresponding relationship of storage address, as shown in b in Fig. 3, the relationship of the first storage address and the second storage address can be by first
The address pointer of storage address is directed toward the second storage address.To, in the first telecom number of subsequent query, the network equipment according to
The bit identification address that the address pointer of the number one head of first telecom number is directed toward can be associated with the position mark of the first telecom number
Know, to read complete first telecom number.Similarly, as shown in b in Fig. 3, the network equipment is with the second electricity of same principle association
The first storage address and the second storage address of signal code.
It further,, can be with after check mark head makes further division in conjunction with the mode of above-mentioned division head and number tail
A number first various pieces are individually stored.Illustratively, if head is divided into first part and second part, individually
The first first part of storage number and number first second part.For example, the first telecom number 15088886666, number one head are
The first part of 1508888, number one head are 150, and the second part of number one head is 8888, the second telecom number
15088886667, No. second head are 1508888, and No. second first first part is 150, and No. second first second part is
8888.As shown in c in Fig. 3, number one head first part 50 is stored in storage address 1, and number one head second part 8888 stores
In storage address 2, the bit identification 1 of number tail is stored in storage address 3, also, the storage address 1 of the first part of number one head
Address pointer is directed toward the storage address 2 of the second part of number one head, the address of the storage address 2 of the second part of number one head
Pointer is directed toward the storage address 3 of the first bit identification of number one tail.Likewise, No. second first first part 50 is stored in first
In next storage address of the first part of the number one head of telecom number, accordingly, the address of No. second first first part
Address pointer be directed toward the address of No. second first second part, No. second first second part is stored in number one head second part
In next storage address, accordingly, the address pointer of the address of No. second first second part is directed toward the of the second telecom number
No. two tail bit identifications, No. second tail bit identification are stored in next storage address of number one tail bit identification.
Optionally, on the basis of the scheme of above-mentioned storage telecom number, the part for repeating storage can also be gone
Repetitive operation.Wherein, when the first first part of the telecom number number of being divided into, number first second part and number tail, then being directed to has
The telecom number of identical number first first part only stores a number first first part.As shown in a in Fig. 4, when storage first
When telecom number 15088886666 and the second telecom number 15088886667, due to the first telecom number and the second telecom number
A number first first part be 150, so only store a number first first part 50 (not first of the number of storage tail), it
Afterwards, the second part and No. second first second part of number one head, and the storage address of number first first part 50 are stored
Address pointer be respectively directed to the second part 8888 and No. second first second part 8888 of number one head, later, storage the
The bit identification 1 of the bit identification 1 of No.1 tail and No. second tail, and by the address pointer of the storage address of the second part of number one head
It is directed toward the first bit identification of number one tail, the address pointer of the storage address of No. second first second part is directed toward No. second tail
The second bit identification.
Further, deduplication operates can also be carried out to the telecom number with same No. head, only stores one number
It is first.As shown in the b in Fig. 4, the having the same of telecom number 15088886666 and 15088886667 head 1508888 then exists
When storing the two telecom numbers, a number head 1508888 is only stored in the first storage address, then, stores number one
Tail bit identification 1 and No. second tail bit identification 1, and the address pointer of the first storage address is respectively directed to number one tail bit identification
Second storage address of the second storage address and No. second tail bit identification.
In addition, repetition can also be taken for the telecom number with same No. tail, as shown in c in Fig. 4, it is assumed that, in network
It has been stored with telecom number 15088886666 and 15088886667, later, when storing telecom number 15088896667,
First storage head 508889, then, according to corresponding second storage address of 6667 look-up table medium size tail of number tail 6667, through searching,
It has been stored with bit identification 1 in second storage address, has illustrated in the network equipment number of being stored with tail 6667, then without depositing again
Storage space mark, only the address pointer of the first storage address of 15088896667 medium size of number head to be stored need to be directed toward this second
Storage address.
In another implementation of the embodiment of the present application, the mode of inquiry telecom number is illustrated, such as Fig. 5
It is shown, the bit identification of number tail is stored to the second storage address in S104, the network equipment, S501 can also be performed extremely
S503。
S501, the network equipment read the value of the first storage address medium size head.
The network equipment can execute storage telecom number method for user terminal, network side management equipment or any other
Equipment.Below by taking the network equipment is user terminal as an example, to illustrate to inquire the mode of telecom number.
It is assumed that being stored with telecom number as shown in FIG. 6 in terminal, then terminal reads the number of the first memory space medium size head
Word character.
S502, the network equipment according to the corresponding relationship of the first storage address and the second storage address with determining the second storage
Location.
Such as Fig. 6, since the address pointer of the first storage address of number head 1508888 is respectively directed to three bit identification addresses,
That is the address of the number one tail bit identification of the first telecom number, the address of No. second tail bit identification of the second telecom number and third
The address of the third tail bit identification of telecom number, terminal can be addressed to number one tail bit identification address 7777H, second respectively
Number tail bit identification address 7778H and third tail bit identification address 7779H.
S503, the network equipment search corresponding number of the second storage address according to the corresponding relationship of the second storage address and number tail
The value of tail.
After finding above three tail bit identification address, due to number one tail bit identification address, No. second tail position
It is stored with the bit identification of preset kind in mark address, third tail bit identification address, then further searches for each bit identification
Corresponding tail.
In conjunction with table 1, terminal finds 6666, No. second tail bit identification 7778H of number one tail bit identification 7777H correspondence tail
Correspondence tail 6667, third tail bit identification 7779H correspondence tail 6668.
So far, the three numbers tails corresponding with this number head of the number of reading head 1508888, terminal read complete telecommunications to terminal
Number is 15088886666,15088886667 and 15088886668.
The embodiment of the present application can carry out functional module or function list to the above-mentioned network equipment according to above method example
The division of member, for example, each functional module of each function division or functional unit can be corresponded to, it can also be by two or two
Above function is integrated in a processing module.Above-mentioned integrated module both can take the form of hardware realization, can also be with
It is realized in the form of software function module or functional unit.Wherein, module or unit are drawn in the embodiment of the present application
It is schematical for dividing, and only a kind of logical function partition, there may be another division manner in actual implementation.
Fig. 7 shows a kind of possible structural schematic diagram of the network equipment involved in above-described embodiment.The network is set
Standby includes setup module 701, division module 702, memory module 703, read module 704, creation module 705, determining module 706
With searching module 707.
Wherein, division module 702, for by the telecom number number of being divided into head and number tail, a number first packet to include at least one number
Character, a number tail include at least one numerical character.
Memory module 703 is stored for number head after dividing division module 702 to the first storage address.
The value of determining module 706, the numerical character for including according to number tail after the division of division module 702 determines second
Storage address.
Wherein, the value for the numerical character that the number of being stored with tail includes in the network equipment and the corresponding relationship of the second storage address.
Determining module 706, the value of numerical character and the corresponding of the second storage address for including specifically for basis tail are closed
It is corresponding second storage address of determination tail.
Setup module 701, for bit identification to be arranged for number tail.
Memory module 703, number tail bit identification for being also used to for setup module 701 being arranged are stored to the second storage address, position
The memory space that the memory space less than sign tail that mark occupies occupies.
In another implementation provided by the embodiments of the present application,
Creation module 705, for creating the correspondence for the second storage address that the first storage address and determining module 706 determine
Relationship.
Read module 704, the value of the first storage address medium size head for reading the storage of memory module 703.
Determining module 706 is also used to determine that second deposits according to the corresponding relationship of the first storage address and the second storage address
Store up address.
The corresponding relationship of searching module 707, the second storage address and number tail for being determined according to determining module 706 is searched
The value of second storage address corresponding tail.
The device of storage telecom number provided by the embodiments of the present application, by the telecom number number of being divided into head and number tail, number head
It stores to the first storage address, then the value of basis tail numerical character obtains the second storage address, and tail bit identification is deposited
It stores up to the second storage address, wherein the memory space that the memory space less than sign tail that number tail bit identification occupies occupies.As it can be seen that net
Only the number of being stored with head and number tail bit identification are saved without storing multiple numerical characters in entire tail in network equipment
The memory space of the network equipment, so that the runnability of the network equipment is promoted.
Fig. 8 shows another possible structural schematic diagram of device involved in above-described embodiment.The device includes:
Processing unit 802 and communication unit 803.Processing unit 802 is for carrying out control management to the movement of device, for example, on executing
It states division module 702, memory module 703, determining module 706, setup module 701, creation module 705, read module 704 and looks into
The step of looking for module 707 to execute, and/or other processes for executing techniques described herein.Communication unit 803 is for branch
Hold the communication of device Yu other network entities.Device can also include storage unit 801 and bus 804, and storage unit 801 is used for
The program code and data of storage device.
Wherein, above-mentioned processing unit 802 can be processor or controller in device, and the processor or controller can be with
It realizes or executes and combine various illustrative logic blocks, module and circuit described in present disclosure.The processor
Or controller can be central processing unit, general processor, digital signal processor (Digital Signal Processing,
DSP), specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic, hardware
Component or any combination thereof.It, which may be implemented or executes, combines various illustrative logics described in present disclosure
Box, module and circuit.The processor is also possible to realize the combination of computing function, such as includes one or more micro processs
Device combination, DSP and the combination of microprocessor etc..
Communication unit 803 can be transceiver, transmission circuit or communication interface in device etc..
Storage unit 801 can be memory in device etc., which may include volatile memory, such as with
Machine accesses memory;The memory also may include nonvolatile memory, such as read-only memory, flash memory, hard disk
Or solid state hard disk;The memory can also include the combination of the memory of mentioned kind.
Bus 804 can be expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..Bus 804 can be divided into address bus, data/address bus, control bus etc..For convenient for table
Show, only indicated with a thick line in Fig. 8, it is not intended that an only bus or a type of bus.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description
It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can according to need and will be upper
It states function distribution to be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete
All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before can referring to
The corresponding process in embodiment of the method is stated, details are not described herein.
The embodiment of the present application also provides a kind of computer readable storage medium, and finger is stored in computer readable storage medium
It enables, when the network equipment executes the instruction, which executes network in method flow shown in above method embodiment and set
The standby each step executed.
Wherein, computer readable storage medium, such as electricity, magnetic, optical, electromagnetic, infrared ray can be but not limited to or partly led
System, device or the device of body, or any above combination.The more specific example of computer readable storage medium is (non-poor
The list of act) it include: the electrical connection with one or more conducting wires, portable computer diskette, hard disk, random access memory
(Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), erasable type may be programmed read-only
It is memory (Erasable Programmable Read Only Memory, EPROM), register, hard disk, optical fiber, portable
Compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), light storage device, magnetic memory
The computer readable storage medium of part or above-mentioned any appropriate combination or any other form well known in the art.
A kind of illustrative storage medium is coupled to processor, to enable a processor to from the read information, and can be to
Information is written in the storage medium.Certainly, storage medium is also possible to the component part of processor.Pocessor and storage media can be with
In application-specific IC (Application Specific Integrated Circuit, ASIC).In the application
In embodiment, computer readable storage medium can be any tangible medium for including or store program, which can be referred to
Enable execution system, device or device use or in connection.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Change or replacement within the technical scope of the present application should all be covered within the scope of protection of this application.Therefore, this Shen
Protection scope please should be subject to the protection scope in claims.
Claims (10)
1. a kind of method for storing telecom number, which is characterized in that the described method includes:
For the network equipment by the telecom number number of being divided into head and number tail, described first packet includes at least one numerical character, described tail
Including at least one numerical character;
The network equipment stores described head to the first storage address;
The value for the numerical character that the network equipment includes according to number tail determines the second storage address;
The network equipment is that bit identification is arranged in described number tail, and the bit identification of described tail is stored to second storage ground
Location, the memory space that the bit identification occupies are less than the memory space that described number tail occupies.
2. the method for storage telecom number according to claim 1, which is characterized in that the network equipment will number head
It stores to the first storage address and includes:
The network equipment stores other numerical characters in described head other than the first bit digital character to described
One storage address.
3. the method for storage telecom number according to claim 1, which is characterized in that stored in the network equipment
The corresponding relationship of the value for the numerical character that the number of stating tail includes and second storage address;
The value for the numerical character that the network equipment includes according to number tail determines that the second storage address includes:
The value for the numerical character that the network equipment includes according to number tail and the corresponding relationship of second storage address are true
Corresponding second storage address of the fixed number tail.
4. storing the method for telecom number shown according to claim 1, which is characterized in that in the network equipment according to
After the value for the numerical character that number tail includes determines the second storage address, the method also includes:
The network equipment creates the corresponding relationship of first storage address and second storage address.
5. the method for storage telecom number according to claim 4, which is characterized in that in the network equipment by described number
The bit identification of tail is stored to second storage address, the method also includes:
The network equipment reads the value of the first storage address medium size head;
The network equipment determines described second according to the corresponding relationship of first storage address and second storage address
Storage address;
The network equipment searches second storage address according to the corresponding relationship of second storage address and described tail
The value of corresponding tail.
6. a kind of device for storing telecom number, which is characterized in that described device includes:
Division module, for by the telecom number number of being divided into head and number tail, described first packet to include at least one numerical character, described
Number tail includes at least one numerical character;
Memory module, for storing described head to the first storage address;
The value of determining module, the numerical character for including according to number tail determines the second storage address;
Setup module, for bit identification to be arranged for described number tail;
The memory module is also used to store the bit identification of described tail to second storage address, and the bit identification accounts for
Memory space is less than the memory space that described number tail occupies.
7. the device of storage telecom number according to claim 6, which is characterized in that stored in the network equipment
The corresponding relationship of the value for the numerical character that the number of stating tail includes and second storage address;
The determining module is also used to the value for the numerical character for including according to number tail and the correspondence of second storage address
Relationship determines corresponding second storage address of number tail;
The memory module, be also used to store other numerical characters in described head other than the first bit digital character to
First storage address.
8. storing the device of telecom number according to shown in claim 6, which is characterized in that described device further include:
Creation module, for creating the corresponding relationship of first storage address and second storage address.
9. the device of storage telecom number according to claim 8, which is characterized in that described device further includes read module
And searching module;
The read module, for reading the value of the first storage address medium size head;
The determining module is also used to determine institute according to the corresponding relationship of first storage address and second storage address
State the second storage address;
The searching module, for searching second storage according to the corresponding relationship of second storage address and described tail
The value of address corresponding tail.
10. a kind of computer readable storage medium, which is characterized in that including instruction, when run on a computer, make to succeed in one's scheme
Calculation machine executes the method as described in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711461336.8A CN109977033A (en) | 2017-12-28 | 2017-12-28 | Store the method and device of telecom number |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711461336.8A CN109977033A (en) | 2017-12-28 | 2017-12-28 | Store the method and device of telecom number |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109977033A true CN109977033A (en) | 2019-07-05 |
Family
ID=67074883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711461336.8A Pending CN109977033A (en) | 2017-12-28 | 2017-12-28 | Store the method and device of telecom number |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109977033A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512740A (en) * | 2002-12-29 | 2004-07-14 | 华为技术有限公司 | Processing method for user's personal number |
CN101483841A (en) * | 2009-02-12 | 2009-07-15 | 北京九天盛信信息技术有限责任公司 | Method for fast retrieving telephone number related information |
CN103345469A (en) * | 2013-05-24 | 2013-10-09 | 联动优势科技有限公司 | Storing and inquiring method and device of number sets |
CN103744927A (en) * | 2013-12-27 | 2014-04-23 | 上海大汉三通通信股份有限公司 | Attribution information storage and obtaining method and device |
CN105427450A (en) * | 2015-11-10 | 2016-03-23 | 东方通信股份有限公司 | ATM counterfeit banknote identification system and method based on novel banknote serial number storage structure |
CN106681995A (en) * | 2015-11-05 | 2017-05-17 | 阿里巴巴集团控股有限公司 | Data caching method and data query method and device |
CN106777178A (en) * | 2016-12-22 | 2017-05-31 | 上海大汉三通无线通信有限公司 | The storage method and querying method of a kind of phone number |
-
2017
- 2017-12-28 CN CN201711461336.8A patent/CN109977033A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512740A (en) * | 2002-12-29 | 2004-07-14 | 华为技术有限公司 | Processing method for user's personal number |
CN101483841A (en) * | 2009-02-12 | 2009-07-15 | 北京九天盛信信息技术有限责任公司 | Method for fast retrieving telephone number related information |
CN103345469A (en) * | 2013-05-24 | 2013-10-09 | 联动优势科技有限公司 | Storing and inquiring method and device of number sets |
CN103744927A (en) * | 2013-12-27 | 2014-04-23 | 上海大汉三通通信股份有限公司 | Attribution information storage and obtaining method and device |
CN106681995A (en) * | 2015-11-05 | 2017-05-17 | 阿里巴巴集团控股有限公司 | Data caching method and data query method and device |
CN105427450A (en) * | 2015-11-10 | 2016-03-23 | 东方通信股份有限公司 | ATM counterfeit banknote identification system and method based on novel banknote serial number storage structure |
CN106777178A (en) * | 2016-12-22 | 2017-05-31 | 上海大汉三通无线通信有限公司 | The storage method and querying method of a kind of phone number |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255958B (en) | Data query method, device and storage medium | |
CN105159777B (en) | The method for recovering internal storage and device of process | |
CN103345469B (en) | The storage of set of numbers, querying method and device thereof | |
CN104933051B (en) | File storage recovery method and device | |
CN104516921A (en) | Automatic response method and device | |
CN101826107A (en) | Hash data processing method and device | |
CN102023843A (en) | Function calling method and device as well as smart card | |
CN107635078A (en) | Game control method and equipment | |
CN101986672B (en) | Message processing method and device | |
CN103019707A (en) | Call stack analyzing and processing method and device | |
CN109062936A (en) | A kind of data query method, computer readable storage medium and terminal device | |
CN108228449A (en) | Terminal equipment control method and device, terminal device and computer readable storage medium | |
CN105101171A (en) | Terminal network parameter configuration method, and terminal | |
CN107506310A (en) | A kind of address search, key word storing method and equipment | |
CN105389266B (en) | A kind of data managing method and device | |
CN109168137A (en) | The recognition methods of abnormal pull-off network and device | |
CN103905310B (en) | Message processing method and forwarding device | |
CN111813517A (en) | Task queue allocation method and device, computer equipment and medium | |
CN109446336A (en) | Method, apparatus, computer equipment and the storage medium of news screening | |
CN106528441B (en) | Data processing method and device for simulating EEPROM (electrically erasable programmable read-Only memory) and electronic equipment | |
CN106649210A (en) | Data conversion method and device | |
CN106170776A (en) | For using, there is the invalid bandwidth read in reduction cache memory and the method and apparatus of power | |
CN106354718B (en) | File management method and device of user identification module | |
CN109631897A (en) | Routing inspection guiding method and device and machine room management system | |
CN105574112A (en) | Comment information processing method and system of communication process |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190705 |
|
RJ01 | Rejection of invention patent application after publication |