Esempio n. 1
0
PolyMatcher*
PolyMatcher_new(VArray *children, Similarity *sim) 
{
    PolyMatcher *self = (PolyMatcher*)VTable_Make_Obj(&POLYMATCHER);
    return PolyMatcher_init(self, children, sim);
}
Esempio n. 2
0
FSFileHandle*
FSFH_open(const CharBuf *path, uint32_t flags) {
    FSFileHandle *self = (FSFileHandle*)VTable_Make_Obj(FSFILEHANDLE);
    return FSFH_do_open(self, path, flags);
}
Esempio n. 3
0
Int64Type*
Int64Type_new() {
    Int64Type *self = (Int64Type*)VTable_Make_Obj(INT64TYPE);
    return Int64Type_init(self);
}
Esempio n. 4
0
SegReader*
SegReader_new(Schema *schema, Folder *folder, Snapshot *snapshot,
              VArray *segments, int32_t seg_tick) {
    SegReader *self = (SegReader*)VTable_Make_Obj(SEGREADER);
    return SegReader_init(self, schema, folder, snapshot, segments, seg_tick);
}
Esempio n. 5
0
PhraseQuery*
PhraseQuery_new(const CharBuf *field, VArray *terms)
{
    PhraseQuery *self = (PhraseQuery*)VTable_Make_Obj(&PHRASEQUERY);
    return PhraseQuery_init(self, field, terms);
}
Esempio n. 6
0
TestNOTQuery*
TestNOTQuery_new() {
    return (TestNOTQuery*)VTable_Make_Obj(TESTNOTQUERY);
}
Esempio n. 7
0
DocWriter*
DocWriter_new(Schema *schema, Snapshot *snapshot, Segment *segment,
              PolyReader *polyreader) {
    DocWriter *self = (DocWriter*)VTable_Make_Obj(DOCWRITER);
    return DocWriter_init(self, schema, snapshot, segment, polyreader);
}
Esempio n. 8
0
ORScorer*
ORScorer_new(VArray *children, Similarity *sim) {
    ORScorer *self = (ORScorer*)VTable_Make_Obj(ORSCORER);
    return ORScorer_init(self, children, sim);
}
Esempio n. 9
0
ORMatcher*
ORMatcher_new(VArray *children) {
    ORMatcher *self = (ORMatcher*)VTable_Make_Obj(ORMATCHER);
    return ORMatcher_init(self, children);
}
Esempio n. 10
0
SortCollector*
SortColl_new(Schema *schema, SortSpec *sort_spec, uint32_t wanted) {
    SortCollector *self = (SortCollector*)VTable_Make_Obj(SORTCOLLECTOR);
    return SortColl_init(self, schema, sort_spec, wanted);
}
Esempio n. 11
0
InStream*
InStream_open(Obj *file) {
    InStream *self = (InStream*)VTable_Make_Obj(INSTREAM);
    return InStream_do_open(self, file);
}
Esempio n. 12
0
TestAtomic*
TestAtomic_new() {
    return (TestAtomic*)VTable_Make_Obj(TESTATOMIC);
}
Esempio n. 13
0
MatchPosting*
MatchPost_new(Similarity *sim) {
    MatchPosting *self = (MatchPosting*)VTable_Make_Obj(MATCHPOSTING);
    return MatchPost_init(self, sim);
}
Esempio n. 14
0
MatchTermInfoStepper*
MatchTInfoStepper_new(Schema *schema) {
    MatchTermInfoStepper *self
        = (MatchTermInfoStepper*)VTable_Make_Obj(MATCHTERMINFOSTEPPER);
    return MatchTInfoStepper_init(self, schema);
}
Esempio n. 15
0
Hash*
Hash_new(uint32_t capacity) {
    Hash *self = (Hash*)VTable_Make_Obj(HASH);
    return Hash_init(self, capacity);
}
Esempio n. 16
0
QueryLexer*
QueryLexer_new() {
    QueryLexer *self = (QueryLexer*)VTable_Make_Obj(QUERYLEXER);
    return QueryLexer_init(self);
}
Esempio n. 17
0
SegWriter*
SegWriter_new(Schema *schema, Snapshot *snapshot, Segment *segment,
              PolyReader *polyreader) {
    SegWriter *self = (SegWriter*)VTable_Make_Obj(SEGWRITER);
    return SegWriter_init(self, schema, snapshot, segment, polyreader);
}
Esempio n. 18
0
TestLockFreeRegistry*
TestLFReg_new() {
    return (TestLockFreeRegistry*)VTable_Make_Obj(TESTLOCKFREEREGISTRY);
}
Esempio n. 19
0
CharBuf*
CB_new(size_t size) {
    CharBuf *self = (CharBuf*)VTable_Make_Obj(CHARBUF);
    return CB_init(self, size);
}
Esempio n. 20
0
HeatMap*
HeatMap_new(VArray *spans, uint32_t window)
{
    HeatMap *self = (HeatMap*)VTable_Make_Obj(HEATMAP);
    return HeatMap_init(self, spans, window);
}
Esempio n. 21
0
NoMatchQuery*
NoMatchQuery_new() {
    NoMatchQuery *self = (NoMatchQuery*)VTable_Make_Obj(NOMATCHQUERY);
    return NoMatchQuery_init(self);
}
Esempio n. 22
0
TestRegexTokenizer*
TestRegexTokenizer_new() {
    return (TestRegexTokenizer*)VTable_Make_Obj(TESTREGEXTOKENIZER);
}
Esempio n. 23
0
PhraseCompiler*
PhraseCompiler_new(PhraseQuery *parent, Searchable *searchable, float boost)
{
    PhraseCompiler *self = (PhraseCompiler*)VTable_Make_Obj(&PHRASECOMPILER);
    return PhraseCompiler_init(self, parent, searchable, boost);
}
Esempio n. 24
0
TestCharBuf*
TestCB_new(CharBuf *wanted, CharBuf *got)
{
    TestCharBuf *self = (TestCharBuf*)VTable_Make_Obj(&TESTCHARBUF);
    return TestCB_init(self, wanted, got);
}
Esempio n. 25
0
PolyReader*
PolyReader_open(Obj *index, Snapshot *snapshot, IndexManager *manager) {
    PolyReader *self = (PolyReader*)VTable_Make_Obj(POLYREADER);
    return PolyReader_do_open(self, index, snapshot, manager);
}
Esempio n. 26
0
Doc*
Doc_new(void *fields, i32_t doc_id)
{
    Doc *self = (Doc*)VTable_Make_Obj(&DOC);
    return Doc_init(self, fields, doc_id);
}
Esempio n. 27
0
Float32Type*
Float32Type_new() {
    Float32Type *self = (Float32Type*)VTable_Make_Obj(FLOAT32TYPE);
    return Float32Type_init(self);
}
Esempio n. 28
0
void
Hash_init_class() {
    TOMBSTONE = (HashTombStone*)VTable_Make_Obj(HASHTOMBSTONE);
}
Esempio n. 29
0
SortSpec*
SortSpec_new(VArray *rules) {
    SortSpec *self = (SortSpec*)VTable_Make_Obj(SORTSPEC);
    return SortSpec_init(self, rules);
}
Esempio n. 30
0
TestBatch*
TestBatch_new(int64_t num_tests) {
    TestBatch *self = (TestBatch*)VTable_Make_Obj(TESTBATCH);
    return TestBatch_init(self, num_tests);
}