Sélection de la langue

Search

Sommaire du brevet 2253744 

Énoncé de désistement de responsabilité concernant l'information provenant de tiers

Une partie des informations de ce site Web a été fournie par des sources externes. Le gouvernement du Canada n'assume aucune responsabilité concernant la précision, l'actualité ou la fiabilité des informations fournies par les sources externes. Les utilisateurs qui désirent employer cette information devraient consulter directement la source des informations. Le contenu fourni par les sources externes n'est pas assujetti aux exigences sur les langues officielles, la protection des renseignements personnels et l'accessibilité.

Disponibilité de l'Abrégé et des Revendications

L'apparition de différences dans le texte et l'image des Revendications et de l'Abrégé dépend du moment auquel le document est publié. Les textes des Revendications et de l'Abrégé sont affichés :

  • lorsque la demande peut être examinée par le public;
  • lorsque le brevet est émis (délivrance).
(12) Brevet: (11) CA 2253744
(54) Titre français: BASES DE DONNEES A INDEXAGE PERMETTANT LES INTERROGATIONS RELATIONNELLES EFFICACES
(54) Titre anglais: INDEXING DATABASES FOR EFFICIENT RELATIONAL QUERYING
Statut: Durée expirée - au-delà du délai suivant l'octroi
Données bibliographiques
Abrégés

Abrégé français

Un système informatique pour l'indexation de bases de données pour exécuter des interrogations relationnelles efficaces. Un ensemble de fichiers d'index est créé pour indexer un ensemble global de données source structurées ou semi-structurées. Les données source sont sous forme de segments. Lors de la création des segments de données source, les données sources sont manipulées selon le modèle de base de données relationnelles. Les segments sont générés dans les fichiers d'index pour représenter le tableau et la colonne dans les données source pour suivre les segments de valeur. Les fichiers d'index sont créés pour mappage dans la position des données dans le fichier source et les fichiers d'index qui représentent les données triées de façon lexicographique. Les fichiers d'index comprennent un fichier vectoriel de tri et un fichier de bit associé. Le système fournit des interrogations relationnelles efficaces entre toutes les données source par l'utilisation du fichier vectoriel de tri, le fichier de bit associé et les dossiers inversés connexes.


Abrégé anglais

A computer system for indexing databases for efficient relational querying. A set of index files is created to index an entire set of structured or semi-structured source data. The source data is tokenized. During the tokenization of the source data the source data is manipulated in accordance with the relational data base model. Tokens are generated in the index files to represent the table and the column in the source data for following value tokens. Index files are created to map into the position of data in the source file, and index files which represent the data as sorted lexicographically. The index files include a sort vector file and an associated join bit file. The system provides for efficient relational queries across the entire source data by use of the sort vector file, the join bit file, and related inverted files.

Revendications

Note : Les revendications sont présentées dans la langue officielle dans laquelle elles ont été soumises.


THE EMBODIMENTS OF THE INVENTION IN WHICH AN EXCLUSIVE
PROPERTY OR PRIVILEGE IS CLAIMED ARE DEFINED AS FOLLOWS:
1. An indexing system for structured or semi-structured source data, the
source
data being capable of being represented by a relational data view, the source
data
comprising data subsets which in the relational view correspond to attributes
in one or
more tables, each table comprising columns and rows, the indexing system
comprising
a tokenizes for accepting the source data and generating data tokens in a
token
stream representing the source data,
the tokenizes comprising means for generating identifier tokens identifying
the
table and column of the relational view for the data subsets of the source
data,
the identifier tokens being inserted in the token stream to precede the data
tokens for the data subsets to which the identifier tokens correspond, and
an index builder for building indexes based on the token stream, the index
builder creating token stream indexes which comprise
a set of positional indexes for indicating the position of data tokens in
the source data,
a set of lexicographical indexes for indicating the lexicographical
ordering of all tokens, the set of lexicographical indexes comprising a
sort vector index and an associated join bit index, and
a set of data structures mapping between the lexicographical indexes
and the positional indexes, comprising a lexicographic permutation
data structure.
2. The indexing systems of claim 1 further comprising join operation means for
performing relational join operations on the source data, the join operation
means
comprising,
-18-

means for selecting a first join column and a second join column in the
relational view of the source data,
means for accessing the sort vector index entries for identifier tokens
corresponding to the first join column and for accessing the sort vector index
entries for identifier tokens corresponding to the second join column,
means for determining a relational join data set for the first join column and
the second join column, by accessing the sort vector index and the associated
join bit index and identifying the token values for each of the attributes in
the
first join table column which are matched by token values for attributes in
the
second join column,
means for accessing the source data by the positional indexes to retrieve the
set of rows in the tables of the first join column and the second join column
which correspond to the relational join data set.
3. The indexing system of claim 1 further comprising query operation means for
performing a relational constrained query operation for a column constant on
the
source data, the column constant having a column identifier and an attribute
value, the
query operation means comprising,
means for representing the column constant as a constant token stream
comprising an identifier token corresponding to the column constant column
identifier and data tokens corresponding to the column constant attribute
value,
means for accessing the sort vector index entries for identifier tokens
corresponding to the column identifier,
means for determining a query return data set by accessing the sort vector
index and the associated join bit index to identify token values in the sort
vector index which are matched by data token values in the constant column
token stream,
-19-

