/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/util/encoding/ |
H A D | SimpleIntEncoder.java | 30 * 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 D | VInt8IntEncoder.java | 52 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 D | DGapIntEncoder.java | 48 public void encode(int value) throws IOException { argument 49 encoder.encode(value - prev); 50 prev = value;
|
H A D | IntEncoder.java | 25 * 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 D | NOnesIntEncoder.java | 27 * <li>Values ≥ 2 are trnalsated to <code>value+1</code> (2 ⇒ 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 D | UniqueValuesIntEncoder.java | 34 * 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 D | ValueQueryNode.java | 22 * arbitrary value. 26 public void setValue(T value); argument
|
H A D | OpaqueQueryNode.java | 33 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 D | AttributeReflector.java | 27 * 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 D | DoubleBarrelLRUCache.java | 91 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 D | AssociationFloatProperty.java | 34 * @param value 35 * The association value. 37 public AssociationFloatProperty(float value) { argument 38 super(Float.floatToIntBits(value));
|
H A D | AssociationIntProperty.java | 31 * @param value 32 * The association value. 34 public AssociationIntProperty(int value) { argument 35 super(value);
|
H A D | AssociationProperty.java | 24 * 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 D | Heap.java | 38 * 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 D | IntToDoubleMapTest.java | 31 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 D | IntToIntMapTest.java | 30 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 D | CompressionTools.java | 40 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 D | ComplexExplanation.java | 21 * 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 D | TestSegmentTermEnum.java | 126 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 D | TestCopyBytes.java | 29 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 D | DateFormatTransformer.java | 87 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 D | HTMLStripTransformer.java | 64 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 D | TestSegmentTermEnum.java | 126 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 D | TestCopyBytes.java | 29 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 D | Entities.java | 57 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;
|