MtasUpdateRequestProcessorResultItem.java.html
3.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>MtasUpdateRequestProcessorResultItem.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">MTAS</a> > <a href="index.source.html" class="el_package">mtas.solr.update.processor</a> > <span class="el_source">MtasUpdateRequestProcessorResultItem.java</span></div><h1>MtasUpdateRequestProcessorResultItem.java</h1><pre class="source lang-java linenums">package mtas.solr.update.processor;
import java.io.Serializable;
import org.apache.lucene.util.BytesRef;
/**
* The Class MtasUpdateRequestProcessorResultItem.
*/
public class MtasUpdateRequestProcessorResultItem implements Serializable {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
/** The token term. */
public String tokenTerm;
/** The token offset start. */
public Integer tokenOffsetStart;
/** The token offset end. */
public Integer tokenOffsetEnd;
/** The token pos incr. */
public Integer tokenPosIncr;
/** The token payload. */
public byte[] tokenPayload;
/** The token flags. */
public Integer tokenFlags;
/**
* Instantiates a new mtas update request processor result item.
*
* @param term the term
* @param offsetStart the offset start
* @param offsetEnd the offset end
* @param posIncr the pos incr
* @param payload the payload
* @param flags the flags
*/
public MtasUpdateRequestProcessorResultItem(String term, Integer offsetStart,
<span class="nc" id="L44"> Integer offsetEnd, Integer posIncr, BytesRef payload, Integer flags) {</span>
<span class="nc" id="L45"> tokenTerm = term;</span>
<span class="nc bnc" id="L46" title="All 4 branches missed."> if (offsetStart != null && offsetEnd != null) {</span>
<span class="nc" id="L47"> tokenOffsetStart = offsetStart;</span>
<span class="nc" id="L48"> tokenOffsetEnd = offsetEnd;</span>
} else {
<span class="nc" id="L50"> tokenOffsetStart = null;</span>
<span class="nc" id="L51"> tokenOffsetEnd = null;</span>
}
<span class="nc bnc" id="L53" title="All 4 branches missed."> if (posIncr != null && posIncr != 1) {</span>
<span class="nc" id="L54"> tokenPosIncr = posIncr;</span>
} else {
<span class="nc" id="L56"> tokenPosIncr = null;</span>
}
<span class="nc bnc" id="L58" title="All 2 branches missed."> if (payload != null) {</span>
<span class="nc" id="L59"> tokenPayload = payload.bytes;</span>
} else {
<span class="nc" id="L61"> tokenPayload = null;</span>
}
<span class="nc" id="L63"> tokenFlags = flags;</span>
<span class="nc" id="L64"> }</span>
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.7.9.201702052155</span></div></body></html>