Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 63 for get$index (0.82 sec)

  1. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            m.ptype = 0; // request
            m.flags = 0x05;
            m.alloc_hint = 0;
            NdrBuffer buf = new NdrBuffer(new byte[1024], 0);
            m.encode(buf);
            // decode back
            buf.setIndex(0);
            m.decode_header(buf);
            assertEquals(0, m.ptype);
        }
    
        @Test
        void testDecodeHeaderInvalidVersion() {
            NdrBuffer buf = new NdrBuffer(new byte[10], 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. 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();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/Suggester.java

        }
    
        /**
         * Creates a new PopularWordsRequestBuilder for querying popular words.
         * @return A PopularWordsRequestBuilder instance.
         */
        public PopularWordsRequestBuilder popularWords() {
            return new PopularWordsRequestBuilder(client).setIndex(getSearchAlias(index));
        }
    
        /**
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 21.6K bytes
    - Viewed (3)
  4. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

            when(mockSearchResponse.getHits()).thenReturn(mockSearchHits);
            when(mockSearchHits.getHits()).thenReturn(new SearchHit[] { mockHit }, new SearchHit[0]);
            when(mockHit.getIndex()).thenReturn("test-index");
            when(mockHit.getId()).thenReturn("doc1");
    
            // Setup scroll response (empty on second call)
            when(mockClient.prepareSearchScroll("scroll1")).thenReturn(mockScrollBuilder);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:44:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java

            final List<String> words = new ArrayList<>();
            final List<SuggestItem> items = new ArrayList<>();
    
            final String index;
            if (hits.length > 0) {
                index = hits[0].getIndex();
            } else {
                index = SuggestConstants.EMPTY_STRING;
            }
    
            for (final SearchHit hit : hits) {
                final Map<String, Object> source = hit.getSourceAsMap();
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  6. 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());
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/collection/Indexed.java

         *
         * @return the element
         */
        public T getElement() {
            return element;
        }
    
        /**
         * Returns the index.
         *
         * @return the index
         */
        public int getIndex() {
            return index;
        }
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsResponse.java

            this.total = total;
            this.items = items;
        }
    
        /**
         * Returns the index associated with the response.
         *
         * @return the index
         */
        public String getIndex() {
            return index;
        }
    
        /**
         * Returns the time taken to generate the response in milliseconds.
         *
         * @return the time taken in milliseconds
         */
        public long getTookMs() {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequestBuilder.java

        }
    
        /**
         * Sets the index for the request.
         * @param index The index name.
         * @return This builder instance.
         */
        public PopularWordsRequestBuilder setIndex(final String index) {
            request.setIndex(index);
            return this;
        }
    
        /**
         * Sets the size of results for the request.
         * @param size The size.
         * @return This builder instance.
         */
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequestBuilder.java

        }
    
        /**
         * Sets the index for the request.
         * @param index The index name.
         * @return This builder instance.
         */
        public SuggestRequestBuilder setIndex(final String index) {
            request.setIndex(index);
            return this;
        }
    
        /**
         * Sets the size of results for the request.
         * @param size The size.
         * @return This builder instance.
         */
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 4.8K bytes
    - Viewed (0)
Back to top