Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 72 for Evaluate (0.06 seconds)

  1. internal/s3select/sql/evaluate.go

    func (e *ConditionOperand) evalNode(r Record, tableAlias string) (*Value, error) {
    	opVal, opErr := e.Operand.evalNode(r, tableAlias)
    	if opErr != nil || e.ConditionRHS == nil {
    		return opVal, opErr
    	}
    
    	// Need to evaluate the ConditionRHS
    	switch {
    	case e.ConditionRHS.Compare != nil:
    		cmpRight, cmpRErr := e.ConditionRHS.Compare.Operand.evalNode(r, tableAlias)
    		if cmpRErr != nil {
    			return nil, cmpRErr
    		}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 12K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/script/ScriptEngineTest.java

        // Test evaluate method with empty template
        @Test
        public void test_evaluate_withEmptyTemplate() {
            String template = "";
            Map<String, Object> paramMap = new HashMap<>();
            paramMap.put("key", "value");
    
            Object result = scriptEngine.evaluate(template, paramMap);
            assertEquals("", result);
        }
    
        // Test evaluate method with null template
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

            assertNull(groovyEngine.evaluate("\n", params));
            assertNull(groovyEngine.evaluate("  \t\n  ", params));
        }
    
        /**
         * Test that evaluate handles null paramMap safely
         */
        @Test
        public void test_evaluate_nullParamMap() {
            assertEquals("test", groovyEngine.evaluate("return 'test'", null));
            assertEquals(123, groovyEngine.evaluate("return 123", null));
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/job/impl/ScriptExecutorTest.java

        public void test_execute_scriptEngineReturnsNull() {
            // Setup engine that returns null
            scriptEngineFactory.add("nullEngine", new ScriptEngine() {
                @Override
                public Object evaluate(String template, Map<String, Object> paramMap) {
                    return null;
                }
            });
    
            // Execute and verify null result
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

     *
     * <p>Thread Safety: This class is thread-safe. Each cached entry holds its own
     * GroovyClassLoader. The cache uses Guava Cache with segment-based locking for
     * lock-free concurrent reads. Each evaluate() call creates a new Script instance
     * to ensure thread isolation of bindings.</p>
     *
     * <p>Note on class-level isolation: Compiled Script classes are cached and reused.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

         * The template is evaluated using the specified script engine with the value and context.
         *
         * @param dataMap the data map to modify
         * @param key the key to store the processed value under
         * @param value the original value to process
         * @param template the template script to evaluate
         * @param scriptType the type of script engine to use
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java

         * @return the object defined by the expression
         * @throws IntrospectionException if any
         */
        public static Object evaluate(@Nonnull String expression, @Nullable Object root) throws IntrospectionException {
            return evaluate(expression, root, true);
        }
    
        /**
         * <p>
         * The implementation supports indexed, nested and mapped properties.
         * </p>
         * <ul>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/script/ScriptEngineFactoryTest.java

            }
    
            @Override
            public Object evaluate(String template, Map<String, Object> paramMap) {
                return "TestEngine[" + identifier + "]: " + template;
            }
        }
    
        private static class CustomScriptEngine implements ScriptEngine {
            @Override
            public Object evaluate(String template, Map<String, Object> paramMap) {
                return "CustomEngine: " + template;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/base/Predicates.java

       * Returns a predicate that evaluates to {@code true} if any one of its components evaluates to
       * {@code true}. The components are evaluated in order, and evaluation will be "short-circuited"
       * as soon as a true predicate is found. It defensively copies the iterable passed in, so future
       * changes to it won't alter the behavior of this predicate. If {@code components} is empty, the
       * returned predicate will always evaluate to {@code false}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 26.6K bytes
    - Click Count (0)
  10. guava/src/com/google/common/base/Predicates.java

       * Returns a predicate that evaluates to {@code true} if any one of its components evaluates to
       * {@code true}. The components are evaluated in order, and evaluation will be "short-circuited"
       * as soon as a true predicate is found. It defensively copies the iterable passed in, so future
       * changes to it won't alter the behavior of this predicate. If {@code components} is empty, the
       * returned predicate will always evaluate to {@code false}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 26.6K bytes
    - Click Count (0)
Back to Top