means for accessing the source data by the positional indexes to retrieve the
set of rows in the tables of the relational view of the source data which
correspond to the query return data set.
4. The indexing system of claim 1 in which the index builder further
comprises:
means for making a pass over the token stream to produce a temporary sort
vector index,
means for sorting the temporary sort vector file on a run by run basis to
produce an inverse lexicographic permutation index,
means for making a pass over the temporary sort vector index to generate the
sort vector index on a run by run basis by rearranging the entries within each
run in the temporary sort vector index according to the permutation, and
means for taking the sort vector index as input and following chains of
pointers within the sort vector index to resolve equality of attribute entries
to
generate the loin bit index.
5. A method for indexing structured or semi-structured source data, the source
data being capable of being represented by a relational data view, the source
data
comprising data subsets which in the relational view correspond to attributes
in one or
more tables, each table comprising columns and rows, the method of indexing
comprising
accepting the source data and generating data tokens in a token stream
representing the source data,
generating identifier tokens identifying the table and column of the
relational
view for the data subsets of the source data, the identifier tokens being
inserted
in the token stream to precede the data tokens for the data subsets to which
the
identifier tokens correspond, and
creating token stream indexes which comprise
-20-

a set of positional indexes for indicating the position of data tokens in
the source data,
a set of lexicographical indexes for indicating the lexicographical
ordering of all tokens, the set of lexicographical indexes comprising a
sort vector index and an associated join bit index, and
a set of data structures mapping between the lexicographical indexes
and the positional indexes, comprising a lexicographic permutation
data structure.
6. A computer program product tangibly embodying a program of instructions
executable by a computer to perform the method steps of claim 5.
7. The method of claim 5 in which the step of creating token stream indexes
further comprises:
making a pass over the token stream to produce a temporary sort vector index,
sorting the temporary sort vector file on a run by run basis to produce an
inverse lexicographic permutation index,
making a pass over the temporary sort vector index to generate the sort vector
index on a run by run basis by rearranging the entries within each run in the
temporary sort vector index according to the permutation, and
taking the sort vector index as input and following chains of pointers within
the sort vector index to resolve equality of attribute entries to generate the
join
bit index.
8. The method of claim 5 further comprising steps for carrying out a join
operation comprising:
selecting a first join column and a second join column in the relational view
of
the source data,
-21-

accessing the sort vector index entries for identifier tokens corresponding to
the first join column and accessing the sort vector index entries for
identifier
tokens corresponding to the second join column,
determining a relational join data set for the first join column and the
second
join column, by accessing the sort vector index and the associated join bit
index and identifying the token values for each of the attributes in the first
join
table column which are matched by token values for attributes in the second
join column, and
accessing the source data by the positional indexes to retrieve the set of
rows
in the tables of the first join column and the second join column which
correspond to the relational join data set.
9. The method of claim 5 further comprising the step of carrying out a
relational
constrained query operation for a column constant on the source data, the
column
constant having a column identifier and an attribute value, the query
operation
comprising the steps of:
representing the column constant as a constant token stream comprising an
identifier token corresponding to the column constant column identifier and
data tokens corresponding to the column constant attribute value,
accessing the sort vector index entries for identifier tokens corresponding to
the column identifier,
determining a query return data set by accessing the sort vector index and the
associated join bit index to identify token values in the sort vector index
which
are matched by data token values in the constant column token stream, and
accessing the source data by the positional indexes to retrieve the set of
rows
in the tables of the relational view of the source data which correspond to
the
query return data set.
-22-

10. A computer program product tangibly embodying a program of instructions
executable by a computer to perform the method steps of claim 7, 8, or 9.
11. An indexing system for structured or semi-structured source data, the
source
data being capable of being represented by a relational data view, the source
data
comprising data subsets which in the relational view correspond to attributes
in one or
more tables, each table comprising columns and rows, the indexing system
comprising
a tokenizer for accepting the source data and generating data tokens in a
token
stream representing the source data.
the tokenizer comprising means for generating identifier tokens identifying
the
table and column of the relational view for the data subsets of the source
data,
the identifier tokens being inserted in the token stream to be contiguous with
the data tokens for the data subsets to which the identifier tokens
correspond,
and
an index builder for building indexes based on the token stream, the index
builder creating token stream indexes which comprise
set of positional indexes for indicating the position of data tokens in
the source data,
a set of lexicographical indexes for indicating the lexicographical
ordering of all tokens in the token stream, and
a set of data structures mapping between the lexicographical indexes
and the positional indexes.
12. The indexing system of claim 11 in which the set of positional indexes
comprises an inverted file for mapping unique tokens in the token stream to
their
position in the source data, a word list strings file comprising a sorted list
of all unique
tokens in the token stream, a word list file for mapping each token from the
word list
-23-

strings file to the inverted file, each entry in the word list file comprising
a location in
the inverted file and a run length, and a keys file.
13. The indexing system of claim 11 in which the set of lexicographical
indexes
comprises a sort vector index and a join bit index.
14. The indexing system of claim 11 in which the set of data structures
mapping
between the lexicographical indexes and the positional indexes comprises a
lexicographic permutation data structure.
15. A computer-implemented method for the indexing of structured or semi-
structured source data, the source data being capable of being represented by
a
relational data view, the source data comprising data subsets which in the
relational
view correspond to attributes in one or more tables, each table comprising
columns
and rows, the method comprising
accepting the source data and generating data tokens in a token stream
representing the source data,
generating identifier tokens identifying the table and column of the
relational
view for the data subsets of the source data,
inserting the identifier tokens in the token stream to be contiguous with the
data tokens for the data subsets to which the identifier tokens correspond,
and
building indexes based on the token stream by creating token stream indexes
which comprise
a set of positional indexes for indicating the position of data tokens in
the source data,
a set of lexicographical indexes for indicating the lexicographical
ordering of all tokens in the token stream, and
a set of data structures mapping between the lexicographical indexes
and the positional indexes.
-24-

