Class: Groonga::Procedure

Inherits:
Object
  • Object
show all
Defined in:
ext/groonga/rb-grn-procedure.c

Constant Summary

DELIMIT =
INT2NUM(GRN_DB_DELIMIT)
UNIGRAM =
INT2NUM(GRN_DB_UNIGRAM)
BIGRAM =
INT2NUM(GRN_DB_BIGRAM)
TRIGRAM =
INT2NUM(GRN_DB_TRIGRAM)
MECAB =
INT2NUM(GRN_DB_MECAB)

Instance Method Summary collapse

Methods inherited from Object

#==, #[], #[]=, #accessor?, #append, #builtin?, #close, #closed?, #column?, #dirty?, #domain, #function_procedure?, #id, #index_column?, #inspect, #key_accessor?, #last_modified, #name, #path, #persistent?, #prepend, #procedure?, #range, #reference_column?, #remove, #scorer_procedure?, #selector_only_procedure?, #selector_procedure?, #table?, #temporary?, #touch, #unlink, #window_function_procedure?

Instance Method Details

#typeObject



40
41
42
43
44
45
46
47
48
49
50
51
# File 'ext/groonga/rb-grn-procedure.c', line 40

static VALUE
rb_grn_procedure_get_type (VALUE self)
{
    grn_ctx *context;
    grn_obj *procedure;
    grn_proc_type type;

    procedure = RVAL2GRNOBJECT(self, &context);
    type = grn_proc_get_type(context, procedure);

    return INT2NUM(type);
}