Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for calculateDocumentSize (0.09 sec)

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

            public void sendDocuments(SearchEngineClient searchEngineClient, DocList docList) {
                sendDocumentsCalled++;
                docList.clear();
            }
    
            @Override
            public long calculateDocumentSize(Map<String, Object> dataMap) {
                return documentSize;
            }
        }
    
        private static class TestCrawlingInfoHelper extends CrawlingInfoHelper {
            @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

        }
    
        public void test_calculateDocumentSize() {
            assertEquals(0, indexingHelper.calculateDocumentSize(Collections.emptyMap()));
            assertEquals(118, indexingHelper.calculateDocumentSize(Map.of("id", "test")));
            assertEquals(249, indexingHelper.calculateDocumentSize(Map.of("id", "test", "url", "http://test.com/")));
        }
    
        public void test_setMaxRetryCount() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 29.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImpl.java

            ComponentUtil.getLanguageHelper().updateDocument(dataMap);
    
            synchronized (docList) {
                docList.add(ingest(paramMap, dataMap));
                final long contentSize = indexingHelper.calculateDocumentSize(dataMap);
                docList.addContentSize(contentSize);
                final long processingTime = systemHelper.getCurrentTimeAsLong() - startTime;
                docList.addProcessingTime(processingTime);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

         *
         * @param dataMap the document data as a map of field names to values
         * @return the estimated memory size in bytes
         */
        public long calculateDocumentSize(final Map<String, Object> dataMap) {
            return MemoryUtil.sizeOf(dataMap);
        }
    
        /**
         * Sets the maximum number of retry attempts for failed operations.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 26.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

            @Override
            public void sendDocuments(SearchEngineClient client, DocList docList) {
                docList.clear();
            }
    
            @Override
            public long calculateDocumentSize(Map<String, Object> map) {
                return 100L;
            }
        }
    
        private static class TestIntervalControlHelper extends IntervalControlHelper {
            private boolean crawlerRunning = true;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                        updateDocument(map);
    
                        docList.add(ingest(accessResult, map));
                        final long contentSize = indexingHelper.calculateDocumentSize(map);
                        docList.addContentSize(contentSize);
                        final long processingTime = systemHelper.getCurrentTimeAsLong() - startTime;
                        docList.addProcessingTime(processingTime);
    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