#include "lcn_types.h"
#include "lcn_directory.h"
#include "lcn_term.h"
#include "lcn_document.h"
Go to the source code of this file.
Typedefs | |
typedef lcn_segment_t | lcn_segment_t |
An opaque structure representing a segment of a lucene index. | |
Functions | |
lcn_error_t * | lcn_segment_open (lcn_segment_t **segment, const lcn_char_t *segname, apr_uint32_t size, apr_uint32_t offset, const lcn_directory_t *d, apr_pool_t *pool) |
Open the segment segname, of size size containing documents starting at offset, within directory d and return it in segment, allocated from pool. | |
const lcn_char_t * | lcn_segment_name (const lcn_segment_t *segment) |
Return the name of segment. | |
apr_uint32_t | lcn_segment_size (const lcn_segment_t *segment) |
Return the size (in documents) of segment. | |
const lcn_directory_t * | lcn_segment_directory (const lcn_segment_t *segment) |
Return the directory segment is in. | |
lcn_error_t * | lcn_segment_term_docs (apr_uint32_t *doc_freq, apr_uint32_t **docs, apr_uint32_t **freqs, lcn_segment_t *segment, const lcn_term_t *term, apr_pool_t *pool) |
Return the document frquency doc_freq, document numbers docs, and the frequencies freqs of the documents within segment that contain term, using pool for allocation. | |
lcn_error_t * | lcn_segment_get_document (lcn_document_t **doc, lcn_segment_t *segment, apr_uint32_t docnum, apr_pool_t *pool) |
Return the document doc from segment that has the number docnum, allocated within pool. |
Definition in file lcn_segment.h.