Package voltcache.procedures.VoltCacheProcBase

Examples of voltcache.procedures.VoltCacheProcBase.Result


        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
View Full Code Here

TOP

Related Classes of voltcache.procedures.VoltCacheProcBase.Result

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.