/lucene-3.6.0/solr/core/src/test/org/apache/solr/util/ |
H A D | TestUtils.java | 35 List<String> arr = StrUtils.splitSmart("\\r\\n:\\t\\f\\b", ":", true); 36 assertEquals(2,arr.size()); 37 assertEquals("\r\n",arr.get(0)); 38 assertEquals("\t\f\b",arr.get(1)); 40 arr = StrUtils.splitSmart("\\r\\n:\\t\\f\\b", ":", false); 41 assertEquals(2,arr.size()); 42 assertEquals("\\r\\n",arr.get(0)); 43 assertEquals("\\t\\f\\b",arr.get(1)); 45 arr = StrUtils.splitWS("\\r\\n \\t\\f\\b", true); 46 assertEquals(2,arr [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/request/ |
H A D | ServletSolrParams.java | 34 String[] arr = map.get(name); 35 if (arr==null) return null; 36 String s = arr[0];
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/ |
H A D | BCDUtils.java | 55 // As the output will be smaller than the input, arr and 58 public static int base10toBase100(char[] arr, int start, int end, argument 66 int val = arr[end]; 72 int val2 = arr[end-1]; 98 public static int base100toBase10(char[] arr, int start, int end, argument 104 int val = arr[i]; 118 char[] arr = new char[val.length()+1]; 119 val.getChars(0,val.length(),arr,0); 120 int len = base10toBase100SortableInt(arr,0,val.length(),arr,ar 185 base10toBase100SortableInt(char[] arr, int start, int end, char[] out, int outend ) argument 265 base100SortableIntToBase10(char[] arr, int start, int end, char[] out, int offset) argument 309 base10toBase10kSortableInt(char[] arr, int start, int end, char[] out, int outend ) argument 395 base10kSortableIntToBase10(char[] arr, int start, int end, char[] out, int offset) argument [all...] |
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/params/ |
H A D | MultiMapSolrParams.java | 33 String[] arr = map.get(name); 34 if (arr ==null) { 35 arr =new String[]{val}; 37 String[] newarr = new String[arr.length+1]; 38 System.arraycopy(arr,0,newarr,0,arr.length); 39 newarr[arr.length]=val; 40 arr =newarr; 42 map.put(name, arr); 51 String[] arr [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/ |
H A D | StringInterner.java | 34 public String intern(char[] arr, int offset, int len) { argument 35 return intern(new String(arr, offset, len));
|
/lucene-3.6.0/solr/solrj/src/java/org/apache/noggit/ |
H A D | CharUtil.java | 28 public long parseLong(char[] arr, int start, int end) { argument 30 boolean negative = arr[start] == '-'; 35 x = x * 10 + (arr[i] - '0');
|
H A D | JSONParser.java | 196 private void expect(char[] arr) throws IOException { argument 197 for (int i=1; i<arr.length; i++) { 199 if (ch != arr[i]) { 200 throw err("Expected " + new String(arr)); 304 private int readFrac(CharArr arr, int lim) throws IOException { argument 309 arr.write(ch); 311 arr.write(ch); 312 return readExp(arr,lim); 323 private int readExp(CharArr arr, int lim) throws IOException { argument 328 arr 342 readExpDigits(CharArr arr, int lim) argument 355 continueNumber(CharArr arr) argument 444 readStringChars2(CharArr arr, int middle) argument [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/ |
H A D | ByteFieldSource.java | 52 final byte[] arr = (parser == null) ? 58 return arr[doc]; 63 return (short) arr[doc]; 68 return (float) arr[doc]; 73 return (int) arr[doc]; 78 return (long) arr[doc]; 83 return (double) arr[doc]; 88 return Byte.toString(arr[doc]);
|
H A D | ShortFieldSource.java | 49 final short[] arr = (parser == null) ? 55 return (byte) arr[doc]; 60 return arr[doc]; 65 return (float) arr[doc]; 70 return (int) arr[doc]; 75 return (long) arr[doc]; 80 return (double) arr[doc]; 85 return Short.toString(arr[doc]);
|
H A D | FloatFieldSource.java | 54 final float[] arr = (parser==null) ? 60 return arr[doc]; 65 return (int)arr[doc]; 70 return (long)arr[doc]; 75 return (double)arr[doc]; 80 return Float.toString(arr[doc]);
|
H A D | ReverseOrdFieldSource.java | 65 final int arr[] = sindex.order; 71 return (float)(end - arr[doc]); 76 return (end - arr[doc]); 81 return (long)(end - arr[doc]); 86 return (double)(end - arr[doc]); 92 return Integer.toString((end - arr[doc]));
|
H A D | IntFieldSource.java | 54 final int[] arr = (parser==null) ? 60 return (float)arr[doc]; 65 return arr[doc]; 70 return (long)arr[doc]; 75 return (double)arr[doc]; 80 return Float.toString(arr[doc]); 114 int val = arr[doc];
|
H A D | LongFieldSource.java | 59 final long[] arr = (parser == null) ? 65 return (float) arr[doc]; 70 return (int) arr[doc]; 75 return arr[doc]; 80 return arr[doc]; 85 return Long.toString(arr[doc]); 119 long val = arr[doc];
|
H A D | DoubleFieldSource.java | 53 final double[] arr = (parser == null) ? 59 return (float) arr[doc]; 64 return (int) arr[doc]; 69 return (long) arr[doc]; 74 return arr[doc]; 79 return Double.toString(arr[doc]);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/function/ |
H A D | ByteFieldSource.java | 71 final byte[] arr = cache.getBytes(reader, field, parser); 76 return arr[doc]; 81 return arr[doc]; 91 return arr;
|
H A D | FloatFieldSource.java | 71 final float[] arr = cache.getFloats(reader, field, parser); 76 return arr[doc]; 81 return description() + '=' + arr[doc]; 86 return arr;
|
H A D | IntFieldSource.java | 71 final int[] arr = cache.getInts(reader, field, parser); 76 return arr[doc]; 81 return arr[doc]; 91 return arr;
|
H A D | OrdFieldSource.java | 72 final int[] arr = FieldCache.DEFAULT.getStringIndex(reader, field).order; 77 return arr[doc]; 83 return Integer.toString(arr[doc]); 93 return arr;
|
H A D | ReverseOrdFieldSource.java | 75 final int arr[] = sindex.order; 82 return (end - arr[doc]); 87 return end - arr[doc]; 103 return arr;
|
H A D | ShortFieldSource.java | 71 final short[] arr = cache.getShorts(reader, field, parser); 76 return arr[doc]; 81 return arr[doc]; 91 return arr;
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/search/ |
H A D | TestQueryTypes.java | 55 Object[] arr = new Object[] { 70 String[] sarr = new String[arr.length]; 71 for (int i=0; i<arr.length; i++) { 72 sarr[i] = arr[i].toString(); 79 for (int i=0; i<arr.length; i+=2) { 80 String f = arr[i].toString(); 81 String v = arr[i+1].toString();
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/util/ |
H A D | OpenStringBuilder.java | 35 public OpenStringBuilder(char[] arr, int len) { argument 36 set(arr, len); 41 public void set(char[] arr, int end) { argument 42 this.buf = arr; 119 public final void write(OpenStringBuilder arr) { argument 120 write(arr.buf, 0, len);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/ |
H A D | SortedIntDocSet.java | 61 public static int[] shrink(int[] arr, int newSize) { argument 62 if (arr.length == newSize) return arr; 64 System.arraycopy(arr, 0, newArr, 0, newSize); 69 public static int firstNonSorted(int[] arr, int offset, int len) { argument 71 int lower = arr[offset]; 74 int next = arr[i]; 77 if (arr[j]<next) return j+1; 324 int arr[] = new int[docs.length]; 327 if (other.exists(doc)) arr[icoun 530 findIndex(int[] arr, int value, int low, int high) argument [all...] |
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/util/collections/ |
H A D | IntArrayTest.java | 100 IntArray arr = new IntArray(); 102 arr.addToArray(val); 107 arr.set(i, val); 112 assertEquals(toSet[i], arr.get(i)); 117 arr.set(100, 99);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/highlight/ |
H A D | SolrHighlighter.java | 121 protected boolean emptyArray(String[] arr) { argument 122 return (arr == null || arr.length == 0 || arr[0] == null || arr[0].trim().length() == 0);
|