/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/payloads/ |
H A D | NumericPayloadTokenFilterTest.java | 39 PayloadAttribute payloadAtt = nptf.getAttribute(PayloadAttribute.class); 45 assertTrue("payloadAtt.getPayload() is null and it shouldn't be", payloadAtt.getPayload() != null); 46 byte [] bytes = payloadAtt.getPayload().getData();//safe here to just use the bytes, otherwise we should use offset, length 47 assertTrue(bytes.length + " does not equal: " + payloadAtt.getPayload().length(), bytes.length == payloadAtt.getPayload().length()); 48 assertTrue(payloadAtt.getPayload().getOffset() + " does not equal: " + 0, payloadAtt.getPayload().getOffset() == 0);
|
H A D | TypeAsPayloadTokenFilterTest.java | 39 PayloadAttribute payloadAtt = nptf.getAttribute(PayloadAttribute.class); 43 assertTrue("nextToken.getPayload() is null and it shouldn't be", payloadAtt.getPayload() != null); 44 String type = new String(payloadAtt.getPayload().getData(), "UTF-8");
|
H A D | TokenOffsetPayloadTokenFilterTest.java | 35 PayloadAttribute payloadAtt = nptf.getAttribute(PayloadAttribute.class); 39 Payload pay = payloadAtt.getPayload();
|
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/analysis/ |
H A D | MockFixedLengthPayloadFilter.java | 30 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:MockFixedLengthPayloadFilter 46 payloadAtt.setPayload(payload);
|
H A D | MockVariableLengthPayloadFilter.java | 32 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:MockVariableLengthPayloadFilter 48 payloadAtt.setPayload(payload);
|
H A D | CannedTokenStream.java | 36 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:CannedTokenStream 53 payloadAtt.setPayload(token.getPayload());
|
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/analysis/ |
H A D | MockFixedLengthPayloadFilter.java | 27 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:MockFixedLengthPayloadFilter 43 payloadAtt.setPayload(payload);
|
H A D | MockVariableLengthPayloadFilter.java | 29 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:MockVariableLengthPayloadFilter 45 payloadAtt.setPayload(payload);
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/payloads/ |
H A D | NumericPayloadTokenFilter.java | 38 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:NumericPayloadTokenFilter 52 payloadAtt.setPayload(thePayload);
|
H A D | TypeAsPayloadTokenFilter.java | 36 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:TypeAsPayloadTokenFilter 49 payloadAtt.setPayload(new Payload(type.getBytes("UTF-8")));
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/payloads/ |
H A D | PayloadHelper.java | 71 private final PayloadAttribute payloadAtt; field in class:PayloadHelper.PayloadFilter 76 payloadAtt = addAttribute(PayloadAttribute.class); 84 payloadAtt.setPayload(new Payload(payloadField)); 87 payloadAtt.setPayload(new Payload(payloadMultiField1)); 90 payloadAtt.setPayload(new Payload(payloadMultiField2));
|
H A D | TestPayloadTermQuery.java | 78 private final PayloadAttribute payloadAtt; field in class:TestPayloadTermQuery.PayloadFilter 83 payloadAtt = addAttribute(PayloadAttribute.class); 91 payloadAtt.setPayload(new Payload(payloadField)); 94 payloadAtt.setPayload(new Payload(payloadMultiField1)); 96 payloadAtt.setPayload(new Payload(payloadMultiField2));
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/payloads/ |
H A D | PayloadHelper.java | 71 private final PayloadAttribute payloadAtt; field in class:PayloadHelper.PayloadFilter 76 payloadAtt = addAttribute(PayloadAttribute.class); 84 payloadAtt.setPayload(new Payload(payloadField)); 87 payloadAtt.setPayload(new Payload(payloadMultiField1)); 90 payloadAtt.setPayload(new Payload(payloadMultiField2));
|
H A D | TestPayloadTermQuery.java | 78 private final PayloadAttribute payloadAtt; field in class:TestPayloadTermQuery.PayloadFilter 83 payloadAtt = addAttribute(PayloadAttribute.class); 91 payloadAtt.setPayload(new Payload(payloadField)); 94 payloadAtt.setPayload(new Payload(payloadMultiField1)); 96 payloadAtt.setPayload(new Payload(payloadMultiField2));
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/snowball/ |
H A D | TestSnowball.java | 106 PayloadAttribute payloadAtt = filter.getAttribute(PayloadAttribute.class); 118 assertEquals(new Payload(new byte[]{0,1,2,3}), payloadAtt.getPayload()); 125 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:TestSnowball.TestTokenStream 140 payloadAtt.setPayload(new Payload(new byte[]{0,1,2,3}));
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/ |
H A D | TestAnalyzers.java | 81 PayloadAttribute payloadAtt = ts.getAttribute(PayloadAttribute.class); 87 assertEquals(b, payloadAtt.getPayload().toByteArray()[0]); 241 PayloadAttribute payloadAtt; field in class:PayloadSetter 244 payloadAtt = addAttribute(PayloadAttribute.class); 254 payloadAtt.setPayload(p); // reuse the payload / byte[]
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/analysis/ |
H A D | TestAnalyzers.java | 81 PayloadAttribute payloadAtt = ts.getAttribute(PayloadAttribute.class); 87 assertEquals(b, payloadAtt.getPayload().toByteArray()[0]); 234 PayloadAttribute payloadAtt; field in class:PayloadSetter 237 payloadAtt = addAttribute(PayloadAttribute.class); 247 payloadAtt.setPayload(p); // reuse the payload / byte[]
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/ |
H A D | TestMultiLevelSkipList.java | 106 PayloadAttribute payloadAtt; field in class:TestMultiLevelSkipList.PayloadFilter 110 payloadAtt = addAttribute(PayloadAttribute.class); 117 payloadAtt.setPayload(new Payload(new byte[] { (byte) count++ }));
|
H A D | TestPayloads.java | 444 PayloadAttribute payloadAtt; field in class:TestPayloads.PayloadFilter 452 payloadAtt = addAttribute(PayloadAttribute.class); 461 payloadAtt.setPayload(p); 465 payloadAtt.setPayload(null); 541 PayloadAttribute payloadAtt; field in class:TestPayloads.PoolingPayloadTokenStream 553 payloadAtt = addAttribute(PayloadAttribute.class); 563 payloadAtt.setPayload(new Payload(payload));
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/ |
H A D | BufferedTokenStream.java | 80 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:BufferedTokenStream 159 token.setPayload(payloadAtt.getPayload()); 172 payloadAtt.setPayload(token.getPayload());
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/ |
H A D | TestMultiLevelSkipList.java | 106 PayloadAttribute payloadAtt; field in class:TestMultiLevelSkipList.PayloadFilter 110 payloadAtt = addAttribute(PayloadAttribute.class); 117 payloadAtt.setPayload(new Payload(new byte[] { (byte) count++ }));
|
H A D | TestPayloads.java | 444 PayloadAttribute payloadAtt; field in class:TestPayloads.PayloadFilter 452 payloadAtt = addAttribute(PayloadAttribute.class); 461 payloadAtt.setPayload(p); 465 payloadAtt.setPayload(null); 541 PayloadAttribute payloadAtt; field in class:TestPayloads.PoolingPayloadTokenStream 553 payloadAtt = addAttribute(PayloadAttribute.class); 563 payloadAtt.setPayload(new Payload(payload));
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/spelling/ |
H A D | SimpleQueryConverter.java | 51 PayloadAttribute payloadAtt = ts.addAttribute(PayloadAttribute.class); 61 tok.setPayload(payloadAtt.getPayload());
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/miscellaneous/ |
H A D | PrefixAwareTokenFilter.java | 49 private PayloadAttribute payloadAtt; field in class:PrefixAwareTokenFilter 69 payloadAtt = addAttribute(PayloadAttribute.class); 123 payloadAtt.setPayload(token.getPayload()); 144 token.setPayload(payloadAtt.getPayload());
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/spelling/ |
H A D | SpellingQueryConverter.java | 123 PayloadAttribute payloadAtt = stream.addAttribute(PayloadAttribute.class); 134 token.setPayload(payloadAtt.getPayload());
|