16. The method of claim 15 in which the set of positional indexes comprises an
inverted file for mapping unique tokens in the token stream to their position
in the
source data, a word list strings file comprising a sorted list of all unique
tokens in the
token stream, a word list file for mapping each token from the word list
strings file to
the inverted file, each entry in the word list file comprising a location in
the inverted
file and a run length, and a keys file.
17. The method of claim 15 in which the set of lexicographical indexes
comprises
a sort vector file and a join bit file.
18. The method of claim 15 in which the set of data structures mapping between
the lexicographical indexes and the positional indexes comprises a
lexicographic
permutation data structure.
19. A computer-implemented method for the indexing of structured or semi-
structured source data, the source data being capable of being represented by
a
relational data view, the source data comprising data subsets which in the
relational
view correspond to attributes in one or more tables, each table comprising
columns
and rows, the method comprising
accepting the source data and generating data tokens in a token stream
representing the source data,
generating identifier tokens identifying the table and column of the
relational
view for the data subsets of the source data,
inserting the identifier tokens in the token stream to be contiguous with the
data tokens for the data subsets to which the identifier tokens correspond,
and
building indexes based on the token stream by creating token stream indexes
which comprise
a set of positional indexes for indicating the position of data tokens in
the source data, they set of positional indexes comprising an inverted
file for mapping unique tokens in the token stream to their position in
-25-

the source data, a word list strings file comprising a sorted list of all
unique tokens in the token stream, a word list file for mapping each
token from the word list strings file to the inverted file, each entry in
the word list file comprising a location in the inverted file and a run
length, and a keys file
a set of lexicographical indexes for indicating the lexicographical
ordering of all tokens in the token stream, comprising a sort vector
index and a joint bit index, and
a set of data structures mapping between the lexicographical indexes
and the positional indexes comprising a lexicographic permutation data
structure,
the step of creating token stream indexes further comprising:
making a pass over the token stream to produce a temporary sort vector
index,
sorting the temporary sort vector file on a run by run basis to produce
an inverse lexicographic permutation index,
making a pass over the temporary sort vector index to generate the sort
vector index on a run by run basis by rearranging the entries within
each run in the temporary sort vector index according to the
permutation, and
taking the sort vector index as input and following chains of pointers
within the sort vector index to resolve equality of attribute entries to
generate the join bit index.
20. A computer program product tangibly embodying a program of instructions
executable by a computer to perform the method steps of claims 15, 16, 17, 18
or 19.
-26-

Description

Note : Les descriptions sont présentées dans la langue officielle dans laquelle elles ont été soumises.


CA 02253744 1998-11-10
r
INDEXING DATABASES FOR EFFICIENT RELATIONAL QUERYING
FIELD OF THE INVENTION
The present invention is directed to an improvement in relational database
systems
and in particular to the indexing of relational databases to permit efficient
relational
queries on databases.
BACKGROUND OF THE INVENTION
In relational database systems, it is important to create indexes on columns
of the
tables in the database. It is well-known that the efficiency of relational
operations
such as the JOIN operation or the evaluation of query constraints (SELECTION)
is
improved if the relevant columns of the table across which the operation take
place
are indexed.
There have been many approaches to the problem of efficiently creating indexes
for
relational database tables that support fast access, and that use limited
amounts of
storage. The B-tree and variations are well-known data structures used for
indexing
relational databases.
From the point of view of speeding query processing, it is desirable to have
available
indexes for all columns (and combinations) of all tables in a relational
database.
However, it is often not advantageous (or even feasible) to do so, since the
time
required to individually create the indexes, and the storage used by all the
indexes
after creation, is prohibitive.
It is therefore desirable to simultaneously create a large number of indices
on all the
tables of a database in an space and time efficient manner.
-1-

CA 02253744 1998-11-10
SUMMARY OF THE INVENTION
According to one aspect of the present invention, there is provided an
improved index
for relational databases.
According to a further aspect of the present invention, there is provided an
indexing
system for structured or semi-structured source data comprising a tokenizer
for
accepting source data and generating tokens representing the source data, the
tokens
from the tokenization representing the source data in a relational view, where
for
tokens representing a subset of the source data, the system generates tokens
identifying the table and column of the subset of the data in the relational
view of the
source data, and an index builder for building index structures based on the
tokens
generated by the tokenizer, the index builder creating indexes which comprise
a set of
positional indexes for indicating the position of token data in the source
data, a set of
lexicographical indexes for indicating the lexicographical ordering of all
tokens, the
set of lexicographical indexes comprising a sort vector index and a join bit
index,
associated with the sort vector index, a set of data structures mapping
between the
lexicographical indexes and the positional indexes, comprising a lexicographic
permutation data structure, the index builder creating a temporary sort vector
data
structure for generating the lexicographic permutation data structure and the
sort
vector index.
According to a further aspect of the present invention, there is provided a
method for
accessing the indexing system to carry out relational queries involving
comparisons of
data in the source data, the method comprising the steps of accessing the sort
vector
index for tokens corresponding to source data to be compared, determining, by
following the associated join bit index, whether the source data to be
compared, as
indexed in the sort vector index, matches, signalling whether the source data
matches
or does not match. According to a further aspect of the present invention, the
method
comprises the further step of utilizing the positional indexes to return
source data for
where a match is signalled.
-2-

CA 02253744 1998-11-10
According to a further aspect of the present invention, there is provided a
method for
indexing structured or semi-structured source data comprising the steps of
accepting
source data and generating tokens representing the source data, the tokens
from the
tokenization representing the source data in a relational view, where for
tokens
representing a subset of the source data, the system generates tokens
identifying the
table and column of the subset of the data in the relational view of the
source data, and
building index structures based on the tokens generated by the tokenizer, the
step of
building index structures further comprising the steps of building a set of
positional
indexes for indicating the position of token data in the source data, building
a set of
lexicographical indexes for indicating the lexicographical ordering of all
tokens, the
set of lexicographical indexes comprising a sort vector index and a join bit
index, and
building a set of data structures mapping between the lexicographical indexes
and the
positional indexes, comprising a lexicographic permutation data structure, the
sort
vector index and the lexicographic permutation data structure being built from
a
temporary sort vector data structure.
Advantages of the present invention include the provision of indexes for
columns of
tables in relational databases which require relatively small amounts of
storage, and
which are capable of being accessed efficiently. A further advantage relates
to
minimizing disk access to help process queries much faster than traditional
SQL
products.
BRIEF DESCRIPTION OF THE DRAWINGS
The preferred embodiment of the invention is shown in the drawings,
wherein:
Figure 1 is a block diagram illustrating the structure of the index generator
of the
preferred embodiment of the invention;
Figure 2 is a block diagram illustrating the structure of the query processor
of the
preferred embodiment of the invention;
-3-

