in.readFully(bytes);
switch(type)
{
case LC:
_estimator = new LinearCounting(bytes);
break;
case AC:
_estimator = new AdaptiveCounting(bytes);
break;
case HLC:
_estimator = HyperLogLog.Builder.build(bytes);
break;
case HLPC:
_estimator = HyperLogLogPlus.Builder.build(bytes);
break;
case LLC:
_estimator = new LinearCounting(bytes);
break;
default:
throw new IOException("Unrecognized estimator type: " + type);
}