else if (type == Type.DATA)
{
final VoltTable data = response.getResults()[0];
if (data.getRowCount() > 0)
{
final Result result = Result.OK();
result.data = new HashMap<String,VoltCacheItem>();
while(data.advanceRow())
result.data.put(
data.getString(0)
, new VoltCacheItem(
data.getString(0)
, (int)data.getLong(1)
, data.getVarbinary(2)
, data.getLong(3)
, (int)data.getLong(4)
)
);
return result;
}
else
return Result.NOT_FOUND();
}
else if (type == Type.IDOP)
{
final long value = response.getResults()[0].asScalarLong();
if (value == VoltType.NULL_BIGINT)
return Result.NOT_FOUND();
else
{
final Result result = Result.OK();
result.incrDecrValue = value;
return result;
}
}
else