Examples of TupleType


Examples of com.datastax.driver.core.TupleType

        if (src.getName() == com.datastax.driver.core.DataType.Name.UDT) {
            UserType udt = (UserType) src;
            return DataType.userType(new CUDTDefinition(protocolVersion, udt));
        }
        if (src.getName() == com.datastax.driver.core.DataType.Name.TUPLE) {
            TupleType tupleType = (TupleType) src;
            List<com.datastax.driver.core.DataType> srcTypes = tupleType.getComponentTypes();
            List<DataType> types = new ArrayList<DataType>(srcTypes.size());
            for (com.datastax.driver.core.DataType srcType : srcTypes) {
                types.add(copy(protocolVersion, srcType));
            }
            return DataType.tupleType(types);
View Full Code Here

Examples of eu.admire.dispel.parser.types.TupleType

            mExecutionState.getNamespaceManager().addUsingDeclaration(qualifiedName);
            break;
        }
        case TUPLE:
        {
            TupleType tuple = ((TupleTypeStrategy)strategy).getTuple();
            mExecutionState.getUsedProcessingElements().registerType(
                    qualifiedName, tuple);
            mExecutionState.getNamespaceManager().addUsingDeclaration(qualifiedName);
        }
        }
View Full Code Here

Examples of org.apache.cassandra.db.marshal.TupleType

                // Collections have this small hack that validate cannot be called on a serialized object,
                // but compose does the validation (so we're fine).
                List<?> l = (List<?>)type.compose(value);

                assert type.elements instanceof TupleType;
                TupleType tupleType = (TupleType) type.elements;

                // type.split(bytes)
                List<List<ByteBuffer>> elements = new ArrayList<>(l.size());
                for (Object element : l)
                    elements.add(Arrays.asList(tupleType.split(type.elements.decompose(element))));
                return new InValue(elements);
            }
            catch (MarshalException e)
            {
                throw new InvalidRequestException(e.getMessage());
View Full Code Here

Examples of org.apache.cassandra.db.marshal.TupleType

                types.add(receiver.type);
            }
            inName.append(')');

            ColumnIdentifier identifier = new ColumnIdentifier(inName.toString(), true);
            TupleType type = new TupleType(types);
            return new ColumnSpecification(receivers.get(0).ksName, receivers.get(0).cfName, identifier, type);
        }
View Full Code Here

Examples of org.apache.cassandra.db.marshal.TupleType

                types.add(receiver.type);
            }
            inName.append(')');

            ColumnIdentifier identifier = new ColumnIdentifier(inName.toString(), true);
            TupleType type = new TupleType(types);
            return new ColumnSpecification(receivers.get(0).ksName, receivers.get(0).cfName, identifier, ListType.getInstance(type));
        }
View Full Code Here

Examples of org.yinwang.pysonar.types.TupleType


    @NotNull
    @Override
    public Type transform(State s) {
        TupleType t = new TupleType();
        for (Node e : elts) {
            t.add(transformExpr(e, s));
        }
        return t;
    }
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.