Searched defs:label (Results 1 - 17 of 17) sorted by relevance

/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/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 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...]
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...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/fst/
H A DBytesRefFSTEnum.java107 protected void setCurrentLabel(int label) { argument
108 current.bytes[upto] = (byte) label;
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 DIntsRefFSTEnum.java107 protected void setCurrentLabel(int label) { argument
108 current.ints[upto] = label;
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 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/contrib/facet/src/test/org/apache/lucene/facet/search/
H A DTestMultipleCategoryLists.java377 private static void checkResult(FacetResultNode sub, String label, double value) { argument
379 label, sub.getLabel().toString());
/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/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/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/test-framework/src/java/org/apache/lucene/util/
H A DLuceneTestCase.java902 * @param label String logged before/after the items in the iterator
906 public static void dumpIterator(String label, Iterator<?> iter, argument
908 stream.println("*** BEGIN " + label + " ***");
916 stream.println("*** END " + label + " ***");
924 public static void dumpArray(String label, Object[] objs, argument
927 dumpIterator(label, iter, stream);
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/util/
H A DLuceneTestCase.java743 * @param label String logged before/after the items in the iterator
747 public static void dumpIterator(String label, Iterator<?> iter, argument
749 stream.println("*** BEGIN " + label + " ***");
757 stream.println("*** END " + label + " ***");
765 public static void dumpArray(String label, Object[] objs, argument
768 dumpIterator(label, iter, stream);

Completed in 3507 milliseconds