[
https://issues.apache.org/jira/browse/S2GRAPH-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15324523#comment-15324523
]
ASF GitHub Bot commented on S2GRAPH-64:
---------------------------------------
Github user daewon commented on the issue:
https://github.com/apache/incubator-s2graph/pull/58
+1
> incrementCounts yield type case exception.
> ------------------------------------------
>
> Key: S2GRAPH-64
> URL: https://issues.apache.org/jira/browse/S2GRAPH-64
> Project: S2Graph
> Issue Type: Bug
> Reporter: DOYUNG YOON
> Assignee: DOYUNG YOON
> Labels: newbie, write
> Fix For: 0.1.0
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> when call incrementCounts I got following exception.
> {noformat}
> ClassCastException: org.apache.s2graph.core.storage.SKeyValue cannot be cast
> to org.hbase.async.AtomicIncrementRequest exception
> {noformat}
> This is because of invalid type cast on AsynchbaseStorage#incrementCounts. we
> need to create AtomicIncrementRequest from SKeyValue and use it with client.
> {noformat}
> val incr = buildIncrementsCountAsync(edgeWithIndex, countVal).head
> val request = incr.asInstanceOf[AtomicIncrementRequest]
> _client.bufferAtomicIncrement(request) withCallback { resultCount:
> java.lang.Long =>
> (true, resultCount.longValue())
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)