/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/ |
H A D | PayloadAttribute.java | 24 * The payload of a Token. See also {@link Payload}. 28 * Returns this Token's payload. 33 * Sets this Token's payload. 35 public void setPayload(Payload payload); argument
|
H A D | PayloadAttributeImpl.java | 26 * The payload of a Token. See also {@link Payload}. 29 private Payload payload; field in class:PayloadAttributeImpl 32 * Initialize this attribute with no payload. 37 * Initialize this attribute with the given payload. 39 public PayloadAttributeImpl(Payload payload) { argument 40 this.payload = payload; 44 * Returns this Token's payload. 47 return this.payload; 51 * Sets this Token's payload 53 setPayload(Payload payload) argument [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/index/streaming/ |
H A D | CategoryTokenizerBase.java | 33 * A base class for all token filters which add term and payload attributes to 45 /** The stream's payload attribute. */ 52 protected Payload payload = new Payload(); field in class:CategoryTokenizerBase
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/ |
H A D | FormatPostingsPositionsConsumer.java | 25 /** Add a new position & payload. If payloadLength > 0 27 abstract void addPosition(int position, byte[] payload, int payloadOffset, int payloadLength) throws IOException; argument
|
H A D | PayloadProcessorProvider.java | 68 * Processes the given payload. One should call {@link #payloadLength()} to 69 * get the length of the processed payload. 75 /** Returns the length of the payload that was returned by {@link #processPayload}. */ 79 * Process the incoming payload and returns the resulting byte[]. Note that 81 * length of the new payload data can be obtained via 84 public abstract byte[] processPayload(byte[] payload, int start, int length) throws IOException; argument
|
H A D | FormatPostingsPositionsWriter.java | 52 /** Add a new position & payload */ 54 void addPosition(int position, byte[] payload, int payloadOffset, int payloadLength) throws IOException { argument 69 out.writeBytes(payload, payloadLength);
|
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/analysis/ |
H A D | MockFixedLengthPayloadFilter.java | 33 private final Payload payload; field in class:MockFixedLengthPayloadFilter 39 this.payload = new Payload(bytes); 46 payloadAtt.setPayload(payload);
|
H A D | MockVariableLengthPayloadFilter.java | 35 private final Payload payload; field in class:MockVariableLengthPayloadFilter 40 this.payload = new Payload(bytes); 47 payload.setData(bytes, 0, random.nextInt(MAXLENGTH)); 48 payloadAtt.setPayload(payload);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/ |
H A D | NumericPayloadTokenFilterFactory.java | 32 * <filter class="solr.NumericPayloadTokenFilterFactory" payload="24" typeMatch="word"/> 38 private float payload; field in class:NumericPayloadTokenFilterFactory 43 payload = Float.parseFloat(args.get("payload")); 47 return new NumericPayloadTokenFilter(input,payload,typeMatch);
|
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/analysis/ |
H A D | MockFixedLengthPayloadFilter.java | 30 private final Payload payload; field in class:MockFixedLengthPayloadFilter 36 this.payload = new Payload(bytes); 43 payloadAtt.setPayload(payload);
|
H A D | MockVariableLengthPayloadFilter.java | 32 private final Payload payload; field in class:MockVariableLengthPayloadFilter 37 this.payload = new Payload(bytes); 44 payload.setData(bytes, 0, random.nextInt(MAXLENGTH)); 45 payloadAtt.setPayload(payload);
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/payloads/ |
H A D | NumericPayloadTokenFilter.java | 30 * Assigns a payload to a token based on the {@link org.apache.lucene.analysis.Token#type()} 41 public NumericPayloadTokenFilter(TokenStream input, float payload, String typeMatch) { argument 43 //Need to encode the payload 44 thePayload = new Payload(PayloadHelper.encodeFloat(payload));
|
H A D | PayloadHelper.java | 26 public static byte[] encodeFloat(float payload) { argument 27 return encodeFloat(payload, new byte[4], 0); 30 public static byte[] encodeFloat(float payload, byte[] data, int offset){ argument 31 return encodeInt(Float.floatToIntBits(payload), data, offset); 34 public static byte[] encodeInt(int payload){ argument 35 return encodeInt(payload, new byte[4], 0); 38 public static byte[] encodeInt(int payload, byte[] data, int offset){ argument 39 data[offset] = (byte)(payload >> 24); 40 data[offset + 1] = (byte)(payload >> 16); 41 data[offset + 2] = (byte)(payload >> [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/search/ |
H A D | CategoryListIteratorTest.java | 57 private PayloadAttribute payload = addAttribute(PayloadAttribute.class); field in class:CategoryListIteratorTest.DataTokenStream 87 payload.setPayload(new Payload(buf, 0, ubaos.length())); 137 * Test that a document with no payloads does not confuse the payload decoder. 171 assertTrue("Failed to initialize payload iterator", cli.init()); 181 assertTrue("Document " + i + " must not have a payload!", i == 0); 188 assertFalse("Document " + i + " must have a payload!", i == 0);
|
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/index/ |
H A D | FacetsPayloadProcessorProvider.java | 155 * @param params defines the encoding of facet ordinals as payload 170 public byte[] processPayload(byte[] payload, int start, int length) throws IOException { argument 171 InputStream is = new ByteArrayInputStream(payload, start, length);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
H A D | SimilarityDelegator.java | 71 public float scorePayload(int docId, String fieldName, int start, int end, byte [] payload, int offset, int length) { argument 72 return delegee.scorePayload(docId, fieldName, start, end, payload, offset, length);
|
H A D | Similarity.java | 900 * Calculate a scoring factor based on the data in the payload. Overriding implementations 901 * are responsible for interpreting what is in the payload. Lucene makes no assumptions about 907 * @param fieldName The fieldName of the term this payload belongs to 908 * @param start The start position of the payload 909 * @param end The end position of the payload 910 * @param payload The payload byte array to be scored 911 * @param offset The offset into the payload array 916 public float scorePayload(int docId, String fieldName, int start, int end, byte [] payload, int offset, int length) argument
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/payloads/ |
H A D | TestPayloadExplanations.java | 28 * TestExplanations subclass focusing on payload queries 46 public float scorePayload(int docId, String fieldName, int start, int end, byte[] payload, int offset, int length) { argument 47 return 1 + (new BytesRef(payload, offset, length).hashCode() % 10);
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/payloads/ |
H A D | TestPayloadExplanations.java | 28 * TestExplanations subclass focusing on payload queries 46 public float scorePayload(int docId, String fieldName, int start, int end, byte[] payload, int offset, int length) { argument 47 return 1 + (new BytesRef(payload, offset, length).hashCode() % 10);
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/handler/ |
H A D | AnalysisRequestHandlerTestBase.java | 46 assertEquals(info.getPayload(), token.get("payload")); 60 private String payload; field in class:AnalysisRequestHandlerTestBase.TokenInfo 73 String payload, 83 this.payload = payload; 108 return payload; 65 TokenInfo( String text, String rawText, String type, int start, int end, int position, int[] positionHistory, String payload, boolean match) argument
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/payloads/ |
H A D | PayloadTermQuery.java | 39 * in the value of the payload located at each of the positions where the 95 protected byte[] payload = new byte[256]; field in class:PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer 130 payload = positions.getPayload(payload, 0); 134 .end(), payload, 0, positions.getPayloadLength())); 138 // zero out the payload? 159 * @return the score for just the Span part w/o the payload 169 * The score for the payload 183 // whether to load the payload or not 188 // GSI: I suppose we could toString the payload, bu [all...] |
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/ |
H A D | TestPayloadProcessorProvider.java | 73 /** deletes the incoming payload */ 82 public byte[] processPayload(byte[] payload, int start, int length) throws IOException { argument 83 return payload; 90 private final PayloadAttribute payload = addAttribute(PayloadAttribute.class); field in class:TestPayloadProcessorProvider.PayloadTokenStream 108 payload.setPayload(new Payload(p));
|
H A D | TestPayloads.java | 50 Payload payload = new Payload(testData); 51 assertEquals("Wrong payload length.", testData.length, payload.length()); 56 payload.copyTo(target, 0); 63 payload.copyTo(target, 3); 71 target = payload.toByteArray(); 76 assertEquals(payload.byteAt(i), testData[i]); 80 payload.byteAt(testData.length + 1); 86 Payload clone = (Payload) payload.clone(); 87 assertEquals(payload 535 private byte[] payload; field in class:TestPayloads.PoolingPayloadTokenStream [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/ |
H A D | TestPayloadProcessorProvider.java | 73 /** deletes the incoming payload */ 82 public byte[] processPayload(byte[] payload, int start, int length) throws IOException { argument 83 return payload; 90 private final PayloadAttribute payload = addAttribute(PayloadAttribute.class); field in class:TestPayloadProcessorProvider.PayloadTokenStream 108 payload.setPayload(new Payload(p));
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/ |
H A D | Token.java | 130 private Payload payload; field in class:Token 343 * Returns this Token's payload. 346 return this.payload; 350 * Sets this Token's payload. 352 public void setPayload(Payload payload) { argument 353 this.payload = payload; 356 /** Resets the term text, payload, flags, and positionIncrement, 362 payload = null; 373 if (payload ! [all...] |