Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for calculateDocumentSize (0.18 sec)

  1. 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: 2024-10-31 13:40
    - Last Modified: 2024-02-22 01:53
    - 7.9K 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/")));
        }
    Registered: 2024-10-31 13:40
    - Last Modified: 2024-07-24 08:54
    - 23.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

                        response.getSuccessfulShards(), response.getFailedShards());
            }
            return response.getStatus().getStatus();
        }
    
        public long calculateDocumentSize(final Map<String, Object> dataMap) {
            return MemoryUtil.sizeOf(dataMap);
        }
    
        public void setMaxRetryCount(final int maxRetryCount) {
            this.maxRetryCount = maxRetryCount;
        }
    
    Registered: 2024-10-31 13:40
    - Last Modified: 2024-10-11 21:11
    - 16.8K bytes
    - Viewed (0)
  4. 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: 2024-10-31 13:40
    - Last Modified: 2024-10-11 21:20
    - 24.2K bytes
    - Viewed (0)
Back to top