Examples of typeClass()


Examples of com.foundationdb.server.types.TInstance.typeClass()

                    else
                        throw new OverloadException("couldn't resolve overload because of unknown input at position " + i);
                }
            }
            else {
                inputTypeClass = inputInstance.typeClass();
            }

            if (requireExact) {
                if (inputSet.targetType() == null) {
                    // We're in an ANY-exact input set. The semantics are:
View Full Code Here

Examples of com.foundationdb.server.types.TInstance.typeClass()

                TInstance inputInstance = inputTpv.type();
                if (inputInstance == null) {
                    // unknown type, like a NULL literal or parameter
                    continue;
                }
                TClass inputClass = inputInstance.typeClass();
                if (common == null) {
                    // First input we've seen, so just use it.
                    common = inputClass;
                    commonInst = inputInstance;
                }
View Full Code Here

Examples of com.foundationdb.server.types.TInstance.typeClass()

            for (JoinColumn join : foreignKey.getJoinColumns()) {
                parent.bind(join.getParent().getFieldDef(), row);
                child.bind(join.getChild().getFieldDef(), row);
                TInstance pInst = parent.getType();
                TInstance cInst = child.getType();
                TKeyComparable comparable = typesRegistryService.getKeyComparable(pInst.typeClass(), cInst.typeClass());
                int c = (comparable != null) ?
                    comparable.getComparison().compare(pInst, parent, cInst, child) :
                    TClass.compare(pInst, parent, cInst, child);
                selfReference &= (c == 0);
            }
View Full Code Here

Examples of com.foundationdb.server.types.TInstance.typeClass()

        public void doConvert(ValueSource source, RowDataValueTarget target, FieldDef fieldDef) {
            TInstance type = target.targetType();
            if (stringInput != null) {
                // turn the string input into a ValueSource, then give it to TClass.fromObject.
                // Strings being inserted to binary types are a special, weird case.
                if (type.typeClass() instanceof MBinary) {
                    target.putStringBytes(stringInput);
                    return;
                }
                if (stringCache == null)
                    stringCache = new Value(MString.VARCHAR.instance(Integer.MAX_VALUE, true));
View Full Code Here

Examples of com.foundationdb.server.types.TInstance.typeClass()

                }
                if (stringCache == null)
                    stringCache = new Value(MString.VARCHAR.instance(Integer.MAX_VALUE, true));
                stringCache.putString(stringInput, null);
                TExecutionContext context = new TExecutionContext(null, type, null);
                type.typeClass().fromObject(context, stringCache, value);
            }
            type.writeCanonical(value, target);
        }

        @Override
View Full Code Here

Examples of com.foundationdb.server.types.TInstance.typeClass()

        final AkibanInformationSchema inAIS = CAOIBuilderFiller.createAndFillBuilder(SCHEMA).ais(false);
        inAIS.getTable(SCHEMA, CAOIBuilderFiller.ORDER_TABLE).
                setCharsetAndCollation("utf16", "sv_se_ci");
        Column column = inAIS.getTable(SCHEMA, CAOIBuilderFiller.CUSTOMER_TABLE).getColumn("customer_name");
        TInstance type = column.getType();
        type = type.typeClass().instance(
                        type.attribute(StringAttribute.MAX_LENGTH),
                        StringFactory.Charset.LATIN1.ordinal(),
                        AkCollatorFactory.getAkCollator("en_us").getCollationId(),
                        type.nullability());
        column.setType(type);
View Full Code Here

Examples of com.foundationdb.server.types.TInstance.typeClass()

        return new Predicate<List<? extends TPreptimeValue>>() {
            @Override
            public boolean apply(List<? extends TPreptimeValue> input) {
                for (int i = 0, size=input.size(); i < size; ++i) {
                    TInstance type = input.get(i).type();
                    if ((type != null) && (type.typeClass() == tClassFinal))
                        return true;
                }
                return false;
            }
        };
View Full Code Here

Examples of com.foundationdb.server.types.TInstance.typeClass()

        return new Predicate<List<? extends TPreptimeValue>>() {
            @Override
            public boolean apply(List<? extends TPreptimeValue> inputs) {
                for (int i = 0, size = inputs.size(); i < size; ++i) {
                    TInstance type = inputs.get(i).type();
                    if (type == null || (!asSet.contains(type.typeClass())))
                        return false;
                }
                return true;
            }
        };
View Full Code Here

Examples of play.utils.meta.convert.Converter.typeClass()

        if (log.isDebugEnabled())
          log.debug("converterClass : " + converterClass);

        Converter converter = converterClass.newInstance();
        if (converter != null) {
          Class<?> keyClass = converter.typeClass();
          log.info("Converter:" + keyClass + " : " + converter);
          map.put(keyClass, converter);
        }
      } catch (Exception e) {
        e.printStackTrace();
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.