public synchronized void setProjection(String projection)
throws ParseException, IOException {
if (projection == null) {
this.projection = new Projection(schemaFile.getLogical());
partition =
new Partition(schemaFile.getLogical(), this.projection, schemaFile
.getStorageString(), schemaFile.getComparator());
}
else {
/**
* the typed schema from projection which is untyped or actually typed
* as "bytes"
*/
this.projection =
new Projection(schemaFile.getLogical(), projection);
partition =
new Partition(schemaFile.getLogical(), this.projection, schemaFile
.getStorageString(), schemaFile.getComparator());
}
inferredMapping = false;
}