CA 02253744 1998-11-10
Figure 3 is a schematic representation of the data structures for position-
ordering of
the data in the preferred embodiment; and
Figure 4 is a schematic representation of the data structures for
lexicographic-ordering
of the data in the preferred embodiment.
In the drawings, the preferred embodiment of the invention is illustrated by
way of
example. It is to be expressly understood that the description and drawings
are only
for the purpose of illustration and as an aid to understanding, and are not
intended as a
definition of the limits of the invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT
Figure 1 is a block diagram representing the architecture of the index
generator 10 of
the preferred embodiment of the invention. Figure 1 includes data sources 12,
which
are shown in the preferred embodiment as data sources accessed through a tuple
interface 14, an interface layer capable of providing tuples from relational
tables (such
as ODBC, JDBC, OLE-DB, etc.). The index generator of the invention is capable
of
handling any data presented through the tuple interface, and produces an index
16 (a
set of data structures described later) that is relatively small in size and
is capable of
being accessed to perform SQL operations. Both structured data sources (e.g.,
SQL
relational databases or other databases) and semi-structured data sources
(e.g., data
from application files such as word processing documents or spreadsheets, or
document repositories containing e-mail files, or SGML, HTML, XML tagged
files)
are supported. The index generator knows of the presence of one relational key
for
each table in each data sources that can be used to efficiently request
individual tuples
from the data sources.
The structure of the query processor 20 which makes use of the index 16, is
shown in
Figure 2. This figure shows query front-end 22 (an application program issuing
SQL
queries) that passes SQL queries to a SQL interface layer 24 (ODBC in the
preferred
embodiment) which sends the query to the query processor 20. The query
processor
-4-

CA 02253744 1998-11-10
20 uses the information in the index 16 to fully resolve the query by
obtaining the
keys of all the tuples that are part of the answer, using these keys to
request, through
the tuple interface 14, all the relevant tuples from the data sources 12. The
query
processor 20 assembles the data coming from the relevant tuples from the data
sources
into the answer table, which is then sent through the SQL interface 24 back to
the
requesting query front-end 22.
Where a query contains no conditions or joins, the query processor can pass
the query
directly to the data sources 12. Where a query requires no data from columns
of the
tuples in the data sources, such as a COUNT query, the query processor returns
the
answer to the query front-end without contacting the data sources.
Since the index generator 10 of Figure 1 and the query processor 20 of figure
2 both
rely on the standard API of the tuple interface 14, the actual layer of code
implementing the tuple interface can be changed from index generation to query
processing. Similarly, since the data sources 12 are accessed through the
tuple
interface layer, the actual data sources can be changed from index generation
to query
processing. If the data sources are changed, suitable copies of tuples from
the tables
that were indexed should be present in the changed data sources when they are
requested by the query processor.
The index generator system of the preferred embodiment converts a table from a
relational database into a token stream by requesting all the tuples of the
tables in the
data sources. An example table (Table R) is set out below in Example 1.
A B
Joe Smith abc cde
Sara Smith abc xyz
EXAMPLE 1
-5-

CA 02253744 1998-11-10
In creating the token stream, each value in the table is prefixed by a special
attribute
token identifying the table (in the example, table R) and column (either A or
B) that
the value comes from. The system maintains information about which tables
belong to
which data sources, along with further relevant information about the indexed
data
source schema in a relational catalog.
The values from the table are also broken up into tokens, usually on spaces
between
words. The table in Example I is represented by the relational token string of
Example 2 below, where each individual token appears underlined:
R.A Joe Smith R.B abc cde R.A Sara Smith R.B abc xyz
EXAMPLE 2
In the token string of Example 2, all values from the table are prefixed by a
special
attribute token that starts with the character "@" and identifies the table
("R") and the
column for the value that follows ("A" or "B").
The tokenization process of the index generator of the preferred embodiment is
based
on textual tokens. While tokens are directly generated when the values in the
relational table are text values, the tokenizer must translate numerical
values into a
representation that will maintain a correct numerical ordering of the
represented
numeric data when applying a textual ordering of the representation. The
method for
generating the numerical-data representations for the indexed data is not set
out here
but is known to those skilled in the art.
As is apparent from the above description, all columns of all tables in the
data sources
are tokenized in the preferred embodiment. The tokenization process can be
made
more efficient by processing several token streams in parallel. It is possible
to create
token streams which relates to only certain specified columns of certain
tables. Those
-6-

