public class NebulaCodecImpl extends Object implements NebulaCodec
| Constructor and Description |
|---|
NebulaCodecImpl() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
edgeKey(int vidLen,
int partitionId,
byte[] srcId,
int edgeType,
long edgeRank,
byte[] dstId,
byte edgeVerHolder) |
byte[] |
edgeKeyByDefaultVer(int vidLen,
int partitionId,
byte[] srcId,
int edgeType,
long edgeRank,
byte[] dstId) |
byte[] |
encodeEdge(EdgeItem edge,
List<String> names,
List<Object> values) |
byte[] |
encodeTag(TagItem tag,
List<String> names,
List<Object> values) |
byte[] |
orphanVertexKey(int vidLen,
int partitionId,
byte[] vertexId) |
byte[] |
vertexKey(int vidLen,
int partitionId,
byte[] vertexId,
int tagId) |
public byte[] vertexKey(int vidLen,
int partitionId,
byte[] vertexId,
int tagId)
vertexKey in interface NebulaCodecvidLen - the vidLen from the space descriptionpartitionId - the partitionIdvertexId - the vertex idtagId - the tag idpublic byte[] orphanVertexKey(int vidLen,
int partitionId,
byte[] vertexId)
orphanVertexKey in interface NebulaCodecvidLen - the vidLen from the space descriptionpartitionId - the partitionIdvertexId - the vertex idpublic byte[] edgeKeyByDefaultVer(int vidLen,
int partitionId,
byte[] srcId,
int edgeType,
long edgeRank,
byte[] dstId)
edgeKeyByDefaultVer in interface NebulaCodecvidLen - the vidLen from the space descriptionpartitionId - the partitionIdsrcId - the src idedgeType - the edge typeedgeRank - the rankingdstId - the dstIdpublic byte[] edgeKey(int vidLen,
int partitionId,
byte[] srcId,
int edgeType,
long edgeRank,
byte[] dstId,
byte edgeVerHolder)
edgeKey in interface NebulaCodecvidLen - the vidLen from the space descriptionpartitionId - the partitionIdsrcId - the src idedgeType - the edge typeedgeRank - the rankingdstId - the dstIdedgeVerHolder - the edgeVerHolderpublic byte[] encodeTag(TagItem tag, List<String> names, List<Object> values) throws RuntimeException
encodeTag in interface NebulaCodectag - the TagItemnames - the property namesvalues - the property valuesRuntimeException - expectionpublic byte[] encodeEdge(EdgeItem edge, List<String> names, List<Object> values) throws RuntimeException
encodeEdge in interface NebulaCodecedge - the EdgeItemnames - the property namesvalues - the property valuesRuntimeException - expectionCopyright © 2022. All rights reserved.