Searched defs:set (Results 1 - 25 of 42) sorted by relevance

12

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DSetOnce.java24 * implementation which allows one to set the value of an object exactly once,
25 * and retrieve it many times. If {@link #set(Object)} is called more than once,
33 /** Thrown when {@link SetOnce#set(Object)} is called more than once. */
36 super("The object cannot be set twice!");
41 private final AtomicBoolean set; field in class:SetOnce
44 * A default constructor which does not set the internal object, and allows
45 * setting it by calling {@link #set(Object)}.
48 set = new AtomicBoolean(false);
52 * Creates a new instance with the internal object set to the given object.
53 * Note that any calls to {@link #set(Objec
65 public final void set(T obj) { method in class:SetOnce
[all...]
H A DCloseableThreadLocal.java67 // On each get or set we decrement this; when it hits 0 we
68 // purge. After purge, we set this to
82 set(iv);
93 public void set(T object) { method in class:CloseableThreadLocal
95 t.set(new WeakReference<T>(object));
127 countUntilPurge.set(nextCount);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DTermInfo.java45 final void set(int docFreq, method in class:TermInfo
53 final void set(TermInfo ti) { method in class:TermInfo
H A DTerm.java121 final void set(String fld, String txt) { method in class:Term
H A DTermBuffer.java29 private boolean dirty; // true if text was set externally (ie not read via UTF8 bytes)
89 public final void set(Term term) { method in class:TermBuffer
103 public final void set(TermBuffer other) { method in class:TermBuffer
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/
H A DTestSetOnce.java28 SetOnce<Integer> set; field in class:TestSetOnce.SetOnceThread
40 set.set(new Integer(Integer.parseInt(getName().substring(2))));
54 SetOnce<Integer> set = new SetOnce<Integer>();
55 assertNull(set.get());
60 SetOnce<Integer> set = new SetOnce<Integer>(new Integer(5));
61 assertEquals(5, set.get().intValue());
62 set.set(new Integer(7));
67 SetOnce<Integer> set
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/util/
H A DTestSetOnce.java28 SetOnce<Integer> set; field in class:TestSetOnce.SetOnceThread
40 set.set(new Integer(Integer.parseInt(getName().substring(2))));
54 SetOnce<Integer> set = new SetOnce<Integer>();
55 assertNull(set.get());
60 SetOnce<Integer> set = new SetOnce<Integer>(new Integer(5));
61 assertEquals(5, set.get().intValue());
62 set.set(new Integer(7));
67 SetOnce<Integer> set
[all...]
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/encoding/
H A DSortingIntEncoder.java36 private int[] set = new int[1024]; field in class:SortingIntEncoder
49 Arrays.sort(set, 0, index);
51 encoder.encode(set[i]);
61 if (index == set.length) {
62 int[] newSet = new int[(int) (set.length * grow)];
63 System.arraycopy(set, 0, newSet, 0, set.length);
64 set = newSet;
66 set[index++] = value;
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/
H A DAbstractQueryConfig.java28 * It has operations to set, unset and get configuration values.
94 * Returns true if there is a value set with the given key, otherwise false.
98 * @return true if there is a value set with the given key, otherwise false
117 public <T> void set(ConfigurationKey<T> key, T value) { method in class:AbstractQueryConfig
155 * @return true if the key and value was set and removed, otherwise false
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/packed/
H A DDirect16.java76 public void set(final int index, final long value) { method in class:Direct16
H A DDirect32.java72 public void set(final int index, final long value) { method in class:Direct32
H A DDirect64.java68 public void set(final int index, final long value) { method in class:Direct64
H A DDirect8.java77 public void set(final int index, final long value) { method in class:Direct8
H A DGrowableWriter.java73 public void set(int index, long value) { method in class:GrowableWriter
83 next.set(i, current.get(i));
88 current.set(index, value);
99 next.set(i, get(i));
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/index/attributes/
H A DCategoryAttribute.java42 public void set(CategoryAttribute other); method in interface:CategoryAttribute
99 * @return A set containing the active property classes, or {@code null} if
H A DCategoryAttributeImpl.java63 public void set(CategoryAttribute other) { method in class:CategoryAttributeImpl
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/util/
H A DScoredDocIdsUtils.java40 * Create a complement of the input set. The returned {@link ScoredDocIDs}
44 * Note: the complement set does NOT contain doc ids which are noted as deleted by the given reader
64 // Remove all Deletions from the complement set
71 * Clear all deleted documents from a given open-bit-set according to a given reader
74 final OpenBitSet set) throws IOException {
81 DocIdSetIterator it = set.iterator();
85 set.fastClear(doc);
93 * @param allDocIds orginal set
175 * The returned set contains the range of [0 .. reader.maxDoc ) doc ids
73 clearDeleted(final IndexReader reader, final OpenBitSet set) argument
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/collections/
H A DIntArray.java64 * @param set
68 public void intersect(IntHashSet set) { argument
71 if (set.contains(data[i])) {
134 * values actually set.
223 public void set(int idx, int value) { method in class:IntArray
243 * Clear the IntArray (set all elements to zero).
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/
H A DQueryNode.java89 public void set(List<QueryNode> children); method in interface:QueryNode
H A DQueryNodeImpl.java89 public final void set(List<QueryNode> children) { method in class:QueryNodeImpl
111 // add new children and set parent
222 * If set to true the the method toQueryString will not write field names
/lucene-3.6.0/lucene/contrib/spatial/src/java/org/apache/lucene/spatial/geometry/shape/
H A DPoint2D.java85 public void set(double x, double y) { method in class:Point2D
95 public void set(Point2D p1) { method in class:Point2D
105 public void set(Vector2D v) { method in class:Point2D
H A DVector2D.java89 public void set(double x, double y) { method in class:Vector2D
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/
H A DStringBuilderReader.java63 set(sb);
157 public void set(StringBuilder sb) { method in class:StringBuilderReader
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/params/
H A DModifiableSolrParams.java30 * parameters after it is initialized. It has helper functions to set/add
66 public ModifiableSolrParams set( String name, String ... val ) { method in class:ModifiableSolrParams
75 public ModifiableSolrParams set( String name, int val ) { method in class:ModifiableSolrParams
76 set( name, String.valueOf(val) );
80 public ModifiableSolrParams set( String name, boolean val ) { method in class:ModifiableSolrParams
81 set( name, String.valueOf(val) );
117 set(name, params.getParams(name));
152 set(name, tmp2);
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/
H A DQueryNodeProcessorPipeline.java39 * When a {@link QueryConfigHandler} object is set on a
69 * @return QueryConfigHandler the query configuration handler to be set.
120 * @param queryConfigHandler the query configuration handler to be set.
284 * @see List#set(int, Object)
286 public QueryNodeProcessor set(int index, QueryNodeProcessor processor) { method in class:QueryNodeProcessorPipeline
287 QueryNodeProcessor oldProcessor = this.processors.set(index, processor);

Completed in 63 milliseconds

12