Searched refs:label (Results 1 - 25 of 34) sorted by relevance

12

/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/
H A DLabelToOrdinal.java48 * Adds a new label if its not yet in the table.
49 * Throws an {@link IllegalArgumentException} if the same label with
52 public abstract void addLabel(CategoryPath label, int ordinal); argument
55 * Adds a new label if its not yet in the table.
56 * Throws an {@link IllegalArgumentException} if the same label with
59 public abstract void addLabel(CategoryPath label, int prefixLen, int ordinal); argument
62 * @return the ordinal assigned to the given label,
63 * or {@link #InvalidOrdinal} if the label cannot be found in this table.
65 public abstract int getOrdinal(CategoryPath label); argument
68 * @return the ordinal assigned to the given label,
71 getOrdinal(CategoryPath label, int prefixLen) argument
[all...]
H A DCompactLabelToOrdinal.java116 public void addLabel(CategoryPath label, int ordinal) { argument
121 int hash = CompactLabelToOrdinal.stringHashCode(label);
123 if (addLabel(this.hashArrays[i], label, hash, ordinal)) {
128 int prevVal = this.collisionMap.addLabel(label, hash, ordinal);
131 label.toString('/') + " prev ordinal " + prevVal);
136 public void addLabel(CategoryPath label, int prefixLen, int ordinal) { argument
141 int hash = CompactLabelToOrdinal.stringHashCode(label, prefixLen);
143 if (addLabel(this.hashArrays[i], label, prefixLen, hash, ordinal)) {
148 int prevVal = this.collisionMap.addLabel(label, prefixLen, hash, ordinal);
151 label
156 getOrdinal(CategoryPath label) argument
173 getOrdinal(CategoryPath label, int prefixLen) argument
242 addLabel(HashArray a, CategoryPath label, int hash, int ordinal) argument
262 addLabel(HashArray a, CategoryPath label, int prefixLen, int hash, int ordinal) argument
312 getOrdinal(HashArray a, CategoryPath label, int hash) argument
330 getOrdinal(HashArray a, CategoryPath label, int prefixLen, int hash) argument
369 stringHashCode(CategoryPath label) argument
379 stringHashCode(CategoryPath label, int prefixLen) argument
[all...]
H A DCollisionMap.java107 public int get(CategoryPath label, int hash) { argument
111 while (e != null && !(hash == e.hash && label.equalsToSerialized(this.labelRepository, e.offset))) {
121 public int get(CategoryPath label, int prefixLen, int hash) { argument
125 while (e != null && !(hash == e.hash && label.equalsToSerialized(prefixLen, this.labelRepository, e.offset))) {
135 public int addLabel(CategoryPath label, int hash, int cid) { argument
138 if (e.hash == hash && label.equalsToSerialized(this.labelRepository, e.offset)) {
143 // new string; add to label repository
146 label.serializeAppendTo(labelRepository);
155 public int addLabel(CategoryPath label, int prefixLen, int hash, int cid) { argument
158 if (e.hash == hash && label
[all...]
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/cl2o/
H A DTestCompactLabelToOrdinal.java70 CategoryPath label = new CategoryPath(uniqueValues[index], '/');
72 int ord1 = map.getOrdinal(label);
73 int ord2 = compact.getOrdinal(label);
82 map.addLabel(label, ord1);
83 compact.addLabel(label, ord1);
88 CategoryPath label = new CategoryPath(uniqueValues[i], '/');
89 int ord1 = map.getOrdinal(label);
90 int ord2 = compact.getOrdinal(label);
101 public void addLabel(CategoryPath label, int ordinal) { argument
102 map.put(new CategoryPath(label), ordina
106 addLabel(CategoryPath label, int prefixLen, int ordinal) argument
111 getOrdinal(CategoryPath label) argument
117 getOrdinal(CategoryPath label, int prefixLen) argument
[all...]
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/params/
H A DFacetParams.java247 public static FacetRangeOther get(String label) { argument
249 return valueOf(label.toUpperCase());
253 label+" is not a valid type of 'other' range facet information",e);
266 public static FacetDateOther get(String label) { argument
268 return valueOf(label.toUpperCase());
272 label+" is not a valid type of 'other' range facet information",e);
300 public static FacetRangeInclude get(String label) { argument
302 return valueOf(label.toUpperCase());
306 label+" is not a valid type of for range 'include' information",e);
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/results/
H A DMutableFacetResultNode.java41 private CategoryPath label = null; field in class:MutableFacetResultNode
75 label = null;
88 * @param label
89 * label of the category path of this result.
95 CategoryPath label, List<FacetResultNode> subResults) {
99 this.label = label;
154 // label
179 return label;
183 * Set the label o
94 MutableFacetResultNode(int ordinal, double value, double residue, CategoryPath label, List<FacetResultNode> subResults) argument
187 setLabel(CategoryPath label) argument
[all...]
/lucene-3.6.0/solr/contrib/clustering/src/test/org/apache/solr/handler/clustering/carrot2/
H A DMockClusteringAlgorithm.java66 StringBuilder label = new StringBuilder("Cluster " + documentIndex);
67 Cluster cluster = createCluster(label.toString(), documentIndex, document);
70 label.append(".");
71 label.append(i);
72 Cluster newCluster = createCluster(label.toString(), documentIndex, document);
73 cluster.addSubclusters(createCluster(label.toString(), documentIndex, document), newCluster);
/lucene-3.6.0/lucene/contrib/xml-query-parser/docs/
H A Dcctree.js30 function _CCTreeModelNode(id,label,link,alwaysOpen,initiallyOpen)
33 this.label = label;
39 // By default, childLabels[i] == children[i].label,
41 // a child label that is specific to that parent-child
51 else this.childLabels.push(child.label);
55 function _CCDisplayNode(modelNode,parentNode,treeId,label)
61 if (label) this.label = label;
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/fst/
H A DFSTEnum.java56 protected abstract void setCurrentLabel(int label); argument
98 //System.out.println(" check pop curArc target=" + arcs[upto].target + " label=" + arcs[upto].label + " isLast?=" + arcs[upto].isLast());
139 //System.out.println(" cycle upto=" + upto + " arc.label=" + arc.label + " (" + (char) arc.label + ") vs targetLabel=" + targetLabel);
141 if (arc.bytesPerArc != 0 && arc.label != -1) {
176 assert arc.label == targetLabel: "arc.label=" + arc.label
[all...]
H A DBuilder.java238 //System.out.println(" label=" + ((char) lastInput.ints[lastInput.offset+idx-1]) + " idx=" + idx + " inputCount=" + frontier[idx].inputCount + " doCompile=" + doCompile + " doPrune=" + doPrune);
465 //System.out.println("seg=" + segment + " FORCE final arc=" + (char) arc.label);
475 public int label; // really an "unsigned" byte field in class:Builder.Arc
544 assert arcs[numArcs-1].label == labelToMatch;
548 public void addArc(int label, Node target) { argument
549 assert label >= 0;
550 assert numArcs == 0 || label > arcs[numArcs-1].label: "arc[-1].label=" + arcs[numArcs-1].label
577 deleteLast(int label, Node target) argument
[all...]
H A DNodeHash.java44 if (arc.label != scratchArc.label ||
74 //System.out.println(" label=" + arc.label + " target=" + ((Builder.CompiledNode) arc.target).node + " h=" + h + " output=" + fst.outputs.outputToString(arc.output) + " isFinal?=" + arc.isFinal);
75 h = PRIME * h + arc.label;
95 //System.out.println(" label=" + scratchArc.label + " target=" + scratchArc.target + " h=" + h + " output=" + fst.outputs.outputToString(scratchArc.output) + " next?=" + scratchArc.flag(4) + " final?=" + scratchArc.isFinal());
96 h = PRIME * h + scratchArc.label;
H A DBytesRefFSTEnum.java107 protected void setCurrentLabel(int label) { argument
108 current.bytes[upto] = (byte) label;
H A DIntsRefFSTEnum.java107 protected void setCurrentLabel(int label) { argument
108 current.ints[upto] = label;
H A DUtil.java159 //System.out.println(" cycle mid=" + mid + " label=" + (char) label + " output=" + minArcOutput);
179 result.ints[upto++] = arc.label;
187 //System.out.println(" cycle label=" + arc.label + " output=" + arc.output);
197 result.ints[upto++] = arc.label;
206 result.ints[upto++] = arc.label;
208 //System.out.println(" recurse prev label=" + (char) arc.label + " output=" + output);
214 //System.out.println(" recurse last label
772 emitDotState(Writer out, String name, String shape, String color, String label) argument
785 printableLabel(int label) argument
[all...]
H A DFST.java70 /** Specifies allowed range of each int input label for
158 // If arc has this label then that arc is final/accepted
167 public int label; field in class:FST.Arc
180 // address (into the byte[]), or ord/address if label == END_LABEL
192 label = other.label;
224 b.append(" label=" + label);
392 assert arc.label != END_LABEL;
393 if (arc.label < cachedRootArc
[all...]
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/analysis/
H A DTokenStreamToDot.java41 * label. */
119 protected void writeArc(int fromNode, int toNode, String label, String style) { argument
121 if (label != null) {
122 out.print(" label=\"" + label + "\"");
130 protected void writeNode(int name, String label) { argument
132 if (label != null) {
133 out.print(" [label=\"" + label + "\"]");
145 out.println(" graph [ fontsize=30 labelloc=\"t\" label
[all...]
/lucene-3.6.0/lucene/site/build/site/skin/
H A Dbasic.css46 .note .label {
59 .warning .label {
72 .fixme .label {
/lucene-3.6.0/lucene/site/src/documentation/skins/lucene/css/
H A Dbasic.css46 .note .label {
59 .warning .label {
72 .fixme .label {
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/suggest/fst/
H A DFSTCompletion.java178 if (arc.label == FST.END_LABEL) {
180 return rootArc.label;
271 if (collect(res, num, rootArc.label, output, arc) && !collectAll) {
358 output.bytes[output.length++] = (byte) arc.label;
362 if (arc.label == FST.END_LABEL) {
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/taxonomy/directory/
H A DDirectoryTaxonomyReader.java224 String label = getLabel(ordinal);
225 if (label==null) {
228 return new CategoryPath(label, delimiter);
233 String label = getLabel(ordinal);
234 if (label==null) {
238 result.add(label, delimiter);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DFieldCacheSanityChecker.java389 private final String label; field in class:FieldCacheSanityChecker.InsanityType
390 private InsanityType(final String label) { argument
391 this.label = label;
394 public String toString() { return label; }
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/index/
H A DFacetsPayloadProcessorProviderTest.java81 int label = Integer.parseInt(facet.getLabel().getComponent(1));
82 //System.out.println(label + ": " + weight);
84 System.out.println(label + ": " + weight);
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DBaseTestRangeFilter.java182 String label = a + ":" + aa + " vs " + b + ":" + bb;
183 assertEquals("length of " + label, aa.length(), bb.length());
184 assertTrue("compare less than " + label, aa.compareTo(bb) < 0);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DBaseTestRangeFilter.java182 String label = a + ":" + aa + " vs " + b + ":" + bb;
183 assertEquals("length of " + label, aa.length(), bb.length());
184 assertTrue("compare less than " + label, aa.compareTo(bb) < 0);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/update/
H A DUpdateHandler.java64 final String label = "Event Listener";
68 SolrEventListener obj = core.createInitInstance(info,clazz,label,null);
72 SolrEventListener obj = core.createInitInstance(info,clazz,label,null);

Completed in 36 milliseconds

12