Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 37 for Processor (0.07 seconds)

  1. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorEdgeCaseTest.java

            try (RankFusionProcessor processor = new RankFusionProcessor()) {
                processor.setSearcher(new TestSearcher(100));
                processor.register(new TestSearcher(0)); // Empty searcher
                processor.register(new TestSearcher(50)); // Half-full searcher
                processor.init();
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorErrorHandlingTest.java

            try (RankFusionProcessor processor = new RankFusionProcessor()) {
                processor.setSearcher(new TestSearcher(100));
                processor.register(new NullDocumentSearcher());
                processor.init();
    
                // Should handle null documents gracefully
                final List<Map<String, Object>> results = processor.search("*", new TestSearchRequestParams(0, 10, 0), OptionalThing.empty());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorConcurrencyTest.java

            final CountDownLatch endLatch = new CountDownLatch(numThreads);
            final AtomicInteger registeredCount = new AtomicInteger(0);
    
            try (RankFusionProcessor processor = new RankFusionProcessor()) {
                processor.setSearcher(new TestSearcher(100));
                processor.init();
    
                final ExecutorService executor = Executors.newFixedThreadPool(numThreads);
                try {
                    for (int i = 0; i < numThreads; i++) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/curl/CurlRequestTest.java

            CurlRequest.RequestProcessor processor1 = new CurlRequest.RequestProcessor("UTF-8", 1024);
            CurlRequest.RequestProcessor processor2 = new CurlRequest.RequestProcessor("ISO-8859-1", 2048);
            CurlRequest.RequestProcessor processor3 = new CurlRequest.RequestProcessor("UTF-16", 512);
    
            assertNotNull(processor1.getResponse());
            assertNotNull(processor2.getResponse());
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 24.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/job/UpdateLabelJobTest.java

                        java.util.function.BiFunction<org.opensearch.action.update.UpdateRequestBuilder, org.opensearch.search.SearchHit, org.opensearch.action.update.UpdateRequestBuilder> processor) {
                    // Return a fixed count for testing
                    return 3L;
                }
            };
            ComponentUtil.register(mockSearchEngineClient, "searchEngineClient");
    
            // Mock FessConfig
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/io/CharSource.java

       *     processor} throws an {@code IOException}
       * @since 16.0
       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public <T extends @Nullable Object> T readLines(LineProcessor<T> processor) throws IOException {
        checkNotNull(processor);
    
        Closer closer = Closer.create();
        try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/io/ByteSourceTest.java

                return processedBytes;
              }
            };
    
        source.read(processor);
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
        assertArrayEquals(bytes, processedBytes);
      }
    
      public void testRead_withProcessor_stopsOnFalse() throws IOException {
        ByteProcessor<@Nullable Void> processor =
            new ByteProcessor<@Nullable Void>() {
              boolean firstCall = true;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/io/FilesTest.java

              }
            };
    
        File asciiFile = getTestFile("ascii.txt");
        byte[] result = Files.readBytes(asciiFile, processor);
        assertEquals(Bytes.asList(Files.toByteArray(asciiFile)), Bytes.asList(result));
      }
    
      public void testReadBytes_returnFalse() throws IOException {
        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              private final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/io/Files.java

       *
       * @param file the file to read
       * @param processor the object to which the bytes of the file are passed.
       * @return the result of the byte processor
       * @throws IOException if an I/O error occurs
       * @deprecated Prefer {@code asByteSource(file).read(processor)}.
       */
      @Deprecated
      @InlineMe(
          replacement = "Files.asByteSource(file).read(processor)",
          imports = "com.google.common.io.Files")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jan 05 22:13:21 GMT 2026
    - 32.8K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

                return processedBytes;
              }
            };
    
        source.read(processor);
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
        assertArrayEquals(bytes, processedBytes);
      }
    
      public void testRead_withProcessor_stopsOnFalse() throws IOException {
        ByteProcessor<@Nullable Void> processor =
            new ByteProcessor<@Nullable Void>() {
              boolean firstCall = true;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
Back to Top