Examples of TClass


Examples of com.foundationdb.server.types.TClass

    }

    protected TInstance typeForStringType(int jdbcType, DataTypeDescriptor type,
                                          int defaultCharsetId, int defaultCollationId,
                                          String schemaName, String tableName, String columnName) {
        TClass tclass = typeClassForJDBCType(jdbcType, schemaName, tableName, columnName);
        if (tclass == null)
            return null;
        return typeForStringType(tclass, type,
                defaultCharsetId, defaultCollationId,
                schemaName, tableName, columnName);
View Full Code Here

Examples of com.foundationdb.server.types.TClass

        // from M.
        if (castGroup.isEmpty())
            throw new OverloadException("no common types found for " + tClass1 + " and " + tClass2);

        // N^2 operation number 2...
        TClass mostSpecific = null;
        for (TClass candidate : castGroup) {
            if (isMostSpecific(candidate, castGroup)) {
                if (mostSpecific == null)
                    mostSpecific = candidate;
                else
View Full Code Here

Examples of com.foundationdb.server.types.TClass

        }
        for (int i = 0; i < nInputsExtended; i++) {
            TInputSet inputSet = (i == nInputsRaw) ? varargInputSet : inputSetsByPos.get(i);
            String description = map.get(inputSet);
            if (description == null) {
                TClass inputTClass = inputSet == null ? null : inputSet.targetType();
                if (inputTClass == null) {
                    description = "T";
                    if (anyCount > 0)
                        description += ('#' + anyCount);
                    ++anyCount;
                } else {
                    description = inputTClass.name().unqualifiedName();
                }
                map.put(inputSet, description);
            }
            result[i] = description;
        }
View Full Code Here

Examples of com.foundationdb.server.types.TClass

                                    bundleID.name(), bundleID.uuid(),
                                    oentry.bundleID.uuid()
                                });
                }
            }
            TClass prev = entry.typeClassByName.put(tName.unqualifiedName(), tClass);
            if (prev != null) {
                throw new IllegalStateException("Duplicate classes: " + prev +
                                                " and " + tClass);
            }
        }
View Full Code Here

Examples of com.foundationdb.server.types.TClass

                             Long typeParameter1, Long typeParameter2,
                             String charset, String collation,
                             int defaultCharsetId, int defaultCollationId,
                             boolean nullable,
                             String tableSchema, String tableName, String columnName) {
        TClass typeClass = getTypeClass(typeBundleUUID, typeName);
        if (typeClass == null) {
            throw new UnsupportedColumnDataTypeException(tableSchema, tableName, columnName,
                                                         typeName);
        }
        assert (typeVersion == typeClass.serializationVersion()) : typeClass;
        return getType(typeClass, typeParameter1, typeParameter2,
                       charset, collation, defaultCharsetId, defaultCollationId,
                       nullable, tableSchema, tableName, columnName);
    }
View Full Code Here

Examples of com.foundationdb.server.types.TClass

    /** For tests */
    public TInstance getType(String bundleName, String typeName,
                             Long typeParameter1, Long typeParameter2,
                             boolean nullable,
                             String tableSchema, String tableName, String columnName) {
        TClass typeClass = getTypeClass(bundleName, typeName);
        if (typeClass == null) {
            throw new UnsupportedColumnDataTypeException(tableSchema, tableName, columnName,
                                                         typeName);
        }
        return getType(typeClass, typeParameter1, typeParameter2, null, null, StringFactory.DEFAULT_CHARSET_ID, StringFactory.DEFAULT_COLLATION_ID,
View Full Code Here

Examples of com.foundationdb.server.types.TClass

    public TInstance getType(String bundleName, String typeName,
                             Long typeParameter1, Long typeParameter2,
                             String charset, String collation,
                             boolean nullable,
                             String tableSchema, String tableName, String columnName) {
        TClass typeClass = getTypeClass(bundleName, typeName);
        if (typeClass == null) {
            throw new UnsupportedColumnDataTypeException(tableSchema, tableName, columnName,
                                                         typeName);
        }
        return getType(typeClass, typeParameter1, typeParameter2, charset, collation, StringFactory.DEFAULT_CHARSET_ID, StringFactory.DEFAULT_COLLATION_ID,
View Full Code Here

Examples of com.foundationdb.server.types.TClass

    // TODO: Some of these are properly constraints on the
    // store. Revisit when RowData is no longer the default.

    public static boolean isSupportedForColumn(TInstance type) {
        TClass tclass = TInstance.tClass(type);
        return ((tclass != null) && isSupportedForColumn(tclass));
    }
View Full Code Here

Examples of com.foundationdb.server.types.TClass

    public static boolean isSupportedForColumn(TClass type) {
        return ((type.jdbcType() != Types.OTHER) || (type instanceof AkGUID));
    }

    public static boolean isSupportedForIndex(TInstance type) {
        TClass tclass = TInstance.tClass(type);
        return ((tclass != null) && isSupportedForIndex(tclass));
    }
View Full Code Here

Examples of com.foundationdb.server.types.TClass

        TClass tclass = TInstance.tClass(type);
        return ((tclass != null) && isSupportedForIndex(tclass));
    }

    public static boolean isSupportedForNonPiontSpatialIndex(TInstance type) {
        TClass tclass = TInstance.tClass(type);
        return ((tclass != null) && isSupportedForNonPointSpatialIndex(tclass));
    }
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.