/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/payloads/ |
H A D | FloatEncoder.java | 30 public Payload encode(char[] buffer, int offset, int length) { argument 32 float payload = Float.parseFloat(new String(buffer, offset, length));//TODO: improve this so that we don't have to new Strings
|
H A D | IntegerEncoder.java | 31 public Payload encode(char[] buffer, int offset, int length) { argument 33 int payload = ArrayUtil.parseInt(buffer, offset, length);//TODO: improve this so that we don't have to new Strings
|
H A D | PayloadEncoder.java | 36 * @param length 39 Payload encode(char [] buffer, int offset, int length); argument
|
H A D | IdentityEncoder.java | 48 public Payload encode(char[] buffer, int offset, int length) { argument 49 final ByteBuffer bb = charset.encode(CharBuffer.wrap(buffer, offset, length));
|
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/ |
H A D | IntArrayAllocator.java | 24 * 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/contrib/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/ |
H A D | TaxonomyWriterCache.java | 68 * If the given length is negative or bigger than the path's actual 69 * length, the full path is taken. 71 public int get(CategoryPath categoryPath, int length); argument 97 * If the given length is negative or bigger than the path's actual 98 * length, the full path is taken.
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/ |
H A D | ASCIIFoldingFilter.java | 74 final int length = termAtt.length(); 78 for(int i = 0 ; i < length ; ++i) { 82 foldToASCII(buffer, length); 97 * @param length The number of characters in the input string 99 public void foldToASCII(char[] input, int length) argument 101 // Worst-case length required: 102 final int maxSizeNeeded = 4 * length; 103 if (output.length < maxSizeNeeded) { 107 outputPos = foldToASCII(input, 0, output, 0, length); 121 foldToASCII(char input[], int inputPos, char output[], int outputPos, int length) argument [all...] |
H A D | ISOLatin1AccentFilter.java | 48 final int length = termAtt.length(); 51 for(int i=0;i<length;i++) { 54 removeAccents(buffer, length); 67 public final void removeAccents(char[] input, int length) { argument 69 // Worst-case length required: 70 final int maxSizeNeeded = 2*length; 72 int size = output.length; 76 if (size != output.length) 83 for (int i=0; i<length; [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/ |
H A D | TermAttribute.java | 40 * 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...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/ |
H A D | CompressionTools.java | 40 public static byte[] compress(byte[] value, int offset, int length, int compressionLevel) { argument 46 ByteArrayOutputStream bos = new ByteArrayOutputStream(length); 52 compressor.setInput(value, offset, length); 69 public static byte[] compress(byte[] value, int offset, int length) { argument 70 return compress(value, offset, length, Deflater.BEST_COMPRESSION); 75 return compress(value, 0, value.length, Deflater.BEST_COMPRESSION); 88 UnicodeUtil.UTF16toUTF8(value, 0, value.length(), result); 89 return compress(result.result, 0, result.length, compressionLevel); 96 ByteArrayOutputStream bos = new ByteArrayOutputStream(value.length); 121 UnicodeUtil.UTF8toUTF16(bytes, 0, bytes.length, resul [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/ |
H A D | ByteArrayDataOutput.java | 47 reset(bytes, 0, bytes.length); 67 public void writeBytes(byte[] b, int offset, int length) { argument 68 assert pos + length <= limit; 69 System.arraycopy(b, offset, bytes, pos, length); 70 pos += length;
|
H A D | IndexInput.java | 36 * @param length The number of chars to read 41 public void skipChars(int length) throws IOException{ argument 42 for (int i = 0; i < length; i++) { 89 public abstract long length(); method in class:IndexInput 108 final int toCopy = (int) (numBytes > copyBuf.length ? copyBuf.length : numBytes);
|
H A D | IndexOutput.java | 48 public abstract long length() throws IOException; method in class:IndexOutput 50 /** Set the file length. By default, this method does 55 * specified size. If the length is longer than the 56 * current file length, the bytes added to the file are 58 * @param length file length 60 public void setLength(long length) throws IOException {} argument
|
H A D | OutputStreamDataOutput.java | 38 public void writeBytes(byte[] b, int offset, int length) throws IOException { argument 39 os.write(b, offset, length);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/ |
H A D | Bits.java | 27 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/test-framework/src/java/org/apache/lucene/analysis/ |
H A D | MockFixedLengthPayloadFilter.java | 27 * TokenFilter that adds random fixed-length payloads. 35 public MockFixedLengthPayloadFilter(Random random, TokenStream in, int length) { argument 38 this.bytes = new byte[length];
|
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/index/ |
H A D | MockIndexInput.java | 30 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/analysis/ |
H A D | MockFixedLengthPayloadFilter.java | 32 public MockFixedLengthPayloadFilter(Random random, TokenStream in, int length) { argument 35 this.bytes = new byte[length];
|
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/index/ |
H A D | MockIndexInput.java | 25 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/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/ |
H A D | Hyphenation.java | 39 public int length() { method in class:Hyphenation 40 return hyphenPoints.length;
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/ |
H A D | ArraysUtils.java | 34 * @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/solr/solrj/src/java/org/apache/solr/common/util/ |
H A D | Hash.java | 29 * <p>The only problem with using lookup3 hashword is that it includes a length in the initial value. This would suck some performance out since directly hashing a UTF8 or UTF16 string (Java) would require a pre-scan to get the actual number of unicode code points. The solution was to simply remove the length factor, which is equivalent to biasing initVal by -(numCodePoints*4). This slightly modified lookup3 I define as lookup3ycs. 33 * <p>The hash value of a character sequence (a string) is defined to be the hash of its unicode code points, according to lookup3 hashword, with the initval biased by -(length*4). 38 * lookup3ycs(k,offset,length,initval) == lookup3(k,offset,length,initval-(length*4)) 42 * lookup3ycs(k,offset,length,initval+(length*4)) == lookup3(k,offset,length,initval) 57 * @param length lengt 62 lookup3(int[] k, int offset, int length, int initval) argument 117 lookup3ycs(int[] k, int offset, int length, int initval) argument [all...] |
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/common/util/ |
H A D | TestFastInputStream.java | 39 writeChars(gzos, ss, 0, ss.length()); 44 char[] cbuf = new char[ss.length()]; 45 readChars(gzis, cbuf, 0, ss.length()); 51 cbuf = new char[ss.length()]; 52 readChars(gzis, cbuf, 0, ss.length()); 58 public static void readChars(InputStream in, char[] buffer, int start, int length) argument 60 final int end = start + length; 76 public static void writeChars(OutputStream os, String s, int start, int length) throws IOException { argument 77 final int end = start + length;
|
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/ |
H A D | UnsafeByteArrayOutputStream.java | 26 * length is insufficient. Than the buffer size is doubled and the data is 77 System.arraycopy(buffer, 0, newBuffer, 0, buffer.length); 89 if (buffer.length == 0) { 90 throw new IllegalArgumentException("initial buffer length must be greater than 0."); 115 if (index >= buffer.length) { 116 grow(buffer.length << 1); 122 * writes a given byte[], with offset and length to the buffer. If the 137 if (targetLength >= buffer.length) { 138 // Calculating the new required length of the array, keeping the array 140 int newlen = buffer.length; 170 public int length() { method in class:UnsafeByteArrayOutputStream [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/standard/ |
H A D | ClassicAnalyzer.java | 57 /** Default maximum allowed token length */ 113 * Set maximum allowed token length. If a token is seen 114 * that exceeds this length then it is discarded. This 118 public void setMaxTokenLength(int length) { argument 119 maxTokenLength = length;
|