CA 02253744 1998-11-10
columns that are not indexed in accordance with the preferred embodiment will
not be
available to the query processor.
Index 16 in Figures 1 and 2 does contain a number of different data structures
which
collectively make up the final index represented in those figures. The
description
below centres on the functions carried out by the index generator 10, and in
particular
on the data structures which are created by the index generator 10.
The index of the preferred embodiment has several data structures that are
created by
the index generator. The data constructs of the preferred embodiment may be
loosely
grouped in two. First, those data structures which relate to the position of
the token
data (which provide information about where in the data source tuples are
found), and
second those data structures which are based on a lexicographic ordering of
the tokens
(which provide information to resolve comparisons of the source data).
Included in
the data structures provided are those that themselves carry out a mapping
between
position related data structures and the data structures that relate to
lexicographically
sorted tokens. This permits the index to locate tuples in the source data that
the index
identifies as matching a query constraint or subject to a join operation.
The data structures which relate to the position of the data are described
with
reference to Figure 3, in which file 30 represents the token stream (TS).
Those skilled
in the art will appreciate that the description of the data structures will be
applicable
for the entire token stream, or for a subset.
Figure 3 also includes file 32 representing the Word List Strings file (WLS).
File 34
represents the Word List file (WL), and file 36 the Inverted file (IVF).
Figure 3 also
includes a depiction of file 38 the Keys file (KS). Although Figure 3 shows
files, it
will be apparent to those skilled in the art that any appropriate data
structure may be
used to represent the data.
The WLS file 32 is a sorted list of all unique tokens in the token stream. The
WLS
structure is used most often in conjunction with the WL file 34 to point to
the runs
within other structures that contain information for the corresponding token.

CA 02253744 1998-11-10
The IVF file 36 maps the position of unique tokens into their original data
source. IVF
file 36 contains as many entries as the total number of tokens in the input
stream.
Each entry contains a link to a tuple within the data source. The information
that is
stored includes the tuple id 31, and the offset of the token within the tuple
33. The
tuple id points to the value of the keys that can be found in the KS file 38
(and hence
the keys values can be used to request the tuple form the data source). In the
example
in the figure it is assumed that column B is a suitable key for relation R.
The runs
corresponding to each token in the IVF file 36 are sorted alphabetically in
the token
stream, and within each run the entries are sorted in position order.
WL file 34 is used to map a token from WLS file 32 into IVF file 36. WL file
34
contains one entry for each unique token in the stream (same number of entries
as
WLS file 32). Each entry contains an offset into IVF file 36 and a run length.
The
offset indicates where the token run starts in IVF file 36, and the length
represents the
number of entries in IVF file 36 for that token.
The process of constructing the WL, WLS, IVF and KS files, that is carried out
by the
index generator of the preferred embodiment is known to those skilled in the
art.
Note that the WL also maps into the SV structure (described below), since IVF
file 36
and the SV have the same number of runs corresponding to the same unique
tokens.
The generation of the sort vector data structure is accomplished as described
below.
As will be apparent, the sort vector is created by first building a temporary
sort vector
data structure (.tsv file). This data structure is similar to the sort vector,
but the entries
are not sorted lexicographically. In other words, the temporary sort vector
contains
data which will permit the source data to be rebuilt, by following the self
referential
links in the temporary sort vector. The temporary sort vector does not,
however,
contain information which shows the relative lexicographical values of the
tokens in
the sort vector.
To generate the sort vector from the temporary sort vector, a lexicographical
sort is
performed on the entries in the temporary sort vector, and during the sort
process, a
permutation is created (this reflects the mapping of the entries in the
temporary sort
_g_

CA 02253744 1998-11-10
vector into the entries in the sort vector). The permutation data is stored in
a file
referred to as the lexicographic permutation file (.lp file).
The sort vector itself does not contain information about where in the source
data the
tokens in the sort vector are located. It is the .ivf file which maintains
this
information. However, the temporary sort file maps to the .ivf file and
therefore
maintaining the .lp file permits a token in the sort vector file to be found
in the source
data, by following the .lp link to the .ivf file. The location in the source
data is
directly read from the .ivf file.
It is combination of the sort vector, the . permutation file and the inverted
file which
permit data in the sort vector to be mapped to the source file.
Figure 4 represents the data structures which relate to the lexicographic sort
of the
token. Sort Vector (SV) file 50, Join Bit (JB) file 52, and Lexicographic
Permutation
(LP) file 54 are shown in Figure 4. The SV structure is used to reconstruct
the
ordering of the token stream. SV file 50 contains one entry for each token
(same
number of entries as IVF file 36). It is sorted lexicographically, which is a
different
ordering than IVF file 36 (although for the example in the figure the
orderings
coincide)
A lexicographic sort may be thought of as an alphanumeric sort of tokens where
tokens of identical value are arranged by considering the tokens which follow
the
identical value tokens in the token stream. The token stream of Example 3
(each
token consists of three characters) can be used to illustrate a lexicographic
sort:
Stream: abc xyz abc efg
Token #: 1 2 3 4
EXAMPLE 3
The lexicographical sorting by token number is: 3, l, 4, 2. Token 3 is first
since
when the token 'abc' is considered with the token stream which follows it
('efg'), the
-9-

CA 02253744 1998-11-10
token sorts before 'abc' when considered with its following token stream
('xyzabcefg'). In other words, 'abcefg' sorts before 'abcxyzabcefg'
Each entry in the SV file 50 (represented by the right column in SV file 50
shown in
Figure 4) is an index into SV file 50, itself. The entry in SV file 50 points
to the token
that follows that word. Each attribute chain of tokens is ended by an index to
the zero
entry, which is reserved for this purpose. By following the chain of entries
in SV file
50, each attribute value can be reconstructed by using the SV structure.
Example 4 shows the SV structure for a simple stream of single character
tokens.
Each SV entry is an index to the token following that word in the token
stream. For
example, the entry for the token 'd' is 1, meaning that the word in position 1
('a')
follows the 'd' in the token stream. Notice that the third entry is for the
last token 'b',
and its value is 0 indicating that 'b' ends the token stream.
-10-

