Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getDocumentSize (0.2 sec)

  1. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

            assertEquals(0L, callback.getDocumentSize());
            assertEquals(0L, callback.getExecuteTime());
    
            // Test store method
            DataStoreParams params = new DataStoreParams();
            Map<String, Object> data = new HashMap<>();
            data.put("key1", "value1");
            callback.store(params, data);
    
            assertEquals(1L, callback.getDocumentSize());
            assertEquals(100L, callback.getExecuteTime());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImplTest.java

            assertEquals(0, indexUpdateCallback.getDocumentSize());
    
            DataStoreParams paramMap = new DataStoreParams();
            Map<String, Object> dataMap = new HashMap<>();
            dataMap.put("url", "http://example.com/test");
    
            indexUpdateCallback.store(paramMap, dataMap);
            assertEquals(1, indexUpdateCallback.getDocumentSize());
    
            dataMap.put("url", "http://example.com/test2");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/ds/DataStoreTest.java

            // Execute store
            dataStore.store(config, callback, params);
    
            // Verify callback was used correctly
            assertEquals(2, callback.getDocumentSize());
            assertTrue(callback.isCommitted());
        }
    
        public void test_multiple_datastore_instances() {
            // Test multiple DataStore instances working independently
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java

            @Override
            public long getExecuteTime() {
                return 100L;
            }
    
            @Override
            public long getDocumentSize() {
                return 10L;
            }
    
            @Override
            public void commit() {
                /* No-op */ }
    
            @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImpl.java

            }
        }
    
        /**
         * Returns the total number of documents processed.
         *
         * @return the number of documents processed
         */
        @Override
        public long getDocumentSize() {
            return documentSize.get();
        }
    
        /**
         * Returns the total execution time for all operations.
         *
         * @return the total execution time in milliseconds
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java

            if (logger.isDebugEnabled()) {
                logger.debug("Deleted {}", deleteUrlList);
            }
            deleteUrlList.clear();
        }
    
        @Override
        public long getDocumentSize() {
            return indexUpdateCallback.getDocumentSize();
        }
    
        @Override
        public long getExecuteTime() {
            return indexUpdateCallback.getExecuteTime();
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/WebFsIndexHelper.java

            crawlingInfoHelper.putToInfoMap(Constants.WEB_FS_INDEX_EXEC_TIME, Long.toString(indexUpdater.getExecuteTime()));
            crawlingInfoHelper.putToInfoMap(Constants.WEB_FS_INDEX_SIZE, Long.toString(indexUpdater.getDocumentSize()));
    
            if (systemHelper.isForceStop()) {
                return;
            }
    
            for (final String sid : sessionIdList) {
                // remove config
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/DataIndexHelper.java

            crawlingInfoHelper.putToInfoMap(Constants.DATA_INDEX_EXEC_TIME, Long.toString(indexUpdateCallback.getExecuteTime()));
            crawlingInfoHelper.putToInfoMap(Constants.DATA_INDEX_SIZE, Long.toString(indexUpdateCallback.getDocumentSize()));
    
            for (final String sid : sessionIdList) {
                // remove config
                ComponentUtil.getCrawlingConfigHelper().remove(sid);
            }
    
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

            // Test executeTime
            assertEquals(0L, indexUpdater.getExecuteTime());
    
            // Test documentSize
            assertEquals(0L, indexUpdater.getDocumentSize());
        }
    
        // Test setUncaughtExceptionHandler
        public void test_setUncaughtExceptionHandler() {
            final AtomicBoolean handlerCalled = new AtomicBoolean(false);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

            this.finishCrawling = finishCrawling;
        }
    
        /**
         * Gets the total number of documents processed.
         *
         * @return the total document count
         */
        public long getDocumentSize() {
            return documentSize;
        }
    
        /**
         * Sets the uncaught exception handler for this IndexUpdater thread.
         *
         * @param eh the uncaught exception handler to set
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 32.7K bytes
    - Viewed (0)
Back to top