Main Page | Data Structures | Directories | File List | Data Fields | Globals

lcn_frequencies.h

Go to the documentation of this file.
00001 /* Copyright 2005 The Apache Software Foundation or its licensors, as
00002  * applicable.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /**
00018  * @file lcn_frequencies.h
00019  * @brief routines for reading the frequencies data for a segment
00020  */
00021 
00022 #ifndef _LCN_FREQUENCIES_H
00023 #define _LCN_FREQUENCIES_H
00024 
00025 #include "lcn_types.h"
00026 #include "lcn_terminfos.h"
00027 #include "lcn_directory.h"
00028 
00029 #include <apr_pools.h>
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif /* __cplusplus */
00034 
00035 /** Opaque structure representing the frequencies file for a segment. */
00036 typedef struct lcn_frequencies_t lcn_frequencies_t;
00037 
00038 /** Return the @a freqs for segment @a s in directory @a d, allocated in
00039  * @a pool.
00040  */
00041 lcn_error_t *
00042 lcn_frequencies_open (lcn_frequencies_t **freqs,
00043                       const lcn_directory_t *d,
00044                       const lcn_char_t *s,
00045                       apr_pool_t *pool);
00046 
00047 /** Return the document numbers @a docs and frequencies @a freqs for all
00048  * documents that contain the term represented by @c lcn_terminfo_t @a ti
00049  * within @c lcn_frequencies_t @a f, allocated in @a pool.
00050  */
00051 lcn_error_t *
00052 lcn_frequencies_get_terminfo_data (apr_uint32_t **docs,
00053                                    apr_uint32_t **freqs,
00054                                    lcn_frequencies_t *f,
00055                                    const lcn_terminfo_t *ti,
00056                                    apr_pool_t *pool);
00057 
00058 #ifdef __cplusplus
00059 }
00060 #endif /* __cplusplus */
00061 
00062 #endif

Generated on Sat Mar 26 08:12:11 2005 for Lucene4c by  doxygen 1.4.0