Searched defs:offset (Results 1 - 25 of 167) sorted by relevance

1234567

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DStringInterner.java34 public String intern(char[] arr, int offset, int len) { argument
35 return intern(new String(arr, offset, len));
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/payloads/
H A DFloatEncoder.java30 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 DIntegerEncoder.java31 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 DPayloadEncoder.java35 * @param offset
39 Payload encode(char [] buffer, int offset, int length); argument
H A DIdentityEncoder.java48 public Payload encode(char[] buffer, int offset, int length) { argument
49 final ByteBuffer bb = charset.encode(CharBuffer.wrap(buffer, offset, length));
H A DPayloadHelper.java30 public static byte[] encodeFloat(float payload, byte[] data, int offset){ argument
31 return encodeInt(Float.floatToIntBits(payload), data, offset);
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 >> 8);
42 data[offset + 3] = (byte) payload;
58 * NOTE: the length of the array must be at least offset + 4 long.
60 * @param offset The offset int
65 decodeFloat(byte [] bytes, int offset) argument
70 decodeInt(byte [] bytes, int offset) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/
H A DTermAttribute.java39 /** Copies the contents of buffer, starting at offset for
42 * @param offset the index in the buffer of the first character to copy
45 public void setTermBuffer(char[] buffer, int offset, int length); argument
52 /** Copies the contents of buffer, starting at offset and continuing
55 * @param offset the index in the buffer of the first character to copy
58 public void setTermBuffer(String buffer, int offset, int length); argument
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/
H A DCompressionTools.java40 public static byte[] compress(byte[] value, int offset, int length, int compressionLevel) { argument
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);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DTermPositions.java62 * @param offset the offset in the array into which the data of this payload
67 byte[] getPayload(byte[] data, int offset) throws IOException; argument
H A DByteSliceWriter.java63 public void writeBytes(final byte[] b, int offset, final int len) { argument
64 final int offsetEnd = offset + len;
65 while(offset < offsetEnd) {
73 slice[upto++] = b[offset++];
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/
H A DByteArrayDataOutput.java38 public ByteArrayDataOutput(byte[] bytes, int offset, int len) { argument
39 reset(bytes, offset, len);
50 public void reset(byte[] bytes, int offset, int len) { argument
52 pos = offset;
53 limit = offset + len;
67 public void writeBytes(byte[] b, int offset, int length) { argument
69 System.arraycopy(b, offset, bytes, pos, length);
H A DInputStreamDataInput.java42 public void readBytes(byte[] b, int offset, int len) throws IOException { argument
44 final int cnt = is.read(b, offset, len);
50 offset += cnt;
H A DOutputStreamDataOutput.java38 public void writeBytes(byte[] b, int offset, int length) throws IOException { argument
39 os.write(b, offset, length);
H A DChecksumIndexInput.java47 public void readBytes(byte[] b, int offset, int len) argument
49 main.readBytes(b, offset, len);
50 digest.update(b, offset, len);
H A DChecksumIndexOutput.java45 public void writeBytes(byte[] b, int offset, int length) throws IOException { argument
46 digest.update(b, offset, length);
47 main.writeBytes(b, offset, length);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/miscellaneous/
H A DTestPrefixAndSuffixAwareTokenFilter.java42 private static Token createToken(String term, int start, int offset) argument
44 return new Token(term, start, offset);
H A DTestPrefixAwareTokenFilter.java53 private static Token createToken(String term, int start, int offset) argument
55 return new Token(term, start, offset);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DDocList.java24 * document ids starting at <code>offset()</code>.
32 * Returns the zero based offset of this list within the total ordered list of matches to the query.
34 public int offset(); method in interface:DocList
44 * to <code>offset()</code> and <code>size()</code>).
67 public DocList subset(int offset, int len); argument
H A DSortSpec.java31 int offset; field in class:SortSpec
37 public SortSpec(Sort sort, int offset, int num) { argument
39 this.offset=offset;
69 public int getOffset() { return offset; }
80 return "start="+offset+ "&rows="+num + (sort==null ? "" : "&sort="+sort);
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/util/
H A DHash.java38 * 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)
56 * @param offset offset of the start of the key
62 public static int lookup3(int[] k, int offset, int length, int initval) { argument
66 int i=offset;
113 * {@code lookup3ycs(k,offset,length,initval) == lookup3(k,offset,lengt
117 lookup3ycs(int[] k, int offset, int length, int initval) argument
[all...]
H A DBase64.java55 public static String byteArrayToBase64(byte[] a, int offset, int len) { argument
64 int inCursor = offset;
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedTermPositions.java34 public byte[] getPayload(byte[] data, int offset) throws IOException { argument
38 if (data == null || data.length - offset < getPayloadLength()) {
42 System.arraycopy(payloads, 0, data, offset, payloads.length);
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/tools/java/org/apache/lucene/analysis/ja/util/
H A DTokenInfoDictionaryBuilder.java47 /** Internal word id - incrementally assigned as entries are read and added. This will be byte offset of dictionary file */
48 private int offset = 0; field in class:TokenInfoDictionaryBuilder
143 if(next == offset){
160 dictionary.addMapping((int)ord, offset);
161 offset = next;
/lucene-3.6.0/solr/core/src/java/org/apache/solr/spelling/
H A DSpellingQueryConverter.java117 protected void analyze(Collection<Token> result, Reader text, int offset) throws IOException { argument
130 token.setStartOffset(offset + offsetAtt.startOffset());
131 token.setEndOffset(offset + offsetAtt.endOffset());
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/
H A DNumberUtils.java118 public static int int2sortableStr(int val, char[] out, int offset) { argument
120 out[offset++] = (char)(val >>> 24);
121 out[offset++] = (char)((val >>> 12) & 0x0fff);
122 out[offset++] = (char)(val & 0x0fff);
126 public static int SortableStr2int(String sval, int offset, int len) { argument
127 int val = sval.charAt(offset++) << 24;
128 val |= sval.charAt(offset++) << 12;
129 val |= sval.charAt(offset++);
138 public static int long2sortableStr(long val, char[] out, int offset) { argument
140 out[offset
148 SortableStr2long(String sval, int offset, int len) argument
[all...]

Completed in 98 milliseconds

1234567