Package org.jrdf.query.relation

Examples of org.jrdf.query.relation.RelationFactory


        }
    }

    @SuppressWarnings({ "unchecked" })
    private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException {
        RelationFactory relationFactory = new QueryFactoryImpl().createRelationFactory();
        Set<Attribute> newAttributes = new HashSet<Attribute>();
        Set<Tuple> newTuples = new HashSet<Tuple>();
        heading = (LinkedHashSet<Attribute>) input.readObject();
        timeTaken = input.readLong();
        hasProjected = input.readBoolean();
        int noAttributes = input.readInt();
        for (int i = 0; i < noAttributes; i++) {
            newAttributes.add((Attribute) input.readObject());
        }
        int noTuples = input.readInt();
        for (int i = 0; i < noTuples; i++) {
            newTuples.add((Tuple) input.readObject());
        }
        results = relationFactory.getRelation(newAttributes, newTuples);
    }
View Full Code Here

TOP

Related Classes of org.jrdf.query.relation.RelationFactory

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.