Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Distinct (0.07 sec)

  1. src/test/java/org/codelibs/fess/ldap/LdapUserTest.java

        }
    
        public void test_distinct_nullInput() {
            // Test distinct with null input
            String[] result = invokeDistinct(null);
            assertNotNull(result);
            assertEquals(0, result.length);
            assertSame(StringUtil.EMPTY_STRINGS, result);
        }
    
        public void test_distinct_emptyArray() {
            // Test distinct with empty array
            String[] input = new String[0];
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  2. statement.go

    		Model:                stmt.Model,
    		Unscoped:             stmt.Unscoped,
    		Dest:                 stmt.Dest,
    		ReflectValue:         stmt.ReflectValue,
    		Clauses:              map[string]clause.Clause{},
    		Distinct:             stmt.Distinct,
    		Selects:              stmt.Selects,
    		Omits:                stmt.Omits,
    		ColumnMapping:        stmt.ColumnMapping,
    		Preloads:             map[string][]interface{}{},
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  3. generics.go

    func (c chainG[T]) MapColumns(m map[string]string) ChainInterface[T] {
    	return c.with(func(db *DB) *DB {
    		return db.MapColumns(m)
    	})
    }
    
    func (c chainG[T]) Distinct(args ...interface{}) ChainInterface[T] {
    	return c.with(func(db *DB) *DB {
    		return db.Distinct(args...)
    	})
    }
    
    func (c chainG[T]) Group(name string) ChainInterface[T] {
    	return c.with(func(db *DB) *DB {
    		return db.Group(name)
    	})
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  4. finisher_api.go

    				if tx.Statement.Parse(tx.Statement.Model) == nil {
    					if f := tx.Statement.Schema.LookUpField(dbName); f != nil {
    						dbName = f.DBName
    					}
    				}
    
    				if tx.Statement.Distinct {
    					expr = clause.Expr{SQL: "COUNT(DISTINCT(?))", Vars: []interface{}{clause.Column{Name: dbName}}}
    				} else if dbName != "*" {
    					expr = clause.Expr{SQL: "COUNT(?)", Vars: []interface{}{clause.Column{Name: dbName}}}
    				}
    			}
    		}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 26 06:24:29 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  5. tests/generics_test.go

    		t.Fatalf("CreateInBatches failed: %v", err)
    	}
    
    	results, err := gorm.G[User](DB).Where("name like ?", "GenericsDistinct%").Distinct("name").Find(ctx)
    	if err != nil {
    		t.Fatalf("Distinct Find failed: %v", err)
    	}
    
    	if len(results) != 2 {
    		t.Errorf("expected 2 distinct names, got %d", len(results))
    	}
    
    	var names []string
    	for _, u := range results {
    		names = append(names, u.Name)
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/sso/aad/AzureAdAuthenticator.java

            roleList.addAll(getDefaultRoleList());
            processMemberOf(user, groupList, roleList, "https://graph.microsoft.com/v1.0/me/memberOf");
            user.setGroups(groupList.stream().distinct().toArray(n -> new String[n]));
            user.setRoles(roleList.stream().distinct().toArray(n -> new String[n]));
        }
    
        /**
         * Processes member-of information from Microsoft Graph API.
         * @param user The Azure AD user.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 28 09:13:08 UTC 2025
    - 37.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/base/login/AzureAdCredential.java

                    stream(roles).of(stream -> stream.forEach(s -> permissionSet.add(systemHelper.getSearchRoleByRole(s))));
                    permissions = permissionSet.stream().filter(StringUtil::isNotBlank).distinct().toArray(n -> new String[n]);
                }
                return permissions;
            }
    
            @Override
            public boolean refresh() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 28 09:13:08 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/entity/FacetQueryViewTest.java

            facetQueryView.init();
    
            // Size should remain the same
            assertEquals(firstSize, facetQueryView.getQueryMap().size());
            // But queries would be added again to FacetInfo (distinct handles duplicates)
            assertTrue(testFacetInfo.getAddedQueries().size() >= firstQueriesCount);
        }
    
        // Test complex scenarios
        public void test_init_withMixedQueries() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/BloomFilter.java

       */
      public double expectedFpp() {
        return Math.pow((double) bits.bitCount() / bitSize(), numHashFunctions);
      }
    
      /**
       * Returns an estimate for the total number of distinct elements that have been added to this
       * Bloom filter. This approximation is reasonably accurate if it does not exceed the value of
       * {@code expectedInsertions} that was used when constructing the filter.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  10. cmd/iam-store.go

    type ParentUserInfo struct {
    	subClaimValue string
    	roleArns      set.StringSet
    }
    
    // GetAllParentUsers - returns all distinct "parent-users" associated with STS
    // or service credentials, mapped to all distinct roleARNs associated with the
    // parent user. The dummy role ARN is associated with parent users from
    // policy-claim based OpenID providers. The root credential as a parent
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 86.7K bytes
    - Viewed (0)
Back to top