Exemple #1
0
BlobType*
BlobType_init(BlobType *self, bool stored) {
    FType_init((FieldType*)self);
    BlobTypeIVARS *const ivars = BlobType_IVARS(self);
    ivars->stored = stored;
    return self;
}
Exemple #2
0
static FieldType*
S_alt_field_type() {
    StackString *name = SSTR_WRAP_UTF8("DummyFieldType2", 15);
    Class *klass = Class_singleton((String*)name, DUMMYFIELDTYPE);
    FieldType *self = (FieldType*)Class_Make_Obj(klass);
    return FType_init(self);
}
Exemple #3
0
NumericType*
NumType_init2(NumericType *self, float boost, bool_t indexed, bool_t stored,
              bool_t sortable) {
    FType_init((FieldType*)self);
    self->boost      = boost;
    self->indexed    = indexed;
    self->stored     = stored;
    self->sortable   = sortable;
    return self;
}
Exemple #4
0
StringType*
StringType_init2(StringType *self, float boost, bool indexed,
                 bool stored, bool sortable) {
    FType_init((FieldType*)self);
    StringTypeIVARS *const ivars = StringType_IVARS(self);
    ivars->boost      = boost;
    ivars->indexed    = indexed;
    ivars->stored     = stored;
    ivars->sortable   = sortable;
    return self;
}
Exemple #5
0
FullTextType*
FullTextType_init2(FullTextType *self, Analyzer *analyzer, float boost,
                   bool_t indexed, bool_t stored, bool_t sortable,
                   bool_t highlightable) {
    FType_init((FieldType*)self);

    /* Assign */
    self->boost         = boost;
    self->indexed       = indexed;
    self->stored        = stored;
    self->sortable      = sortable;
    self->highlightable = highlightable;
    self->analyzer      = (Analyzer*)INCREF(analyzer);

    return self;
}
Exemple #6
0
FullTextType*
FullTextType_init2(FullTextType *self, Analyzer *analyzer, float boost,
                   bool indexed, bool stored, bool sortable,
                   bool highlightable) {
    FType_init((FieldType*)self);
    FullTextTypeIVARS *const ivars = FullTextType_IVARS(self);

    /* Assign */
    ivars->boost         = boost;
    ivars->indexed       = indexed;
    ivars->stored        = stored;
    ivars->sortable      = sortable;
    ivars->highlightable = highlightable;
    ivars->analyzer      = (Analyzer*)INCREF(analyzer);

    return self;
}
Exemple #7
0
DummyFieldType*
DummyFieldType_new() {
    DummyFieldType *self = (DummyFieldType*)Class_Make_Obj(DUMMYFIELDTYPE);
    return (DummyFieldType*)FType_init((FieldType*)self);
}