Searched refs:capacity (Results 1 - 25 of 27) sorted by relevance

12

/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/
H A DByteVector.java51 public ByteVector(int capacity) { argument
52 if (capacity > 0) {
53 blockSize = capacity;
67 public ByteVector(byte[] a, int capacity) { argument
68 if (capacity > 0) {
69 blockSize = capacity;
89 * returns current capacity of array
91 public int capacity() { method in class:ByteVector
H A DCharVector.java51 public CharVector(int capacity) { argument
52 if (capacity > 0) {
53 blockSize = capacity;
67 public CharVector(char[] a, int capacity) { argument
68 if (capacity > 0) {
69 blockSize = capacity;
103 * returns current capacity of array
105 public int capacity() { method in class:CharVector
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/
H A DCollisionMap.java34 private int capacity; field in class:CollisionMap
68 this.capacity = CompactLabelToOrdinal.determineCapacity(2, initialCapacity);
70 this.entries = new Entry[this.capacity];
71 this.threshold = (int) (this.capacity * this.loadFactor);
78 public int capacity() { method in class:CollisionMap
79 return this.capacity;
83 int newCapacity = this.capacity * 2;
102 this.capacity = newCapacity;
104 this.threshold = (int) (this.capacity * this.loadFactor);
108 int bucketIndex = indexFor(hash, this.capacity);
[all...]
H A DCompactLabelToOrdinal.java67 private int capacity; field in class:CompactLabelToOrdinal
83 this.capacity = determineCapacity((int) Math.pow(2, numHashArrays),
91 this.threshold = (int) (this.loadFactor * this.capacity);
95 int capacity = minCapacity;
96 while (capacity < initialCapacity) {
97 capacity <<= 1;
99 return capacity;
108 int c = this.capacity;
196 this.capacity *= 2;
197 this.hashArrays[0] = new HashArray(this.capacity);
564 int capacity; field in class:CompactLabelToOrdinal.HashArray
[all...]
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/collections/
H A DArrayHashMap.java27 * The hashtable is constructed with a given capacity, or 16 as a default. In
29 * adjusted to a power of 2, and there are 2 * capacity entries for the hash.
30 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
136 /** Default capacity - in case no capacity was specified in the constructor */
140 * Holds the base hash entries. if the capacity is 2^N, than the base hash
146 * The current capacity of the map. Always 2^N and never less than 16. We
150 private int capacity; field in class:ArrayHashMap
180 /** Constructs a map with default capacity. */
186 * Constructs a map with given capacity
191 ArrayHashMap(int capacity) argument
[all...]
H A DFloatToObjectMap.java27 * The hashtable is constracted with a given capacity, or 16 as a default. In
29 * Capacity is adjusted to a power of 2, and there are 2 * capacity entries for
32 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
148 * Default capacity - in case no capacity was specified in the constructor
153 * Holds the base hash entries. if the capacity is 2^N, than the base hash
159 * The current capacity of the map. Always 2^N and never less than 16. We
163 private int capacity; field in class:FloatToObjectMap
201 * Constructs a map with default capacity.
208 * Constructs a map with given capacity
214 FloatToObjectMap(int capacity) argument
[all...]
H A DIntHashSet.java30 // we could spare this amount of space (capacity * sizeof(int)). Perhaps even
116 * Default capacity - in case no capacity was specified in the constructor
121 * Holds the base hash entries. if the capacity is 2^N, than the base hash
127 * The current capacity of the map. Always 2^N and never less than 16. We
131 private int capacity; field in class:IntHashSet
165 * Constructs a map with default capacity.
172 * Constructs a map with given capacity. Capacity is adjusted to a native
175 * @param capacity
176 * minimum capacity fo
178 IntHashSet(int capacity) argument
[all...]
H A DIntToDoubleMap.java24 * The hashtable is constracted with a given capacity, or 16 as a default. In
26 * Capacity is adjusted to a power of 2, and there are 2 * capacity entries for
29 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
146 * Default capacity - in case no capacity was specified in the constructor
151 * Holds the base hash entries. if the capacity is 2^N, than the base hash
157 * The current capacity of the map. Always 2^N and never less than 16. We
161 private int capacity; field in class:IntToDoubleMap
199 * Constructs a map with default capacity.
206 * Constructs a map with given capacity
212 IntToDoubleMap(int capacity) argument
[all...]
H A DIntToIntMap.java24 * The hashtable is constracted with a given capacity, or 16 as a default. In
26 * Capacity is adjusted to a power of 2, and there are 2 * capacity entries for
29 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
144 * Default capacity - in case no capacity was specified in the constructor
149 * Holds the base hash entries. if the capacity is 2^N, than the base hash
155 * The current capacity of the map. Always 2^N and never less than 16. We
159 private int capacity; field in class:IntToIntMap
197 * Constructs a map with default capacity.
204 * Constructs a map with given capacity
210 IntToIntMap(int capacity) argument
[all...]
H A DIntToObjectMap.java26 * The hashtable is constracted with a given capacity, or 16 as a default. In
28 * Capacity is adjusted to a power of 2, and there are 2 * capacity entries for
31 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
147 * Default capacity - in case no capacity was specified in the constructor
152 * Holds the base hash entries. if the capacity is 2^N, than the base hash
158 * The current capacity of the map. Always 2^N and never less than 16. We
162 private int capacity; field in class:IntToObjectMap
200 * Constructs a map with default capacity.
207 * Constructs a map with given capacity
213 IntToObjectMap(int capacity) argument
[all...]
H A DObjectToFloatMap.java26 * The hashtable is constructed with a given capacity, or 16 as a default. In
28 * Capacity is adjusted to a power of 2, and there are 2 * capacity entries for
31 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
148 * Default capacity - in case no capacity was specified in the constructor
153 * Holds the base hash entries. if the capacity is 2^N, than the base hash
159 * The current capacity of the map. Always 2^N and never less than 16. We
163 private int capacity; field in class:ObjectToFloatMap
201 * Constructs a map with default capacity.
208 * Constructs a map with given capacity
214 ObjectToFloatMap(int capacity) argument
[all...]
H A DObjectToIntMap.java26 * The hashtable is constructed with a given capacity, or 16 as a default. In
28 * Capacity is adjusted to a power of 2, and there are 2 * capacity entries for
31 * The pre allocated arrays (for keys, values) are at length of capacity + 1,
148 * Default capacity - in case no capacity was specified in the constructor
153 * Holds the base hash entries. if the capacity is 2^N, than the base hash
159 * The current capacity of the map. Always 2^N and never less than 16. We
163 private int capacity; field in class:ObjectToIntMap
201 * Constructs a map with default capacity.
208 * Constructs a map with given capacity
214 ObjectToIntMap(int capacity) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/internal/csv/
H A DCharBuffer.java41 * Creates a new CharBuffer with an initial capacity of 32 characters.
48 * Creates a new CharBuffer with an initial capacity
59 * Empties the buffer. The capacity still remains the same, so no memory is freed.
74 * Returns the current capacity of the buffer.
78 public int capacity() { method in class:CharBuffer
148 * Shrinks the capacity of the buffer to the current length if necessary.
173 * This method allows to avoid copying if the caller knows the exact capacity
211 * Copies the data into a new array of at least <code>capacity</code> size.
212 * @param capacity
214 public void provideCapacity(final int capacity) { argument
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/store/
H A DTestHugeRamFile.java33 private long capacity = 0; field in class:TestHugeRamFile.DenseRAMFile
37 capacity += size;
38 if (capacity <= MAX_VALUE) {
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/store/
H A DTestHugeRamFile.java33 private long capacity = 0; field in class:TestHugeRamFile.DenseRAMFile
37 capacity += size;
38 if (capacity <= MAX_VALUE) {
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DIntsRef.java35 public IntsRef(int capacity) { argument
36 ints = new int[capacity];
H A DCharsRef.java43 * capacity
45 public CharsRef(int capacity) { argument
46 chars = new char[capacity];
H A DRamUsageEstimator.java616 * Minimum capacity for the set.
637 * Cached capacity threshold at which we must resize the buffers.
642 * Creates a hash set with the default capacity of 16.
650 * Creates a hash set with the given capacity, load factor of
658 * Creates a hash set with the given capacity and load factor.
663 assert initialCapacity > 0 : "Initial capacity must be between (0, "
727 * Expand the internal storage buffers (capacity) or rehash current keys and
754 * Allocate internal buffers for a given capacity.
756 * @param capacity
757 * New capacity (mus
759 allocateBuffers(int capacity) argument
[all...]
H A DBytesRef.java62 * Create a BytesRef pointing to a new array of size <code>capacity</code>.
65 public BytesRef(int capacity) { argument
66 this.bytes = new byte[capacity];
H A DBytesRefHash.java39 * Note: The maximum capacity {@link BytesRef} instance passed to
83 public BytesRefHash(ByteBlockPool pool, int capacity, argument
85 hashSize = capacity;
H A DOpenBitSet.java129 /** Returns the current capacity in bits (1 greater than the index of the last bit) */
130 public long capacity() { return bits.length << 6; } method in class:OpenBitSet
133 * Returns the current capacity of this set. Included for
137 return capacity();
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/util/
H A DOpenStringBuilder.java49 public int capacity() { return buf.length; } method in class:OpenStringBuilder
/lucene-3.6.0/solr/solrj/src/java/org/apache/noggit/
H A DCharArr.java72 public int capacity() { return buf.length; } method in class:CharArr
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestPayloads.java577 ByteArrayPool(int capacity, int size) { argument
579 for (int i = 0; i < capacity; i++) {
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestPayloads.java577 ByteArrayPool(int capacity, int size) { argument
579 for (int i = 0; i < capacity; i++) {

Completed in 41 milliseconds

12