Searched refs:length (Results 1 - 25 of 1383) sorted by relevance

1234567891011>>

/lucene-3.6.0/solr/core/src/java/org/apache/solr/internal/csv/
H A DCharBuffer.java38 private int length; field in class:CharBuffer
49 * of <code>length</code> characters.
51 public CharBuffer(final int length) { argument
52 if (length == 0) {
55 this.c = new char[length];
62 length = 0;
69 public int length() { method in class:CharBuffer
70 return length;
79 return c.length;
91 provideCapacity(length
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/id/
H A DIndonesianStemmer.java42 * Stem a term (returning its new length).
47 public int stem(char text[], int length, boolean stemDerivational) { argument
50 for (int i = 0; i < length; i++)
54 if (numSyllables > 2) length = removeParticle(text, length);
55 if (numSyllables > 2) length = removePossessivePronoun(text, length);
58 length = stemDerivational(text, length);
59 return length;
62 stemDerivational(char text[], int length) argument
90 removeParticle(char text[], int length) argument
101 removePossessivePronoun(char text[], int length) argument
115 removeFirstOrderPrefix(char text[], int length) argument
206 removeSecondOrderPrefix(char text[], int length) argument
245 removeSuffix(char text[], int length) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/
H A DArraysUtils.java34 * @param length The length of the section of the array to compare
39 public static boolean equals(char[] left, int offsetLeft, char[] right, int offsetRight, int length) { argument
40 if ((offsetLeft + length <= left.length) && (offsetRight + length <= right.length)) {
41 for (int i = 0; i < length; i++) {
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/
H A DIntArrayAllocator.java24 * of a certain length. These counter arrays are needed temporarily during
34 // An IntArrayAllocater deals with integer arrays of a fixed length.
35 private int length; field in class:IntArrayAllocator
38 * Construct an allocator for counter arrays of length <CODE>length</CODE>,
53 public IntArrayAllocator(int length, int maxArrays) { argument
55 this.length = length;
60 return new int[length];
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DPayload.java44 /** the length of the payload data */
45 protected int length; field in class:Payload
60 this(data, 0, data.length);
70 * @param length the length of the data
72 public Payload(byte[] data, int offset, int length) { argument
73 if (offset < 0 || offset + length > data.length) {
78 this.length = length;
95 setData(byte[] data, int offset, int length) argument
119 public int length() { method in class:Payload
[all...]
H A DFieldInvertState.java30 int length; field in class:FieldInvertState
41 public FieldInvertState(int position, int length, int numOverlap, int offset, float boost) { argument
43 this.length = length;
55 length = 0;
74 * @return the length
77 return length;
80 public void setLength(int length) { argument
81 this.length = length;
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DCharsRef.java23 * Represents char[], as a slice (offset + length) into an existing char[].
32 public int length; field in class:CharsRef
35 * Creates a new {@link CharsRef} initialized an empty array zero-length
51 * length
53 public CharsRef(char[] chars, int offset, int length) { argument
55 assert chars.length >= offset + length;
58 this.length = length;
68 this.length
192 public int length() { method in class:CharsRef
[all...]
H A DIntsRef.java20 /** Represents int[], as a slice (offset + length) into an
29 public int length; field in class:IntsRef
39 public IntsRef(int[] ints, int offset, int length) { argument
43 this.length = length;
48 return new IntsRef(ints, offset, length);
55 final int end = offset + length;
74 if (length == other.length) {
77 final int end = offset + length;
[all...]
H A DBytesRef.java23 /** Represents byte[], as a slice (offset + length) into an
38 public int length; field in class:BytesRef
48 public BytesRef(byte[] bytes, int offset, int length) { argument
52 this.length = length;
58 this(bytes, 0, bytes.length);
63 * Offset and length will both be zero.
89 UnicodeUtil.UTF16toUTF8(text, 0, text.length(), this);
98 public void copyChars(char text[], int offset, int length) { argument
99 UnicodeUtil.UTF16toUTF8(text, offset, length, thi
[all...]
H A DRollingCharBuffer.java74 if (count == buffer.length) {
77 //System.out.println(Thread.currentThread().getName() + ": cb grow " + newBuffer.length);
78 System.arraycopy(buffer, nextWrite, newBuffer, 0, buffer.length - nextWrite);
79 System.arraycopy(buffer, 0, newBuffer, buffer.length - nextWrite, nextWrite);
80 nextWrite = buffer.length;
83 if (nextWrite == buffer.length) {
111 index += buffer.length;
117 public char[] get(int posStart, int length) { argument
118 assert length > 0;
119 assert inBounds(posStart): "posStart=" + posStart + " length
[all...]
H A DBits.java27 public int length(); method in interface:Bits
32 * Bits impl of the specified length with all bits set.
45 public int length() { method in class:Bits.MatchAllBits
51 * Bits impl of the specified length with no bits set.
64 public int length() { method in class:Bits.MatchNoBits
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/
H A DHyphenation.java39 public int length() { method in class:Hyphenation
40 return hyphenPoints.length;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/
H A DBufferedIndexOutput.java42 * @param length the number of bytes to write
46 public void writeBytes(byte[] b, int offset, int length) throws IOException { argument
49 if (bytesLeft >= length) {
51 System.arraycopy(b, offset, buffer, bufferPosition, length);
52 bufferPosition += length;
58 if (length > BUFFER_SIZE) {
63 flushBuffer(b, offset, length);
64 bufferStart += length;
69 while (pos < length) {
70 pieceLength = (length
136 public abstract long length() throws IOException; method in class:BufferedIndexOutput
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/java/org/apache/lucene/analysis/ja/
H A DJapaneseKatakanaStemFilter.java30 * katakana words longer than a minimum length are stemmed (default is four).
65 termAttr.setLength(stem(termAttr.buffer(), termAttr.length()));
73 private int stem(char[] term, int length) { argument
74 if (length < minimumKatakanaLength) {
75 return length;
78 if (! isKatakana(term, length)) {
79 return length;
82 if (term[length - 1] == HIRAGANA_KATAKANA_PROLONGED_SOUND_MARK) {
83 return length - 1;
86 return length;
89 isKatakana(char[] term, int length) argument
[all...]
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/index/
H A DMockIndexInput.java30 private long length; field in class:MockIndexInput
35 length = bytes.length;
43 // int bufferNumber = start / buffer.length;
44 int bufferOffset = start % buffer.length;
45 int bytesInBuffer = buffer.length - bufferOffset;
66 public long length() { method in class:MockIndexInput
67 return length;
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/index/
H A DMockIndexInput.java25 private long length; field in class:MockIndexInput
30 length = bytes.length;
38 // int bufferNumber = start / buffer.length;
39 int bufferOffset = start % buffer.length;
40 int bytesInBuffer = buffer.length - bufferOffset;
61 public long length() { method in class:MockIndexInput
62 return length;
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/params/
H A DAppendedSolrParams.java39 if (null == extra || 0 == extra.length) {
42 if (null == main || 0 == main.length) {
45 String[] result = new String[main.length + extra.length];
46 System.arraycopy(main,0,result,0,main.length);
47 System.arraycopy(extra,0,result,main.length,extra.length);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/fst/
H A DByteSequenceOutputs.java52 int stopAt1 = pos1 + Math.min(output1.length, output2.length);
64 } else if (pos1 == output1.offset + output1.length) {
67 } else if (pos2 == output2.offset + output2.length) {
82 } else if (inc.length == output.length) {
86 assert inc.length < output.length: "inc.length=" + inc.length
[all...]
H A DIntSequenceOutputs.java52 int stopAt1 = pos1 + Math.min(output1.length, output2.length);
64 } else if (pos1 == output1.offset + output1.length) {
67 } else if (pos2 == output2.offset + output2.length) {
82 } else if (inc.length == output.length) {
86 assert inc.length < output.length: "inc.length=" + inc.length
[all...]
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/
H A DCharBlockArray.java45 int length; field in class:CharBlockArray.Block
49 this.length = 0;
56 int length; field in class:CharBlockArray
82 return append(chars, 0, chars.length());
86 if (this.current.length == this.blockSize) {
89 this.current.chars[this.current.length++] = c;
90 this.length++;
95 public CharBlockArray append(CharSequence chars, int start, int length) { argument
96 int end = start + length;
103 public CharBlockArray append(char[] chars, int start, int length) { argument
152 public int length() { method in class:CharBlockArray
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/de/
H A DGermanNormalizationFilter.java60 int length = termAtt.length();
61 for (int i = 0; i < length; i++) {
73 length = StemmerUtil.delete(buffer, i--, length);
95 buffer = termAtt.resizeBuffer(1+length);
96 if (i < length)
97 System.arraycopy(buffer, i, buffer, i+1, (length-i));
99 length++;
106 termAtt.setLength(length);
[all...]
H A DGermanStemmer.java54 sb.delete( 0, sb.length() );
72 for ( int c = 0; c < term.length(); c++ ) {
85 * The algorithm is context free, except of the length restrictions.
90 while ( doMore && buffer.length() > 3 ) {
91 if ( ( buffer.length() + substCount > 5 ) &&
92 buffer.substring( buffer.length() - 2, buffer.length() ).equals( "nd" ) )
94 buffer.delete( buffer.length() - 2, buffer.length() );
96 else if ( ( buffer.length()
[all...]
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/
H A DStringBuilderReader.java53 // The length of 'sb'.
54 private int length; field in class:StringBuilderReader
111 return next >= length ? -1 : sb.charAt(next++);
121 if (off < 0 || off > cbuf.length || len < 0 || off + len > cbuf.length) {
122 throw new IndexOutOfBoundsException("off=" + off + " len=" + len + " cbuf.length=" + cbuf.length);
129 if (next >= length) {
133 int n = Math.min(length - next, len);
153 length
[all...]
H A DFormat.java47 * @param col column name (used for deciding on length).
52 return res.substring(res.length() - col.length());
57 return res.substring(res.length() - col.length());
64 * @param col column name (used for deciding on length).
69 return res.substring(0, col.length());
74 return res.substring(0, col.length());
80 * @param col column name (used for deciding on length).
85 return res.substring(res.length()
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/
H A DTermAttribute.java40 * length characters, into the termBuffer array.
43 * @param length the number of characters to copy
45 public void setTermBuffer(char[] buffer, int offset, int length); argument
53 * for length characters, into the termBuffer array.
56 * @param length the number of characters to copy
58 public void setTermBuffer(String buffer, int offset, int length); argument
77 * @return newly created termBuffer with length >= newSize
81 /** Return number of valid characters (length of the term)
85 /** Set number of valid characters (length of the term) in
90 * @param length th
92 setTermLength(int length) argument
[all...]

Completed in 58 milliseconds

1234567891011>>