Examples of normalize()


Examples of org.apache.directory.shared.ldap.model.schema.Normalizer.normalize()

                        return comparator.compare( getNormValue(), other.getNormValue() ) == 0;
                    }
                    else
                    {
                        Normalizer normalizer = attributeType.getEquality().getNormalizer();
                        return comparator.compare( normalizer.normalize( getValue() ),
                            normalizer.normalize( other.getValue() ) ) == 0;
                    }
                }
            }
            catch ( LdapException ne )
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.schema.normalizers.DeepTrimNormalizer.normalize()

{
    @Test
    public void testDeepTrimNormalizerNull() throws LdapException
    {
        Normalizer normalizer = new DeepTrimNormalizer( "1.1.1" );
        assertEquals( "", normalizer.normalize( ( String ) null ) );
    }


    @Test
    public void testDeepTrimNormalizerEmpty() throws LdapException
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.schema.normalizers.NumericNormalizer.normalize()

{
    @Test
    public void testNumericNormalizerNull() throws LdapException
    {
        Normalizer normalizer = new NumericNormalizer();
        assertEquals( "", normalizer.normalize( ( String ) null ) );
    }


    @Test
    public void testNumericNormalizerEmpty() throws LdapException
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.schema.normalizers.TelephoneNumberNormalizer.normalize()

{
    @Test
    public void testTelephoneNumberNormalizerNull() throws LdapException
    {
        Normalizer normalizer = new TelephoneNumberNormalizer();
        assertEquals( "", normalizer.normalize( ( String ) null ) );
    }


    @Test
    public void testTelephoneNumberNormalizerEmpty() throws LdapException
View Full Code Here

Examples of org.apache.directory.shared.ldap.name.DN.normalize()

       
        try
        {
            // Normalize the opContext DN
            DN dn = opContext.getDn();
            dn.normalize( directoryService.getSchemaManager().getNormalizerMapping() );

            // We have to deal with the referral first
            directoryService.getReferralManager().lockRead();

            if ( directoryService.getReferralManager().hasParentReferral( dn ) )
View Full Code Here

Examples of org.apache.directory.shared.ldap.name.LdapDN.normalize()

                ( ( OrNode ) filter ).addNode( uuidEqNode );
            }
        }

        LdapDN dn = new LdapDN( config.getBaseDn() );
        dn.normalize( schemaManager.getNormalizerMapping() );

        EntryFilteringCursor cursor = session.search( dn, SearchScope.SUBTREE, filter, AliasDerefMode.NEVER_DEREF_ALIASES, new HashSet() );
   
        while( cursor.next() )
        {
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.Normalizer.normalize()

        {
            normalizedValue = wrapped;
        }
        else
        {
            normalizedValue = ( String ) normalizer.normalize( wrapped );
        }

        normalized = true;
    }
   
View Full Code Here

Examples of org.apache.ldap.common.schema.Normalizer.normalize()

            Name upSuffix = new LdapName( configs[ii].getSuffix() );

            Normalizer dnNorm = reg.lookup( "distinguishedNameMatch" ) .getNormalizer();

            Name normSuffix = new LdapName( ( String ) dnNorm.normalize( configs[ii].getSuffix() ) );

            Database db = new JdbmDatabase( upSuffix, normSuffix, wkdir );

            // ----------------------------------------------------------------
            // create the search engine using db, enumerators and evaluators
View Full Code Here

Examples of org.apache.lucene.search.Weight.normalize()

        return baseWeight.getValueForNormalization();
      }

      @Override
      public void normalize(float norm, float topLevelBoost) {
        baseWeight.normalize(norm, topLevelBoost);
      }

      @Override
      public boolean scoresDocsOutOfOrder() {
        // TODO: would be nice if AssertingIndexSearcher
View Full Code Here

Examples of org.apache.lucene.search.similarities.Similarity.SimWeight.normalize()

          TermContext context = TermContext.build(reader.getContext(), term);
          SimWeight w = weight.similarity.computeWeight(1f,
                        searcher.collectionStatistics("field"),
                        searcher.termStatistics(term, context));
          w.getValueForNormalization(); // ignored
          w.normalize(1F, 1F);
          sims[(int)ord] = weight.similarity.simScorer(w, reader.getContext());
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.