Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 82 for getIndex (0.06 seconds)

  1. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

            NdrShort ns = new NdrShort(original);
            buf.reset();
            ns.encode(buf); // should not throw
    
            // After encoding, check how many bytes were used
            int bytesUsed = buf.getIndex();
            // Should be 2 bytes for the short value (alignment may add padding)
            assertTrue(bytesUsed >= 2, "Should use at least 2 bytes for short");
    
            // Reset index to read back
            buf.reset();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/collection/IndexedIterator.java

     *     System.out.println(indexed.getIndex());
     *     System.out.println(indexed.getElement());
     * }
     * </pre>
     *
     * <pre>
     * import static org.codelibs.core.collection.IndexedIterator.*;
     * import static org.codelibs.core.io.LineIterator.*;
     *
     * BufferedReader reader = ...;
     * for (Indexed&lt;String&gt; indexed : indexed(iterable(reader))) {
     *     System.out.println(indexed.getIndex());
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/request/suggest/SuggestResponseTest.java

            SuggestResponse response = new SuggestResponse("test-index", 100, words, 10, items);
    
            assertNotNull(response);
            assertEquals("test-index", response.getIndex());
            assertEquals(100, response.getTookMs());
            assertEquals(2, response.getNum());
            assertEquals(10, response.getTotal());
            assertEquals(2, response.getWords().size());
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsResponseTest.java

            PopularWordsResponse response = new PopularWordsResponse("test-index", 100, words, 10, items);
    
            assertNotNull(response);
            assertEquals("test-index", response.getIndex());
            assertEquals(100, response.getTookMs());
            assertEquals(2, response.getNum());
            assertEquals(10, response.getTotal());
            assertEquals(2, response.getWords().size());
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Thu Nov 13 00:40:54 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/suggest/index/operations/ContentIndexingOperations.java

            if (logger.isInfoEnabled()) {
                logger.info("Indexing from query logs: count={}, index={}", queryLogs.length, ctx.getIndex());
            }
            try {
                final long start = System.currentTimeMillis();
                Stream<QueryLog> stream = Stream.of(queryLogs);
                if (parallel) {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 21.7K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

            boolQueryBuilder.mustNot(QueryBuilders.termQuery(FieldNames.KINDS, SuggestItem.Kind.USER.toString()));
    
            SuggestUtil.deleteByQuery(ComponentUtil.getSearchEngineClient(), suggester.settings(), suggester.getIndex(), boolQueryBuilder);
        }
    
        /**
         * Purges old suggest data from search logs.
         *
         * @param time The timestamp to purge data before.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/suggest/request/suggest/SuggestRequestBuilderTest.java

            assertEquals(1, response.getNum());
        }
    
        @Test
        public void test_setIndex() throws Exception {
            indexItems();
    
            SuggestResponse response = suggester.suggest().setIndex(suggester.getIndex()).setQuery("test").execute().getResponse();
    
            assertNotNull(response);
        }
    
        @Test
        public void test_setSize() throws Exception {
            indexItems();
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  8. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                message.ptype = DcerpcConstants.RPC_PT_REQUEST; // 0
                message.call_id = 1;
                message.opnumValue = 5;
    
                when(mockBuffer.getIndex()).thenReturn(0).thenReturn(16).thenReturn(20).thenReturn(24);
                lenient().doNothing().when(mockBuffer).advance(anyInt());
                lenient().doNothing().when(mockBuffer).enc_ndr_long(anyInt());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequestTest.java

            assertTrue(response.getTotal() > 0);
            assertNotNull(response.getWords());
            assertNotNull(response.getIndex());
        }
    
        @Test
        public void test_setters() throws Exception {
            PopularWordsRequest request = new PopularWordsRequest();
            request.setIndex("test-index");
            request.setSize(20);
            request.setSeed("test-seed");
            request.setWindowSize(30);
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/DateFormatting.kt

            // Something was parsed. It's possible the entire string was not consumed but we ignore
            // that. If any of the BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS ended in "'GMT'" we'd have
            // to also check that position.getIndex() == value.length() otherwise parsing might have
            // terminated early, ignoring things like "+01:00". Leaving this as != 0 means that any
            // trailing junk is ignored.
            return result
          }
        }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 4.1K bytes
    - Click Count (0)
Back to Top