Searched refs:typeAtt (Results 1 - 25 of 45) sorted by relevance

12

/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/sinks/
H A DTokenTypeSinkFilter.java29 private TypeAttribute typeAtt; field in class:TokenTypeSinkFilter
37 if (typeAtt == null) {
38 typeAtt = source.addAttribute(TypeAttribute.class);
42 return (typeToMatch.equals(typeAtt.type()));
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/payloads/
H A DNumericPayloadTokenFilterTest.java38 TypeAttribute typeAtt = nptf.getAttribute(TypeAttribute.class);
44 assertTrue(typeAtt.type() + " is not equal to " + "D", typeAtt.type().equals("D") == true);
52 assertTrue(typeAtt.type() + " is not null and it should be", typeAtt.type().equals("word"));
60 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:NumericPayloadTokenFilterTest.WordTokenFilter
70 typeAtt.setType("D");
H A DTypeAsPayloadTokenFilterTest.java38 TypeAttribute typeAtt = nptf.getAttribute(TypeAttribute.class);
42 assertTrue(typeAtt.type() + " is not null and it should be", typeAtt.type().equals(String.valueOf(Character.toUpperCase(termAtt.buffer()[0]))));
45 assertTrue(type + " is not equal to " + typeAtt.type(), type.equals(typeAtt.type()) == true);
54 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:TypeAsPayloadTokenFilterTest.WordTokenFilter
63 typeAtt.setType(String.valueOf(Character.toUpperCase(termAtt.buffer()[0])));
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/sinks/
H A DTokenTypeSinkTokenizerTest.java43 TypeAttribute typeAtt = ttf.addAttribute(TypeAttribute.class);
48 assertTrue(typeAtt.type() + " is not equal to " + "D", typeAtt.type().equals("D") == true);
50 assertTrue(typeAtt.type() + " is not null and it should be", typeAtt.type().equals("word"));
66 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:TokenTypeSinkTokenizerTest.WordTokenFilter
77 typeAtt.setType("D");
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/
H A DTestAttributeSource.java33 TypeAttribute typeAtt = src.addAttribute(TypeAttribute.class);
35 typeAtt.setType("TestType");
42 typeAtt.setType("AnotherTestType");
47 assertEquals("TestType", typeAtt.type());
60 typeAtt = src2.addAttribute(TypeAttribute.class);
67 assertEquals("TestType", typeAtt.type());
84 final TypeAttribute typeAtt = src.addAttribute(TypeAttribute.class);
86 typeAtt.setType("TestType");
97 assertNotSame("TypeAttribute of original and clone must be different instances", typeAtt2, typeAtt);
99 assertEquals("TypeAttribute of original and clone must be equal", typeAtt2, typeAtt);
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/util/
H A DTestAttributeSource.java33 TypeAttribute typeAtt = src.addAttribute(TypeAttribute.class);
35 typeAtt.setType("TestType");
42 typeAtt.setType("AnotherTestType");
47 assertEquals("TestType", typeAtt.type());
60 typeAtt = src2.addAttribute(TypeAttribute.class);
67 assertEquals("TestType", typeAtt.type());
84 final TypeAttribute typeAtt = src.addAttribute(TypeAttribute.class);
86 typeAtt.setType("TestType");
97 assertNotSame("TypeAttribute of original and clone must be different instances", typeAtt2, typeAtt);
99 assertEquals("TypeAttribute of original and clone must be equal", typeAtt2, typeAtt);
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/
H A DTestNumericTokenStream.java33 final TypeAttribute typeAtt = stream.getAttribute(TypeAttribute.class);
37 assertEquals("Type correct", (shift == 0) ? NumericTokenStream.TOKEN_TYPE_FULL_PREC : NumericTokenStream.TOKEN_TYPE_LOWER_PREC, typeAtt.type());
46 final TypeAttribute typeAtt = stream.getAttribute(TypeAttribute.class);
50 assertEquals("Type correct", (shift == 0) ? NumericTokenStream.TOKEN_TYPE_FULL_PREC : NumericTokenStream.TOKEN_TYPE_LOWER_PREC, typeAtt.type());
H A DTestTypeTokenFilter.java70 TypeAttribute typeAtt = stpf.getAttribute(TypeAttribute.class);
76 log("Token: " + termAttribute.toString() + ": " + typeAtt.type() + " - " + posIncrAtt.getPositionIncrement());
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/analysis/
H A DTestNumericTokenStream.java33 final TypeAttribute typeAtt = stream.getAttribute(TypeAttribute.class);
37 assertEquals("Type correct", (shift == 0) ? NumericTokenStream.TOKEN_TYPE_FULL_PREC : NumericTokenStream.TOKEN_TYPE_LOWER_PREC, typeAtt.type());
46 final TypeAttribute typeAtt = stream.getAttribute(TypeAttribute.class);
50 assertEquals("Type correct", (shift == 0) ? NumericTokenStream.TOKEN_TYPE_FULL_PREC : NumericTokenStream.TOKEN_TYPE_LOWER_PREC, typeAtt.type());
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/standard/
H A DClassicFilter.java38 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:ClassicFilter
53 final String type = typeAtt.type();
H A DClassicTokenizer.java152 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:ClassicTokenizer
181 typeAtt.setType(ClassicTokenizer.TOKEN_TYPES[ClassicTokenizer.HOST]);
184 typeAtt.setType(ClassicTokenizer.TOKEN_TYPES[ClassicTokenizer.ACRONYM]);
187 typeAtt.setType(ClassicTokenizer.TOKEN_TYPES[tokenType]);
H A DStandardFilter.java49 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:StandardFilter
67 final String type = typeAtt.type();
H A DStandardTokenizer.java173 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:StandardTokenizer
202 typeAtt.setType(StandardTokenizer.TOKEN_TYPES[StandardTokenizer.HOST]);
205 typeAtt.setType(StandardTokenizer.TOKEN_TYPES[StandardTokenizer.ACRONYM]);
208 typeAtt.setType(StandardTokenizer.TOKEN_TYPES[tokenType]);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/payloads/
H A DNumericPayloadTokenFilter.java39 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:NumericPayloadTokenFilter
51 if (typeAtt.type().equals(typeMatch))
H A DTypeAsPayloadTokenFilter.java37 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:TypeAsPayloadTokenFilter
47 String type = typeAtt.type();
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/snowball/
H A DTestSnowball.java105 TypeAttribute typeAtt = filter.getAttribute(TypeAttribute.class);
115 assertEquals("wrd", typeAtt.type());
124 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:TestSnowball.TestTokenStream
138 typeAtt.setType("wrd");
/lucene-3.6.0/lucene/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/
H A DWordTokenFilter.java45 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:WordTokenFilter
94 typeAtt.setType("word");
H A DSentenceTokenizer.java49 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:SentenceTokenizer
108 typeAtt.setType("sentence");
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/analysis/
H A DBaseTokenStreamTestCase.java98 TypeAttribute typeAtt = null;
101 typeAtt = ts.getAttribute(TypeAttribute.class);
116 if (typeAtt != null) typeAtt.setType("bogusType");
129 assertEquals("type "+i, types[i], typeAtt.type());
273 TypeAttribute typeAtt = ts.hasAttribute(TypeAttribute.class) ? ts.getAttribute(TypeAttribute.class) : null;
282 if (typeAtt != null) types.add(typeAtt.type());
296 if (typeAtt != null && posIncAtt != null && offsetAtt != null) {
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/
H A DBufferedTokenStream.java78 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:BufferedTokenStream
156 token.setType(typeAtt.type());
169 typeAtt.setType(token.type());
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DNumericTokenStream.java225 typeAtt.setType((shift == 0) ? TOKEN_TYPE_FULL_PREC : TOKEN_TYPE_LOWER_PREC);
245 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:NumericTokenStream
/lucene-3.6.0/solr/core/src/test/org/apache/solr/spelling/
H A DSimpleQueryConverter.java49 TypeAttribute typeAtt = ts.addAttribute(TypeAttribute.class);
63 tok.setType(typeAtt.type());
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/queryParser/
H A DTestMultiAnalyzer.java155 private final TypeAttribute typeAtt; field in class:TestMultiAnalyzer.TestFilter
162 typeAtt = addAttribute(TypeAttribute.class);
170 typeAtt.setType(prevType);
179 prevType = typeAtt.type();
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/queryParser/
H A DTestMultiAnalyzer.java155 private final TypeAttribute typeAtt; field in class:TestMultiAnalyzer.TestFilter
162 typeAtt = addAttribute(TypeAttribute.class);
170 typeAtt.setType(prevType);
179 prevType = typeAtt.type();
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/cjk/
H A DCJKBigramFilter.java72 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:CJKBigramFilter
129 String type = typeAtt.type();
262 typeAtt.setType(DOUBLE_TYPE);
278 typeAtt.setType(SINGLE_TYPE);

Completed in 797 milliseconds

12