Searched defs:newSize (Results 1 - 9 of 9) sorted by relevance

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/
H A DTermAttribute.java69 /** Grows the termBuffer to at least size newSize, preserving the
76 * @param newSize minimum size of the new termBuffer
77 * @return newly created termBuffer with length >= newSize
79 public char[] resizeTermBuffer(int newSize); argument
H A DCharTermAttribute.java44 /** Grows the termBuffer to at least size newSize, preserving the
46 * @param newSize minimum size of the new termBuffer
47 * @return newly created termBuffer with length >= newSize
49 public char[] resizeBuffer(int newSize); argument
H A DCharTermAttributeImpl.java80 public final char[] resizeBuffer(int newSize) { argument
81 if(termBuffer.length < newSize){
84 final char[] newCharBuffer = new char[ArrayUtil.oversize(newSize, RamUsageEstimator.NUM_BYTES_CHAR)];
92 public char[] resizeTermBuffer(int newSize) { argument
93 return resizeBuffer(newSize);
96 private void growTermBuffer(int newSize) { argument
97 if(termBuffer.length < newSize){
100 termBuffer = new char[ArrayUtil.oversize(newSize, RamUsageEstimator.NUM_BYTES_CHAR)];
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DSortedVIntList.java146 private void resizeBytes(int newSize) { argument
147 if (newSize != bytes.length) {
148 byte[] newBytes = new byte[newSize];
H A DBytesRefHash.java206 int newSize = hashSize;
207 while (newSize >= 8 && newSize / 4 > targetSize) {
208 newSize /= 2;
210 if (newSize != hashSize) {
212 * -(hashSize - newSize));
213 hashSize = newSize;
216 hashHalfSize = newSize / 2;
217 hashMask = newSize - 1;
408 private void rehash(final int newSize, boolea argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/packed/
H A DGrowableWriter.java95 public GrowableWriter resize(int newSize) { argument
96 GrowableWriter next = new GrowableWriter(getBitsPerValue(), newSize, roundFixedSize);
97 final int limit = Math.min(size(), newSize);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/
H A DBufferedIndexInput.java69 public final void setBufferSize(int newSize) { argument
71 if (newSize != bufferSize) {
72 checkBufferSize(newSize);
73 bufferSize = newSize;
78 byte[] newBuffer = new byte[newSize];
81 if (leftInBuffer > newSize)
82 numToCopy = newSize;
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DSortedIntDocSet.java61 public static int[] shrink(int[] arr, int newSize) { argument
62 if (arr.length == newSize) return arr;
63 int[] newArr = new int[newSize];
64 System.arraycopy(arr, 0, newArr, 0, newSize);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DTermsHashPerField.java97 final int newSize = 4;
98 if (newSize != postingsHash.length) {
100 postingsHash = new int[newSize];
101 bytesUsed((newSize-previousSize)*RamUsageEstimator.NUM_BYTES_INT);
103 postingsHashSize = newSize;
104 postingsHashHalfSize = newSize/2;
105 postingsHashMask = newSize-1;
539 void rehashPostings(final int newSize) { argument
541 final int newMask = newSize-1;
543 int[] newHash = new int[newSize];
[all...]

Completed in 20 milliseconds