}
}
@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);
}