Package com.foundationdb.server.types

Examples of com.foundationdb.server.types.TCastIdentifier


        for (Map.Entry<TClass, Map<TClass,TCast>> origEntry : castsBySource.entrySet()) {
            final TClass source = origEntry.getKey();
            Map<TClass, TCast> filteredView = Maps.filterKeys(origEntry.getValue(), new Predicate<TClass>() {
                @Override
                public boolean apply(TClass target) {
                    return (source == target) || strongCasts.contains(new TCastIdentifier(source, target));
                }
            });
            assert ! filteredView.isEmpty() : "no strong casts (including self casts) found for " + source;
            result.put(source, new HashMap<>(filteredView));
        }
View Full Code Here


            logger.error("CAST({} AS {}): {} replaced by {} ", new Object[]{
                    source, target,  old.getClass(), cast.getClass()
            });
            if (duplicates == null)
                throw new AkibanInternalException("multiple casts defined from " + source + " to " + target);
            duplicates.add(new TCastIdentifier(source, target));
        }
    }
View Full Code Here

            return this;
        }

        public Initializer casts(TCast... casts) {
            for (TCast cast : casts) {
                if (!castIdentifiers.add(new TCastIdentifier(cast)))
                    continue;
                if (cast instanceof TestCastBase) {
                    TStrongCasts strongCasts = ((TestCastBase) cast).strongCasts();
                    if (strongCasts != null)
                        finder.put(TStrongCasts.class, strongCasts);
View Full Code Here

TOP

Related Classes of com.foundationdb.server.types.TCastIdentifier

Copyright © 2018 www.massapicom. 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.