Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for fromSource (0.05 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/SocksProxy.kt

      private fun acceptCommand(
        fromAddress: InetAddress,
        fromSource: BufferedSource,
        fromSink: BufferedSink,
      ) {
        // Read the command.
        val version = fromSource.readByte() and 0xff
        if (version != VERSION_5) throw ProtocolException("unexpected version: $version")
    
        val command = fromSource.readByte() and 0xff
    
        val reserved = fromSource.readByte() and 0xff
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/suggest/entity/SuggestItemSerializer.java

        /**
         * Parses a source map from OpenSearch and creates a SuggestItem.
         *
         * @param source The source map from OpenSearch
         * @return A new SuggestItem instance
         */
        public static SuggestItem fromSource(final Map<String, Object> source) {
            final String text = source.get(FieldNames.TEXT).toString();
            final List<String[]> readings = new ArrayList<>();
            for (int i = 0;; i++) {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemSerializerTest.java

            source.put(FieldNames.KINDS, Arrays.asList("document"));
            source.put(FieldNames.TIMESTAMP, System.currentTimeMillis());
    
            SuggestItem item = SuggestItemSerializer.fromSource(source);
    
            assertNotNull(item);
            assertEquals("test text", item.getText());
            assertEquals(10L, item.getDocFreq());
            assertEquals(5L, item.getQueryFreq());
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

         * @param source The source map.
         * @return A SuggestItem instance.
         */
        public static SuggestItem parseSource(final Map<String, Object> source) {
            return SuggestItemSerializer.fromSource(source);
        }
    
        /**
         * Returns the updated source map by merging with existing source.
         * @param existingSource The existing source map.
         * @return The updated source map.
         */
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 13.5K bytes
    - Click Count (0)
Back to Top