Searched defs:array (Results 1 - 13 of 13) sorted by relevance

/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/
H A DFloatArrayAllocator.java23 * An FloatArrayAllocator is an object which manages float array objects
44 * threads ask for an allocation, all of them will get a counter array,
51 * allocator, always allocating a new array and never reusing an old one.
64 public void clear(float[] array) { argument
65 Arrays.fill(array, 0);
H A DIntArrayAllocator.java23 * An IntArrayAllocator is an object which manages counter array objects
44 * threads ask for an allocation, all of them will get a counter array,
51 * allocator, always allocating a new array and never reusing an old one.
64 public void clear(int[] array) { argument
65 Arrays.fill(array, 0);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/
H A DPrimUtils.java32 /** Sort the integer array from "start" inclusive to "end" exclusive in ascending order,
36 public static void sort(int start, int end, int[] array, IntComparator comparator) { argument
45 for (int j = i; j > start && comparator.lessThan(array[j], array[j - 1]); j--) {
46 temp = array[j];
47 array[j] = array[j - 1];
48 array[j - 1] = temp;
59 bottom = med3(array, bottom, bottom + length, bottom
61 middle = med3(array, middl
118 med3(int[] array, int a, int b, int c, IntComparator comparator) argument
[all...]
/lucene-3.6.0/lucene/contrib/icu/src/java/org/apache/lucene/analysis/icu/segmentation/
H A DCharArrayIterator.java27 private char array[]; field in class:CharArrayIterator
34 return array;
48 * @param array text buffer to examine
52 void setText(final char array[], int start, int length) { argument
53 this.array = array;
61 return (index == limit) ? DONE : array[index];
114 clone.setText(array, start, length);
/lucene-3.6.0/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/carrot2/
H A DLuceneCarrot2TokenizerFactory.java139 public void setTermBuffer(MutableCharArray array) { argument
140 array.reset(term.buffer(), 0, term.length());
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/
H A DByteVector.java25 * array.
38 * The encapsulated array
40 private byte[] array; field in class:ByteVector
57 array = new byte[blockSize];
63 array = a;
73 array = a;
78 return array;
82 * return number of items in array
89 * returns current capacity of array
92 return array
[all...]
H A DCharVector.java24 * array.
38 * The encapsulated array
40 private char[] array; field in class:CharVector
57 array = new char[blockSize];
63 array = a;
73 array = a;
86 CharVector cv = new CharVector(array.clone(), blockSize);
92 return array;
96 * return number of items in array
103 * returns current capacity of array
[all...]
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/
H A DQueryNodeProcessorPipeline.java314 public <T> T[] toArray(T[] array) { argument
315 return this.processors.toArray(array);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/util/
H A DCharArrayIterator.java29 private char array[]; field in class:CharArrayIterator
36 return array;
50 * @param array text buffer to examine
54 public void setText(final char array[], int start, int length) { argument
55 this.array = array;
63 return (index == limit) ? DONE : jreBugWorkaround(array[index]);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DArrayUtil.java60 * Parses a char array into an int.
61 * @param chars the character array
62 * @param offset The offset into the array
140 /** Returns an array size >= minTargetSize, generally
142 * linear-time cost as the array grows.
148 * array reallocation algorithms", started on Jan 12
153 * the array. See constants in {@link RamUsageEstimator}.
162 throw new IllegalArgumentException("invalid array size " + minTargetSize);
186 // int overflowed -- return max allowed array size
238 public static short[] grow(short[] array, in argument
248 grow(short[] array) argument
252 grow(float[] array, int minSize) argument
262 grow(float[] array) argument
266 grow(double[] array, int minSize) argument
276 grow(double[] array) argument
280 shrink(short[] array, int targetSize) argument
291 grow(int[] array, int minSize) argument
301 grow(int[] array) argument
305 shrink(int[] array, int targetSize) argument
316 grow(long[] array, int minSize) argument
326 grow(long[] array) argument
330 shrink(long[] array, int targetSize) argument
341 grow(byte[] array, int minSize) argument
351 grow(byte[] array) argument
355 shrink(byte[] array, int targetSize) argument
366 grow(boolean[] array, int minSize) argument
376 grow(boolean[] array) argument
380 shrink(boolean[] array, int targetSize) argument
391 grow(char[] array, int minSize) argument
401 grow(char[] array) argument
405 shrink(char[] array, int targetSize) argument
416 grow(int[][] array, int minSize) argument
427 grow(int[][] array) argument
431 shrink(int[][] array, int targetSize) argument
443 grow(float[][] array, int minSize) argument
454 grow(float[][] array) argument
458 shrink(float[][] array, int targetSize) argument
474 hashCode(char[] array, int start, int end) argument
485 hashCode(byte[] array, int start, int end) argument
[all...]
H A DRamUsageEstimator.java52 OBJECT_REFERENCE_SIZE("Object reference size estimated using array index scale"),
53 ARRAY_HEADER_SIZE("Array header size estimated using array based offset"),
101 * Number of bytes to represent an array header (no content, but with alignments).
205 // Get the array header size by retrieving the array base offset
206 // (offset of the first element of an array).
347 * memory taken by array storage (no subreferences will be followed). For objects, this
368 * @throws IllegalArgumentException if {@code clazz} is an array class.
372 throw new IllegalArgumentException("This method does not work with array classes.");
391 * Return shallow size of any <code>array</cod
393 shallowSizeOfArray(Object array) argument
[all...]
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/util/
H A D_TestUtil.java166 public static String arrayToString(int[] array) { argument
169 for(int i=0;i<array.length;i++) {
173 buf.append(array[i]);
197 public static String arrayToString(Object[] array) { argument
200 for(int i=0;i<array.length;i++) {
204 buf.append(array[i]);
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/util/
H A D_TestUtil.java167 public static String arrayToString(int[] array) { argument
170 for(int i=0;i<array.length;i++) {
174 buf.append(array[i]);
198 public static String arrayToString(Object[] array) { argument
201 for(int i=0;i<array.length;i++) {
205 buf.append(array[i]);

Completed in 24 milliseconds