Package com.foundationdb.server.collation

Examples of com.foundationdb.server.collation.AkCollator.compare()


        private boolean eqP(ValueSource x, ValueSource y, TInstance type)
        {
            if (type.typeClass() instanceof TString) {
                AkCollator collator = TString.getCollator(type);
                if (collator != null) {
                    return collator.compare(x, y) == 0;
                }
            }
            return ValueSources.areEqual(x, y);
        }
View Full Code Here


        CharacterTypeAttributes bAttrs = StringAttribute.characterTypeAttributes(typeB);
        AkCollator collator = mergeAkCollators(aAttrs, bAttrs);
        if (collator == null)
            // TODO in the future, we may want to use some default collator. For now, just use native comparison
            return sourceA.getString().compareTo(sourceB.getString());
        return collator.compare(sourceA, sourceB);
    }

    @Override
    public boolean attributeIsPhysical(int attributeIndex) {
        return attributeIndex != StringAttribute.MAX_LENGTH.ordinal();
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.