public void put(PackChunk.Members chunk, WriteBuffer buffer) throws DhtException { byte[] row = chunk.getChunkKey().asBytes(); if (chunk.hasChunkData()) table.put(row, colData.name(), chunk.getChunkData()); if (chunk.hasChunkIndex()) table.put(row, colIndex.name(), chunk.getChunkIndex()); if (chunk.hasMeta()) table.put(row, colMeta.name(), chunk.getMeta().toByteArray()); }
public void put(PackChunk.Members chunk, WriteBuffer buffer) throws DhtException { byte[] row = chunk.getChunkKey().asBytes(); if (chunk.hasChunkData()) table.put(row, colData.name(), chunk.getChunkData()); if (chunk.hasChunkIndex()) table.put(row, colIndex.name(), chunk.getChunkIndex()); if (chunk.hasMeta()) table.put(row, colMeta.name(), chunk.getMeta().toByteArray()); }
public void put(RepositoryKey repo, CachedPackInfo info, WriteBuffer buffer) throws DhtException { CachedPackKey key = CachedPackKey.fromInfo(info); table.put(repo.asBytes(), colCachedPack.append(key.asBytes()), info.toByteArray()); }
public void put(RepositoryKey repo, CachedPackInfo info, WriteBuffer buffer) throws DhtException { CachedPackKey key = CachedPackKey.fromInfo(info); table.put(repo.asBytes(), colCachedPack.append(key.asBytes()), info.toByteArray()); }
public void put(RepositoryKey repo, ChunkInfo info, WriteBuffer buffer) throws DhtException { table.put(repo.asBytes(), colChunkInfo.append(info.getChunkKey().asBytes()), info.getData().toByteArray()); }
public void put(RepositoryKey repo, ChunkInfo info, WriteBuffer buffer) throws DhtException { table.put(repo.asBytes(), colChunkInfo.append(info.getChunkKey().asBytes()), info.getData().toByteArray()); }
public void add(ObjectIndexKey objId, ObjectInfo info, WriteBuffer buffer) throws DhtException { ChunkKey chunk = info.getChunkKey(); table.put(objId.asBytes(), colInfo.append(chunk.asBytes()), info.getData().toByteArray()); }
public void add(ObjectIndexKey objId, ObjectInfo info, WriteBuffer buffer) throws DhtException { ChunkKey chunk = info.getChunkKey(); table.put(objId.asBytes(), colInfo.append(chunk.asBytes()), info.getData().toByteArray()); }