CA 02253744 1998-11-10
Token Stream: a f b d a f b
Lexicographical order: 2 7 4 5 1 6 3
Token I Following tokens I SV structure
a fb 6
a fbdafb 7
b 0
b dafb 5
d afb 1
f b 3
f bdafb 4
Example 4
Figure 4 also shows JB table 52 which is related to the SV file 50 and may be
used to
perform SQL table joins. JB table 52 contains the same number of entries as SV
file
50. Each entry (the left column in JB table 52) is a pointer to the next
entry, or a null
pointer. This can be implemented simply by a single bit (0 or 1). Two adjacent
entries
in JB table 52 are the same value (i.e. either both 0 or both 1 ) if and only
if the token
that the two entries respectively correspond to have identical following
tokens in the
token strings representing the attributes in which the tokens are found. In
other
words, the lexicographic values of the two tokens (relative to their
respective
attributes) is identical. Recall that the SV chaining is stopped at the end of
each
-11-

CA 02253744 1998-11-10
attribute, so the comparison for setting the JB bits checks the attribute
values only.
Example 5 shows an example of a join bit table, shown as an additional column
added
to an SV file.
S V I Token I JB
bit
abc 1 this token resolves to 'abc cde'
6 abc 1 this token also resolves to 'abc
cde'
7 abc 0 this token resolves to 'abc xyz',
so the bit is
flipped
3 bj 1 single token chain, different:
bit is flipped
4 cde 0 this token resolves to 'cde',
from above
0 cde 0 this token also resolves to 'cde',
from above
2 xyz 1 token change: bit is flipped
5
EXAMPLE 5
There are two other data structures which are found in the preferred
embodiment and
which map between the SV file and the IVF file. The LP file 54 maps SV file 50
into
IVF file 36. The LP contains the same number of entries as IVF file 36 and SV
file 50.
Given an entry in SV file 50, the LP maps the token into IVF file 36, which
then
indicates the exact position of the word in the data source.
-12-

CA 02253744 1998-11-10
The second of these data structures is the Inverse Lexicographic Permutation
(LP 1 ),
not shown in the figure since in this particular example it coincides with the
LP. The
LP1 structure maps an IVF index into a SV entry (the inverse of the LP). The
LPl
contains the same number of entries as IVF file 36 and SV file 50. Given an
entry in
IVF file 36, the LP1 maps the token which that index represents into SV file
50.
The process of constructing the LP1, LP, SV and JB files, that is carried out
by the
index generator of the preferred embodiment is as follows. A pass is made over
the
token stream TS to produce a file, called the TSV, that like the SV file
points to the
next token in the sequence within the TSV structure itself, but that has
entries within
each run in position order (the same order as the IVF). In the example
presented in
Figures 3 and 4 the TSV coincides with the SV, so it is not shown in the
figures. Once
the TSV is produced, it is sorted run by run (following the chain of pointers
within the
TSV to resolve the lexicographic ordering) to produce the LP1 (the inverse of
which
is the LP). With the permutation LP1 as input it is possible to make a pass
over the
TSV and generate the SV on a run by run basis (by rearranging the entries
within each
run according to the permutation). Finally, the JB can be generated by taking
the SV
as input an following the chain of pointers within the SV to resolve equality
of
attribute entries.
The data structures described above, when utilized to generate an index for a
relational database, permit the data to be indexed in a memory-efficient
manner and
permit relational algebra, and in particular JOINs and constrained queries, to
be
carried out at high speed. The lexicographic sorting of the token streams for
attributes
and the use of the join bit indicator permits efficient attribute matching.
The
alphanumeric sorting of the token streams permits the efficient location of
tuples in
the data source which relate to attributes located in the lexicographically
sorted data.
More detailed descriptions of how constrained queries and JOINs may be
implemented on the data structures of the preferred embodiment are set out
below.
A method for performing a constant column comparison involves a query
constraint
of the form "where A.b = tl t2 ... tn". This represents a constant column
comparison
on column b of table A, where the value is equal to tl t2 ... tn. The sequence
of words
-13-

CA 02253744 1998-11-10
tl ... tn represents the tokenized value to compare against. An example
constant
column comparison is "select A.b from A where A.b = 'abc efg"'. The algorithm
for
processing queries of this form is as follows:
adjust the token stream to be "@A.b tl t2 ... tn"
set last range = (0,0)
fori=nto 1
find range = range of ti in SV
{computed from the WL structure}
reduce range to the set of indices which point into last range
[This step is done by two binary searches at the ends of range. A binary
search
works since the tokens are sorted lexicographically.]
if range is empty, then there are no matching rows
set last range = range
last range is the set of '@A.b' SV entries whose corresponding value is 'tl t2
... tn'.
For each SV entry in last range, it can be converted into an IVF index through
the LP
structure, which then yields the information to access the row from the data
source.
Turning now to a two-table join, a method is set out which accomplishes the
joining
of two tables A and B over columns x and y respectively. This represents the
selection of all row pairs from each table where the value in column in x is
the same
as column y. The table join to perform is of the form: where A.x = B.y
(columns x in
table A is the same value as column y in table B).
Due to the structure of the SV file data structure, the range of indices on
the SV file
corresponding to '@A.x' tokens will identify the values of the x column in
table A.
The SV file maintains a linked list of the tokens in each attribute. The
initial token
identifies the attribute ('@A.x'). The next token in the linked list of the SV
file will
be the first token in the attribute itself, and so forth until the 0 pointer
in the linked list
is reached (signifying the end of the tokens in that attribute). Because the
SV file
-14-

