| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
StringSource --+
|
ConsecutiveCharStringSource
A StringSource that specifies the source of strings whose characters have consecutive offsets. In particular, the following two properties must hold for all valid indices:
These properties allow the source to be stored using just a start offset and an end offset (along with a docid).
This StringSource can be used to describe byte strings
that are indexed using byte offsets or character offsets; or unicode
strings that are indexed using character offsets.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
offsets A list of offsets specifying the location of each character in the document. |
|||
|
|||
Create a new
In both cases, the arguments must be specified as keyword arguments (not positional arguments).
|
Return the length of the string described by this
|
Return a StringSource describing the location where the specified
substring was found. In particular, if
|
|
|
|
|||
offsetsA list of offsets specifying the location of each character in the document. Theith character of the string begins at offset
offsets[i] and ends at offset offsets[i+1].
The length of the offsets list is one greater than the list
of the string described by this StringSource.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 11 14:39:51 2011 | http://epydoc.sourceforge.net |