public DataUpdater<ZNRecord> getZNRecordUpdater()
{
if(_code == OpCode.SET)
{
return new ZNRecordUpdater(_record)
{
@Override
public ZNRecord update(ZNRecord current)
{
return _record;
}
};
}
else if ((_code == OpCode.UPDATE))
{
return new ZNRecordUpdater(_record);
}
else
{
throw new UnsupportedOperationException("Not supported : " + _code);
}