CA 02253744 1998-11-10
groups all identical tokens together, the @A.x tokens will all be located
contiguously.
Because the sort is lexicographical, the indices on the SV file (i.e. the
first pointers in
the linked list) will point to the first tokens in the @A.x column attributes,
and these
tokens will appear in order.
The range of indices in the SV corresponding to '@B.y' tokens will identify
the
values of the y column in table B.
Because the tokens corresponding to the '@A.x' and '@B.y' ranges are in sorted
order, since the SV structure is in lexicographical order, SV[Ai] < SV[Ai+1],
and
SV[Bi] < SV[Bi+1] for all i.
In the JB (join bit) structure, there is one bit (0 or 1) for each SV entry.
In addition,
JB [i] = JB [i + 1 ] if SV [i] and SV [i+1 ] correspond to the same token
chain for the
attribute (the SV entries stop at the end of each attribute). This means that
inspecting
the join bit for any first token of an attribute in the SV file will indicate
whether the
attribute as a whole is identical to the previous attribute. This is exactly
the
information which is important for the join operation. The identity of a first
attribute
to a second is therefore determined by locating the marker for the beginning
of the
attribute tokens in the SV file (for example '@A.x'), and following the linked
list of
the SV file to the value for the first token in a first attribute. The join
bit will then
indicate whether there are any other identical attributes in the database (if
the join bit
changes from the first token in the first attribute). If there are other
identical
attributes, they can be identified to see whether they are attributes which
are of
interest (for example, whether any @B.y tokens point to them, if attributes in
the B.y
column are being compared).
-15-

