parent
7e89a874d3
commit
92797f744e
2 changed files with 4 additions and 5 deletions
|
|
@ -105,10 +105,9 @@ private[akka] object CassandraStorageBackend extends
|
|||
}
|
||||
}
|
||||
|
||||
def insertVectorStorageEntriesFor(name: String, elements: List[Array[Byte]]) = {
|
||||
throw new UnsupportedOperationException("CassandraStorageBackend::insertVectorStorageEntriesFor is not implemented")
|
||||
}
|
||||
|
||||
def insertVectorStorageEntriesFor(name: String, elements: List[Array[Byte]]) =
|
||||
elements.foreach(insertVectorStorageEntryFor(name, _))
|
||||
|
||||
def updateVectorStorageEntryFor(name: String, index: Int, elem: Array[Byte]) = {
|
||||
val columnPath = new ColumnPath(VECTOR_COLUMN_PARENT.getColumn_family)
|
||||
columnPath.setColumn(intToBytes(index))
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public class PersistentSimpleService {
|
|||
public String count() {
|
||||
if (storage == null) storage = CassandraStorage.newMap();
|
||||
if (!hasStartedTicking) {
|
||||
storage.put(KEY.getBytes(), ByteBuffer.allocate(2).putInt(0).array());
|
||||
storage.put(KEY.getBytes(), ByteBuffer.allocate(4).putInt(0).array());
|
||||
hasStartedTicking = true;
|
||||
return "Tick: 0\n";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue