/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/sinks/ |
H A D | TokenTypeSinkFilter.java | 29 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 D | NumericPayloadTokenFilterTest.java | 38 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 D | TypeAsPayloadTokenFilterTest.java | 38 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 D | TokenTypeSinkTokenizerTest.java | 43 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 D | TestAttributeSource.java | 33 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 D | TestAttributeSource.java | 33 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 D | TestNumericTokenStream.java | 33 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 D | TestTypeTokenFilter.java | 70 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 D | TestNumericTokenStream.java | 33 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 D | ClassicFilter.java | 38 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:ClassicFilter 53 final String type = typeAtt.type();
|
H A D | ClassicTokenizer.java | 152 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 D | StandardFilter.java | 49 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:StandardFilter 67 final String type = typeAtt.type();
|
H A D | StandardTokenizer.java | 173 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 D | NumericPayloadTokenFilter.java | 39 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:NumericPayloadTokenFilter 51 if (typeAtt.type().equals(typeMatch))
|
H A D | TypeAsPayloadTokenFilter.java | 37 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 D | TestSnowball.java | 105 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 D | WordTokenFilter.java | 45 private final TypeAttribute typeAtt = addAttribute(TypeAttribute.class); field in class:WordTokenFilter 94 typeAtt.setType("word");
|
H A D | SentenceTokenizer.java | 49 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 D | BaseTokenStreamTestCase.java | 98 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 D | BufferedTokenStream.java | 78 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 D | NumericTokenStream.java | 225 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 D | SimpleQueryConverter.java | 49 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 D | TestMultiAnalyzer.java | 155 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 D | TestMultiAnalyzer.java | 155 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 D | CJKBigramFilter.java | 72 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);
|