CA 02253744 1998-11-10
The general approach can be illustrated in Example 6, below:
Range of first
@A.x indices entries for A.x
A1, A2, ... An SV[A1]... SV[An]
1 1
sv ~ ~
T
@B.y indices Range of first
B1, B2, ... Bm entries for B.y
SV[B1]... SV[Bm]
EXAMPLE 6
A method to carry out the two table join on the databases of the preferred
embodiment
is set out below:
for i = 1 to n { A1, A2, ... An j
forj=ltom {B1,B2,...Bm}
jb_start = SV[i]
j bend = S V [j ]
exchange jb start and jb end if jb start > jb end
bit = JB[jb start]
join = TRUE
for k = jb start + 1 to jb end
if JB [k] ? bit
-16-

CA 02253744 1998-11-10
{ Ai and Bj do not join. Due to the lexicographical sorting, no other Bj can
join, so move to the next Ai }
join = FALSE
leave this for-loop
if join == FALSE
{ move to the next Ai }
leave this for-loop
else
{ SUCCESS! Ai and Bj do join. Mapping though the LP structure, it is
possible to convert SV[i] and SV[j] into tuple ids... record that SV[i] and
SV[j] join }
As can be seen from the method set out above, the use of the JB table permits
equality
of attribute values to be quickly determined. The structure of the SV file
permits
access to the appropriate JB table entries to be efficiently made. The result
is that the
JOIN operation can be carried out with little memory access and with great
speed.
Although a preferred embodiment of the present invention has been described
here in
detail, it will be appreciated by those skilled in the art, that variations
may be made
thereto, without departing from the spirit of the invention or the scope of
the appended
claims.
-17-

Dessin représentatif
Une figure unique qui représente un dessin illustrant l'invention.
États administratifs

2024-08-01 : Dans le cadre de la transition vers les Brevets de nouvelle génération (BNG), la base de données sur les brevets canadiens (BDBC) contient désormais un Historique d'événement plus détaillé, qui reproduit le Journal des événements de notre nouvelle solution interne.

Veuillez noter que les événements débutant par « Inactive : » se réfèrent à des événements qui ne sont plus utilisés dans notre nouvelle solution interne.

Pour une meilleure compréhension de l'état de la demande ou brevet qui figure sur cette page, la rubrique Mise en garde , et les descriptions de Brevet , Historique d'événement , Taxes périodiques et Historique des paiements devraient être consultées.

Historique d'événement

Description Date
Inactive : CIB désactivée 2021-10-09
Inactive : CIB en 1re position 2019-02-05
Inactive : CIB attribuée 2019-02-05
Inactive : CIB attribuée 2019-02-05
Inactive : CIB expirée 2019-01-01
Inactive : Périmé (brevet - nouvelle loi) 2018-11-10
Inactive : Lettre officielle 2018-02-14
Demande visant la révocation de la nomination d'un agent 2017-12-28
Lettre envoyée 2009-01-12
Lettre envoyée 2008-12-11
Inactive : Lettre officielle 2008-12-04
Inactive : Lettre officielle 2008-11-25
Inactive : Paiement - Taxe insuffisante 2008-11-24
Lettre envoyée 2008-11-24
Exigences de prorogation de délai pour compléter le paiement de la taxe applicable aux petites entités - jugée conforme 2008-11-20
Inactive : TME en retard traitée 2008-11-05
Lettre envoyée 2008-04-30
Déclaration du statut de petite entité jugée conforme 2008-01-10
Requête visant une déclaration du statut de petite entité reçue 2008-01-10
Déclaration du statut de petite entité jugée conforme 2008-01-10
Inactive : TME en retard traitée 2008-01-10
Lettre envoyée 2007-11-13
Lettre envoyée 2007-09-20
Lettre envoyée 2007-09-20
Accordé par délivrance 2004-08-24
Inactive : Page couverture publiée 2004-08-23
Préoctroi 2004-06-10
Inactive : Taxe finale reçue 2004-06-10
Un avis d'acceptation est envoyé 2003-12-31
Un avis d'acceptation est envoyé 2003-12-31
Lettre envoyée 2003-12-31
Inactive : Approuvée aux fins d'acceptation (AFA) 2003-11-05
Modification reçue - modification volontaire 2003-05-14
Inactive : Dem. de l'examinateur par.30(2) Règles 2002-11-15
Avancement de l'examen jugé conforme - alinéa 84(1)a) des Règles sur les brevets 2002-09-10
Lettre envoyée 2002-09-10
Lettre envoyée 2002-09-10
Toutes les exigences pour l'examen - jugée conforme 2002-09-03
Exigences pour une requête d'examen - jugée conforme 2002-09-03
Inactive : Taxe de devanc. d'examen (OS) traitée 2002-09-03
Inactive : Avancement d'examen (OS) 2002-09-03
Lettre envoyée 2001-11-26
Lettre envoyée 2001-11-26
Exigences de rétablissement - réputé conforme pour tous les motifs d'abandon 2001-11-05
Inactive : Rétablissement - Transfert 2001-11-05
Inactive : Renseign. sur l'état - Complets dès date d'ent. journ. 2001-03-26
Inactive : Abandon. - Aucune rép. à lettre officielle 2001-02-12
Demande publiée (accessible au public) 2000-05-10
Inactive : Page couverture publiée 2000-05-09
Exigences de prorogation de délai pour l'accomplissement d'un acte - jugée conforme 2000-03-08
Lettre envoyée 2000-03-08
Inactive : Prorogation de délai lié aux transferts 2000-02-14
Inactive : CIB attribuée 1999-01-15
Symbole de classement modifié 1999-01-15
Inactive : CIB en 1re position 1999-01-15
Inactive : Lettre de courtoisie - Preuve 1998-12-29
Inactive : Certificat de dépôt - Sans RE (Anglais) 1998-12-22
Exigences de dépôt - jugé conforme 1998-12-22
Demande reçue - nationale ordinaire 1998-12-22

Historique d'abandonnement

Il n'y a pas d'historique d'abandonnement

Taxes périodiques

Le dernier paiement a été reçu le 2003-11-07

Avis : Si le paiement en totalité n'a pas été reçu au plus tard à la date indiquée, une taxe supplémentaire peut être imposée, soit une des taxes suivantes :

  • taxe de rétablissement ;
  • taxe pour paiement en souffrance ; ou
  • taxe additionnelle pour le renversement d'une péremption réputée.

Veuillez vous référer à la page web des taxes sur les brevets de l'OPIC pour voir tous les montants actuels des taxes.

Titulaires au dossier

Les titulaires actuels et antérieures au dossier sont affichés en ordre alphabétique.

Titulaires actuels au dossier
PROGRESS SOFTWARE CORPORATION
Titulaires antérieures au dossier
MARIANO PAULO CONSENS
Les propriétaires antérieurs qui ne figurent pas dans la liste des « Propriétaires au dossier » apparaîtront dans d'autres documents au dossier.
Documents

Pour visionner les fichiers sélectionnés, entrer le code reCAPTCHA :



Pour visualiser une image, cliquer sur un lien dans la colonne description du document. Pour télécharger l'image (les images), cliquer l'une ou plusieurs cases à cocher dans la première colonne et ensuite cliquer sur le bouton "Télécharger sélection en format PDF (archive Zip)" ou le bouton "Télécharger sélection (en un fichier PDF fusionné)".

Liste des documents de brevet publiés et non publiés sur la BDBC .

Si vous avez des difficultés à accéder au contenu, veuillez communiquer avec le Centre de services à la clientèle au 1-866-997-1936, ou envoyer un courriel au Centre de service à la clientèle de l'OPIC.


Description du
Document 
Date
(aaaa-mm-jj) 
Nombre de pages   Taille de l'image (Ko) 
Dessin représentatif 2000-05-05 1 33
Revendications 2003-05-14 9 369
Dessins 2003-05-14 4 116
Page couverture 2000-05-05 1 62
Abrégé 1998-11-10 1 22
Description 1998-11-10 17 689
Revendications 1998-11-10 2 79
Dessins 1998-11-10 4 102
Dessin représentatif 2004-07-21 1 38
Page couverture 2004-07-21 1 69
Certificat de dépôt (anglais) 1998-12-22 1 163
Demande de preuve ou de transfert manquant 1999-11-12 1 110
Rappel de taxe de maintien due 2000-07-11 1 109
Courtoisie - Lettre d'abandon (lettre du bureau) 2001-03-19 1 169
Avis de retablissement 2001-11-26 1 173
Courtoisie - Certificat d'enregistrement (document(s) connexe(s)) 2001-11-26 1 113
Accusé de réception de la requête d'examen 2002-09-10 1 177
Avis du commissaire - Demande jugée acceptable 2003-12-31 1 160
Quittance d'un paiement en retard 2008-01-31 1 167
Courtoisie - Certificat d'enregistrement (document(s) connexe(s)) 2007-09-20 1 129
Courtoisie - Certificat d'enregistrement (document(s) connexe(s)) 2007-09-20 1 129
Avis concernant la taxe de maintien 2007-12-27 1 173
Courtoisie - Certificat d'enregistrement (document(s) connexe(s)) 2008-04-30 1 130
Quittance d'un paiement en retard 2008-11-24 1 165
Correspondance 1998-12-29 1 31
Correspondance 2000-02-14 1 44
Correspondance 2000-03-08 1 9
Correspondance 2001-11-05 2 116
Taxes 2003-11-07 1 34
Taxes 2000-11-09 1 35
Taxes 2001-11-05 1 37
Taxes 2002-09-03 1 37
Correspondance 2004-06-10 1 33
Taxes 2004-11-03 1 31
Taxes 2005-11-09 1 32
Correspondance 2008-01-10 3 78
Taxes 2008-01-10 3 78
Correspondance 2008-11-24 1 20
Correspondance 2008-11-25 1 21
Correspondance 2008-12-04 1 27
Correspondance 2008-12-11 1 13
Correspondance 2009-01-12 1 13
Taxes 2008-11-05 1 56
Taxes 2008-01-10 2 67
Correspondance 2008-11-05 1 58
Correspondance 2008-11-20 1 29
Correspondance 2008-12-18 2 54
Correspondance 2008-12-10 2 34
Taxes 2008-11-05 1 58
Correspondance 2008-12-17 1 26
Courtoisie - Lettre du bureau 2018-02-14 1 33