Searched defs:endOffset (Results 1 - 23 of 23) sorted by relevance

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/
H A DOffsetAttribute.java29 Note that the difference between endOffset() and startOffset() may not be
36 @see #startOffset() and #endOffset()*/
37 public void setOffset(int startOffset, int endOffset); argument
42 of the token in the source text is (endOffset - startOffset). */
43 public int endOffset(); method in interface:OffsetAttribute
H A DOffsetAttributeImpl.java29 private int endOffset; field in class:OffsetAttributeImpl
34 Note that the difference between endOffset() and startOffset() may not be
43 @see #startOffset() and #endOffset()*/
44 public void setOffset(int startOffset, int endOffset) { argument
46 this.endOffset = endOffset;
52 of the token in the source text is (endOffset - startOffset). */
53 public int endOffset() { method in class:OffsetAttributeImpl
54 return endOffset;
61 endOffset
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DTermVectorOffsetInfo.java33 private int endOffset; field in class:TermVectorOffsetInfo
38 public TermVectorOffsetInfo(int startOffset, int endOffset) { argument
39 this.endOffset = endOffset;
48 return endOffset;
51 public void setEndOffset(int endOffset) { argument
52 this.endOffset = endOffset;
80 if (endOffset != termVectorOffsetInfo.endOffset) retur
[all...]
H A DDocInverterPerThread.java45 public void reinit(String stringValue, int startOffset, int endOffset) { argument
47 offsetAttribute.setOffset(startOffset, endOffset);
/lucene-3.6.0/lucene/contrib/analyzers/phonetic/src/java/org/apache/lucene/analysis/phonetic/
H A DBeiderMorseFilter.java59 private int endOffset; field in class:BeiderMorseFilter
91 offsetAtt.setOffset(startOffset, endOffset);
100 endOffset = offsetAtt.endOffset();
/lucene-3.6.0/lucene/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/
H A DSegToken.java42 public int endOffset; field in class:SegToken
71 this.endOffset = end;
86 result = prime * result + endOffset;
108 if (endOffset != other.endOffset)
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/vectorhighlight/
H A DFieldFragList.java46 * @param endOffset end offset of the fragment
49 public void add( int startOffset, int endOffset, List<WeightedPhraseInfo> phraseInfoList ){ argument
50 fragInfos.add( new WeightedFragInfo( startOffset, endOffset, phraseInfoList ) );
67 int endOffset; field in class:FieldFragList.WeightedFragInfo
69 public WeightedFragInfo( int startOffset, int endOffset, List<WeightedPhraseInfo> phraseInfoList ){ argument
71 this.endOffset = endOffset;
93 return endOffset;
102 sb.append( ")/" ).append( totalBoost ).append( '(' ).append( startOffset ).append( ',' ).append( endOffset ).append( ')' );
H A DFieldPhraseList.java152 return termsOffsets.get( termsOffsets.size() - 1 ).endOffset;
180 int endOffset; field in class:FieldPhraseList.WeightedPhraseInfo.Toffs
181 public Toffs( int startOffset, int endOffset ){
183 this.endOffset = endOffset;
185 public void setEndOffset( int endOffset ){
186 this.endOffset = endOffset;
192 return endOffset;
197 sb.append( '(' ).append( startOffset ).append( ',' ).append( endOffset )
[all...]
H A DFieldTermStack.java148 final int endOffset; field in class:FieldTermStack.TermInfo
151 TermInfo( String text, int startOffset, int endOffset, int position ){ argument
154 this.endOffset = endOffset;
160 public int getEndOffset(){ return endOffset; }
166 sb.append( text ).append( '(' ).append(startOffset).append( ',' ).append( endOffset ).append( ',' ).append( position ).append( ')' );
H A DBaseFragmentsBuilder.java135 return makeFragment( fragInfo, getFragmentSource( buffer, index, values, s, fragInfo.endOffset ), s,
148 .append( encoder.encodeText( src.substring( to.startOffset - s, to.endOffset - s ) ) )
150 srcIndex = to.endOffset - s;
179 int startOffset, int endOffset, int[] modifiedStartOffset ){
180 while( buffer.length() < endOffset && index[0] < values.length ){
191 int eo = bufferLength < endOffset ? bufferLength : boundaryScanner.findEndOffset( buffer, endOffset );
198 int startOffset, int endOffset ){
199 while( buffer.length() < endOffset && index[0] < values.length ){
204 int eo = buffer.length() < endOffset
178 getFragmentSourceMSO( StringBuilder buffer, int[] index, Field[] values, int startOffset, int endOffset, int[] modifiedStartOffset ) argument
[all...]
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/
H A DTokenGroup.java36 int endOffset = 0; field in class:TokenGroup
51 int termEndOffset = offsetAtt.endOffset();
54 endOffset = matchEndOffset = termEndOffset;
58 endOffset = Math.max(endOffset, termEndOffset);
62 matchEndOffset = offsetAtt.endOffset();
79 return offsetAtt.startOffset() >= endOffset;
109 return endOffset;
/lucene-3.6.0/lucene/contrib/highlighter/src/test/org/apache/lucene/search/vectorhighlight/
H A DIndexTimeSynonymTest.java286 public static Token t( String text, int startOffset, int endOffset ){
287 return t( text, startOffset, endOffset, 1 );
290 public static Token t( String text, int startOffset, int endOffset, int positionIncrement ){ argument
291 Token token = new Token( text, startOffset, endOffset );
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/
H A DCompoundWordTokenFilterBase.java183 offsetAtt.setOffset(token.startOffset, token.endOffset);
222 public final int startOffset, endOffset; field in class:CompoundWordTokenFilterBase.CompoundToken
230 int endOff = CompoundWordTokenFilterBase.this.offsetAtt.endOffset();
236 this.endOffset = endOff;
240 this.endOffset = newStart + length;
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/
H A DTestShingleMatrixFilter.java166 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");");
189 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");");
237 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");");
306 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");");
369 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");");
417 private Token tokenFactory(String text, int posIncr, int startOffset, int endOffset) { argument
418 Token token = new Token(startOffset, endOffset);
429 private Token tokenFactory(String text, int posIncr, float weight, int startOffset, int endOffset) { argument
430 Token token = new Token(startOffset, endOffset);
437 private Token tokenFactory(String text, int posIncr, float weight, int startOffset, int endOffset, ShingleMatrixFilte argument
455 assertNext(TokenStream ts, String text, int positionIncrement, float boost, int startOffset, int endOffset) argument
469 assertNext(TokenStream ts, String text, int startOffset, int endOffset) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DToken.java82 return reusableToken.reinit(string, startOffset, endOffset[, type]);
87 return reusableToken.reinit(string, 0, string.length(), startOffset, endOffset[, type]);
93 return reusableToken.reinit(buffer, 0, buffer.length, startOffset, endOffset[, type]);
98 return reusableToken.reinit(buffer, start, end - start, startOffset, endOffset[, type]);
103 return reusableToken.reinit(source.buffer(), 0, source.length(), source.startOffset(), source.endOffset()[, source.type()]);
111 <li>The startOffset and endOffset represent the start and offset in the source text, so be careful in adjusting them.</li>
127 private int startOffset,endOffset; field in class:Token
143 endOffset = end;
153 endOffset = end;
166 endOffset
293 public final int endOffset() { method in class:Token
305 setOffset(int startOffset, int endOffset) argument
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestTermVectorsReader.java53 int endOffset; field in class:TestTermVectorsReader.TestToken
85 token.endOffset = offsets[i][j].getEndOffset();
146 offsetAtt.setOffset(testToken.startOffset, testToken.endOffset);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestTermVectorsReader.java53 int endOffset; field in class:TestTermVectorsReader.TestToken
85 token.endOffset = offsets[i][j].getEndOffset();
145 offsetAtt.setOffset(testToken.startOffset, testToken.endOffset);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/cjk/
H A DCJKBigramFilter.java78 int endOffset[] = new int[8]; field in class:CJKBigramFilter
215 endOffset[0] = endOffset[last];
223 int end = offsetAtt.endOffset();
228 endOffset = ArrayUtil.grow(endOffset, newSize);
236 endOffset[bufferLen] = end;
245 start = endOffset[bufferLen] = start + cpLen;
261 offsetAtt.setOffset(startOffset[index], endOffset[index+1]);
277 offsetAtt.setOffset(startOffset[index], endOffset[inde
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/synonym/
H A DSynonymFilter.java140 int endOffset; field in class:SynonymFilter.PendingInput
189 public void add(char[] output, int offset, int len, int endOffset) { argument
204 // endOffset can be -1, in which case we should simply
205 // use the endOffset of the input token, or X >= 0, in
206 // which case we use X as the endOffset for this output
207 endOffsets[count] = endOffset;
346 lastEndOffset = input.endOffset = offsetAtt.endOffset();
347 inputEndOffset = input.endOffset;
366 inputEndOffset = futureInputs[curNextRead].endOffset;
[all...]
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/client/solrj/response/
H A DSpellCheckResponse.java136 private int endOffset; field in class:SpellCheckResponse.Suggestion
150 } else if ("endOffset".equals(n)) {
151 endOffset = (Integer) suggestion.getVal(i);
183 return endOffset;
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/
H A DTopKInEachNodeHandler.java143 int endOffset = offset + partitionSize; // one past the largest ordinal in the partition
266 while (tosOrdinal >= endOffset) {
301 olderSibling, arrays, partitionSize, offset, endOffset, localDepth, depth);
367 * <code>endOffset</code>.
368 * It is assumed that <code>ordinal</code> < <code>endOffset</code>,
380 * @param endOffset one larger than the largest ordinal that belong to this partition
390 int endOffset, int currentDepth, int maxDepth) {
404 while (yc >= endOffset) {
409 partitionSize, offset, endOffset, currentDepth+1, maxDepth);
388 countOnly(int ordinal, int[] youngestChild, int[] olderSibling, FacetArrays arrays, int partitionSize, int offset, int endOffset, int currentDepth, int maxDepth) argument
/lucene-3.6.0/solr/core/src/java/org/apache/solr/highlight/
H A DDefaultSolrHighlighter.java583 * endOffset is currently ignored.
647 int endOffset; field in class:TermOffsetsTokenStream
657 endOffset = startOffset + length;
678 bufferedEndOffset = bufferedOffsetAtt.endOffset();
682 bufferedEndOffset <= endOffset ){
685 offsetAtt.setOffset( offsetAtt.startOffset() - startOffset, offsetAtt.endOffset() - startOffset );
688 else if( bufferedEndOffset > endOffset ){
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/
H A DWordDelimiterFilter.java541 savedEndOffset = offsetAttribute.endOffset();
602 concatenation.endOffset = savedStartOffset + iterator.end;
615 int endOffset = savedStartOffset + iterator.end;
626 offsetAttribute.setOffset(startOffset, endOffset);
716 int endOffset; field in class:WordDelimiterFilter.WordDelimiterConcatenation
749 offsetAttribute.setOffset(startOffset, endOffset);
770 startOffset = endOffset = type = subwordCount = 0;

Completed in 649 milliseconds