Searched refs:payloadAtt (Results 1 - 25 of 35) sorted by relevance

12

/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/payloads/
H A DNumericPayloadTokenFilterTest.java39 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 DTypeAsPayloadTokenFilterTest.java39 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 DTokenOffsetPayloadTokenFilterTest.java35 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 DMockFixedLengthPayloadFilter.java30 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:MockFixedLengthPayloadFilter
46 payloadAtt.setPayload(payload);
H A DMockVariableLengthPayloadFilter.java32 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:MockVariableLengthPayloadFilter
48 payloadAtt.setPayload(payload);
H A DCannedTokenStream.java36 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 DMockFixedLengthPayloadFilter.java27 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:MockFixedLengthPayloadFilter
43 payloadAtt.setPayload(payload);
H A DMockVariableLengthPayloadFilter.java29 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 DNumericPayloadTokenFilter.java38 private final PayloadAttribute payloadAtt = addAttribute(PayloadAttribute.class); field in class:NumericPayloadTokenFilter
52 payloadAtt.setPayload(thePayload);
H A DTypeAsPayloadTokenFilter.java36 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 DPayloadHelper.java71 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 DTestPayloadTermQuery.java78 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 DPayloadHelper.java71 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 DTestPayloadTermQuery.java78 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 DTestSnowball.java106 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 DTestAnalyzers.java81 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 DTestAnalyzers.java81 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 DTestMultiLevelSkipList.java106 PayloadAttribute payloadAtt; field in class:TestMultiLevelSkipList.PayloadFilter
110 payloadAtt = addAttribute(PayloadAttribute.class);
117 payloadAtt.setPayload(new Payload(new byte[] { (byte) count++ }));
H A DTestPayloads.java444 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 DBufferedTokenStream.java80 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 DTestMultiLevelSkipList.java106 PayloadAttribute payloadAtt; field in class:TestMultiLevelSkipList.PayloadFilter
110 payloadAtt = addAttribute(PayloadAttribute.class);
117 payloadAtt.setPayload(new Payload(new byte[] { (byte) count++ }));
H A DTestPayloads.java444 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 DSimpleQueryConverter.java51 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 DPrefixAwareTokenFilter.java49 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 DSpellingQueryConverter.java123 PayloadAttribute payloadAtt = stream.addAttribute(PayloadAttribute.class);
134 token.setPayload(payloadAtt.getPayload());

Completed in 519 milliseconds

12