/
pgrn-groonga.h
78 lines (66 loc) · 2.27 KB
/
pgrn-groonga.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#pragma once
#include <postgres.h>
#include <utils/rel.h>
#include <groonga.h>
bool PGrnIsLZ4Available;
bool PGrnIsZlibAvailable;
bool PGrnIsZstdAvailable;
void PGrnInitializeGroongaInformation(void);
const char *PGrnInspect(grn_obj *object);
const char *PGrnInspectName(grn_obj *object);
int PGrnRCToPgErrorCode(grn_rc rc);
grn_bool PGrnCheck(const char *format,
...) GRN_ATTRIBUTE_PRINTF(1);
grn_obj *PGrnLookup(const char *name, int errorLevel);
grn_obj *PGrnLookupWithSize(const char *name,
size_t nameSize,
int errorLevel);
grn_obj *PGrnLookupColumn(grn_obj *table, const char *name, int errorLevel);
grn_obj *PGrnLookupColumnWithSize(grn_obj *table,
const char *name,
size_t nameSize,
int errorLevel);
grn_obj *PGrnLookupSourcesTable(Relation index, int errorLevel);
grn_obj *PGrnLookupSourcesCtidColumn(Relation index, int errorLevel);
grn_obj *PGrnLookupLexicon(Relation index,
unsigned int nthAttribute,
int errorLevel);
grn_obj *PGrnLookupIndexColumn(Relation index,
unsigned int nthAttribute,
int errorLevel);
grn_obj *PGrnCreateTable(Relation index,
const char *name,
grn_table_flags flags,
grn_obj *type,
grn_obj *tokenizer,
grn_obj *normalizer,
grn_obj *tokenFilters);
grn_obj *PGrnCreateTableWithSize(Relation index,
const char *name,
size_t nameSize,
grn_table_flags flags,
grn_obj *type,
grn_obj *tokenizer,
grn_obj *normalizer,
grn_obj *tokenFilters);
grn_obj *PGrnCreateColumn(Relation index,
grn_obj *table,
const char*name,
grn_column_flags flags,
grn_obj *type);
grn_obj *PGrnCreateColumnWithSize(Relation index,
grn_obj *table,
const char*name,
size_t nameSize,
grn_column_flags flags,
grn_obj *type);
void PGrnIndexColumnSetSource(Relation index,
grn_obj *indexColumn,
grn_obj *source);
void PGrnIndexColumnSetSourceIDs(Relation index,
grn_obj *indexColumn,
grn_obj *sourceIDs);
void PGrnRemoveObject(const char *name);
void PGrnRemoveObjectWithSize(const char *name, size_t nameSize);
void PGrnRemoveColumns(grn_obj *table);
void PGrnFlushObject(grn_obj *object, bool recursive);