예제 #1
0
func NewTermsEnumImpl(self TermsEnum) *TermsEnumImpl {
	return &TermsEnumImpl{self, util.NewAttributeSourceWith(tokenattributes.DEFAULT_ATTRIBUTE_FACTORY)}
}
예제 #2
0
/* A TokenStream using the default attribute factory. */
func NewTokenStream() *TokenStreamImpl {
	return &TokenStreamImpl{
		atts: util.NewAttributeSourceWith(DEFAULT_TOKEN_ATTRIBUTE_FACTORY),
	}
}