Method SetExpectations
SetExpectations(String, Int32, Boolean, Boolean)
Tell the mapper what to expect in regards to field, number of terms, offset and position storage. This method will be called once before retrieving the vector for a field.
This method will be called before
Declaration
public abstract void SetExpectations(String field, int numTerms, bool storeOffsets, bool storePositions)
Parameters
Type | Name | Description |
---|---|---|
System.String | field | The field the vector is for |
System.Int32 | numTerms | The number of terms that need to be mapped |
System.Boolean | storeOffsets | true if the mapper should expect offset information |
System.Boolean | storePositions | true if the mapper should expect positions info |