-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to tinkerpop-3.2.3 and resolve numerous test issues. Includes …
…significant updates to FulgoraGraphComputer and associated memory implementation, support for GraphSON 2.0 and support for interrupts in HBase backend. Opt out of IoTest#shouldReadGraphMLWithNoEdgeLabel and GraphComputerTest#shouldSupportGraphFilter (see reasons in OptOut declarations). Skip titan-hadoop-1 tests (hadoop1 is no longer supported).
- Loading branch information
Showing
27 changed files
with
333 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
.../com/thinkaurelius/titan/graphdb/database/serialize/attribute/SerializableSerializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.thinkaurelius.titan.graphdb.database.serialize.attribute; | ||
|
||
import com.thinkaurelius.titan.core.attribute.AttributeSerializer; | ||
import com.thinkaurelius.titan.diskstorage.ScanBuffer; | ||
import com.thinkaurelius.titan.diskstorage.WriteBuffer; | ||
import com.thinkaurelius.titan.graphdb.database.serialize.DataOutput; | ||
import com.thinkaurelius.titan.graphdb.database.serialize.Serializer; | ||
import com.thinkaurelius.titan.graphdb.database.serialize.SerializerInjected; | ||
import org.apache.commons.lang3.SerializationUtils; | ||
|
||
import java.io.Serializable; | ||
import java.util.HashMap; | ||
|
||
public class SerializableSerializer<T extends Serializable> implements AttributeSerializer<T>, SerializerInjected { | ||
|
||
private Serializer serializer; | ||
|
||
@Override | ||
public T read(ScanBuffer buffer) { | ||
byte[] data = serializer.readObjectNotNull(buffer,byte[].class); | ||
return (T) SerializationUtils.deserialize(data); | ||
} | ||
|
||
@Override | ||
public void write(WriteBuffer buffer, T attribute) { | ||
DataOutput out = (DataOutput) buffer; | ||
out.writeObjectNotNull(SerializationUtils.serialize(attribute)); | ||
} | ||
|
||
@Override | ||
public void setSerializer(Serializer serializer) { | ||
this.serializer = serializer; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.