Пример #1
0
 virtual bool incrementToken() {
     if (!first) {
         return false;
     }
     first = false;
     clearAttributes();
     termAtt->setTermBuffer(term);
     payloadAtt->setPayload(newLucene<Payload>(payload));
     return true;
 }
 virtual bool incrementToken()
 {
     if (i == TOKENS.size())
         return false;
     clearAttributes();
     termAtt->setTermBuffer(TOKENS[i]);
     offsetAtt->setOffset(i, i);
     posIncrAtt->setPositionIncrement(INCREMENTS[i]);
     ++i;
     return true;
 }