Skip to content
Permalink
Browse files
closes #59
  • Loading branch information
Maja Kabiljo committed Feb 13, 2018
1 parent 1484572 commit 94a3ac5fbd184bde121f94895a5bdf22cf034d70
Showing 1 changed file with 4 additions and 0 deletions.
@@ -244,6 +244,9 @@ private void readOutEdges(DataInput in, Partition<I, V, E> partition)
I id = conf.createVertexId();
id.readFields(in);
Vertex<I, V, E> v = partition.getVertex(id);
checkNotNull(v, "Vertex with ID " + id + " not found in partition " +
partition.getId() + " which has " + partition.getVertexCount() +
" vertices and " + partition.getEdgeCount() + " edges.");
OutEdges<I, E> edges = (OutEdges<I, E>) v.getEdges();
edges.readFields(in);
partition.saveVertex(v);
@@ -365,6 +368,7 @@ protected long offloadInMemoryPartitionData(
partitionStore.getPartitionEdgeCount(partitionId));
Partition<I, V, E> partition =
partitionStore.removePartition(partitionId);
LOG.debug("Offloading partition " + partition + " DataIndex[" + index + "]");
index.addIndex(DataIndex.TypeIndexEntry.PARTITION_VERTICES);
OutOfCoreDataAccessor.DataOutputWrapper outputWrapper =
dataAccessor.prepareOutput(ioThreadId, index.copy(), false);

0 comments on commit 94a3ac5

Please sign in to comment.