Searched defs:value (Results 1 - 25 of 160) sorted by relevance

1234567

/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/encoding/
H A DSimpleIntEncoder.java30 * This method makes sure the value wasn't previously encoded by checking
31 * against the Set. If the value wasn't encoded, it's added to the Set, and
34 * @param value
40 public void encode(int value) throws IOException { argument
41 out.write(value >>> 24);
42 out.write((value >> 16) & 0xFF);
43 out.write((value >> 8) & 0xFF);
44 out.write(value & 0xFF);
H A DVInt8IntEncoder.java52 public void encode(int value) throws IOException { argument
53 if ((value & ~0x7F) == 0) {
54 out.write(value);
55 } else if ((value & ~0x3FFF) == 0) {
56 out.write(0x80 | (value >> 7));
57 out.write(0x7F & value);
58 } else if ((value & ~0x1FFFFF) == 0) {
59 out.write(0x80 | (value >> 14));
60 out.write(0x80 | (value >> 7));
61 out.write(0x7F & value);
[all...]
H A DDGapIntEncoder.java48 public void encode(int value) throws IOException { argument
49 encoder.encode(value - prev);
50 prev = value;
H A DIntEncoder.java25 * override {@link #encode(int)} to encode the value using their encoding
81 public abstract void encode(int value) throws IOException; argument
86 * value. If an encoder is just a filter, it should at least return its
H A DNOnesIntEncoder.java27 * <li>Values &ge; 2 are trnalsated to <code>value+1</code> (2 &rArr; 3, 3
45 * the first value to encode, and you wrap this encoder with
46 * {@link DGapIntEncoder}, then the value that will be sent to this encoder will
53 /** Number of consecutive '1's to be translated into single target value '2'. */
60 * Constructs an encoder with a given value of N (N: Number of consecutive
61 * '1's to be translated into single target value '2').
78 public void encode(int value) throws IOException { argument
79 if (value == 1) {
89 // this value
95 // encode value
[all...]
H A DUniqueValuesIntEncoder.java34 * Denotes an illegal value which we can use to init 'prev' to. Since all
35 * encoded values are integers, this value is init to MAX_INT+1 and is of type
36 * long. Therefore we are guaranteed not to get this value in encode.
48 public void encode(int value) throws IOException { argument
49 if (prev != value) {
50 encoder.encode(value);
51 prev = value;
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/
H A DValueQueryNode.java22 * arbitrary value.
26 public void setValue(T value); argument
H A DOpaqueQueryNode.java33 private CharSequence value = null; field in class:OpaqueQueryNode
38 * @param value
39 * - value that was not parsed
41 public OpaqueQueryNode(CharSequence schema, CharSequence value) { argument
45 this.value = value;
51 return "<opaque schema='" + this.schema + "' value='" + this.value + "'/>";
55 return "@" + this.schema + ":'" + this.value + "'";
63 clone.value
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/
H A DAttributeReflector.java27 * passing the class name of the {@link Attribute}, a key and the actual value.
30 * as attribute class, {@code "term"} as key and the actual value as a String.
32 public void reflect(Class<? extends Attribute> attClass, String key, Object value); argument
H A DDoubleBarrelLRUCache.java91 public void put(K key, V value) { argument
101 primary.put(key, value);
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/enhancements/association/
H A DAssociationFloatProperty.java34 * @param value
35 * The association value.
37 public AssociationFloatProperty(float value) { argument
38 super(Float.floatToIntBits(value));
H A DAssociationIntProperty.java31 * @param value
32 * The association value.
34 public AssociationIntProperty(int value) { argument
35 super(value);
H A DAssociationProperty.java24 * A {@link CategoryProperty} associating a single integer value to a
31 * <B>Note:</B> The association value is added both to a special category list,
44 * @param value
45 * The association value.
47 public AssociationProperty(int value) { argument
48 this.association = value;
52 * Returns the association value.
54 * @return The association value.
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/
H A DHeap.java38 * Insert a new value, returning the overflowen object <br>
41 public T insertWithOverflow(T value); argument
44 * Add a new value to the heap, return the new top(). <br>
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/util/collections/
H A DIntToDoubleMapTest.java31 private static void assertGround(double value) { argument
32 assertEquals(IntToDoubleMap.GROUND, value, Double.MAX_VALUE);
42 int value = 100 + i;
43 assertFalse(map.containsValue(value));
44 map.put(i, value);
45 assertTrue(map.containsValue(value));
125 int value = i * 4096;
126 assertFalse(map.containsValue(value));
127 map.put(i, value);
128 assertTrue(map.containsValue(value));
[all...]
H A DIntToIntMapTest.java30 private static void assertGround(int value) { argument
31 assertEquals(IntToIntMap.GROUD, value);
41 int value = 100 + i;
42 assertFalse(map.containsValue(value));
43 map.put(i, value);
44 assertTrue(map.containsValue(value));
124 int value = i * 4096;
125 assertFalse(map.containsValue(value));
126 map.put(i, value);
127 assertTrue(map.containsValue(value));
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/
H A DCompressionTools.java40 public static byte[] compress(byte[] value, int offset, int length, int compressionLevel) { argument
52 compressor.setInput(value, offset, length);
69 public static byte[] compress(byte[] value, int offset, int length) { argument
70 return compress(value, offset, length, Deflater.BEST_COMPRESSION);
74 public static byte[] compress(byte[] value) { argument
75 return compress(value, 0, value.length, Deflater.BEST_COMPRESSION);
78 /** Compresses the String value, with default BEST_COMPRESSION level */
79 public static byte[] compressString(String value) { argument
80 return compressString(value, Deflate
86 compressString(String value, int compressionLevel) argument
94 decompress(byte[] value) argument
118 decompressString(byte[] value) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DComplexExplanation.java21 * can distinguish a match independent of a positive value. */
29 public ComplexExplanation(boolean match, float value, String description) { argument
32 super(value, description);
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestSegmentTermEnum.java126 private void addDoc(IndexWriter writer, String value) throws IOException argument
129 doc.add(newField("content", value, Field.Store.NO, Field.Index.ANALYZED));
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/store/
H A DTestCopyBytes.java29 private byte value(int idx) { method in class:TestCopyBytes
50 bytes[byteUpto++] = value(upto);
89 assertEquals(value(upto), v);
95 assertEquals(value(upto), bytes[byteIdx]);
/lucene-3.6.0/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/
H A DDateFormatTransformer.java87 private Date process(Object value, String format, Locale locale) throws ParseException { argument
88 if (value == null) return null;
89 String strVal = value.toString().trim();
H A DHTMLStripTransformer.java64 String value = tmpVal.toString();
65 Object o = stripHTML(value, col);
73 private Object stripHTML(String value, String column) { argument
75 StringReader strReader = new StringReader(value);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestSegmentTermEnum.java126 private void addDoc(IndexWriter writer, String value) throws IOException argument
129 doc.add(newField("content", value, Field.Store.NO, Field.Index.ANALYZED));
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/store/
H A DTestCopyBytes.java29 private byte value(int idx) { method in class:TestCopyBytes
50 bytes[byteUpto++] = value(upto);
89 assertEquals(value(upto), v);
95 assertEquals(value(upto), bytes[byteIdx]);
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/demohtml/
H A DEntities.java57 buffer.append((char) j); // use ASCII value
66 static final void add(String entity, int value) { argument
67 decoder.put(entity, (new Character((char)value)).toString());
68 if (value < 0x100)
69 encoder[value] = entity;

Completed in 3071 milliseconds

1234567