public class IDHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IDHandler.DirectionID |
static class |
IDHandler.EdgeTypeParse |
| Modifier and Type | Field and Description |
|---|---|
static StaticBuffer |
MAX_KEY |
static StaticBuffer |
MIN_KEY |
| Constructor and Description |
|---|
IDHandler() |
| Modifier and Type | Method and Description |
|---|---|
static int |
edgeTypeLength(long etid) |
static StaticBuffer[] |
getBounds(RelationCategory type,
boolean systemTypes) |
static StaticBuffer |
getEdgeType(long etid,
IDHandler.DirectionID dirID,
boolean hidden) |
static IDHandler.EdgeTypeParse |
readEdgeType(ReadBuffer in) |
static long |
readInlineEdgeType(ReadBuffer in) |
static void |
writeEdgeType(WriteBuffer out,
long etid,
IDHandler.DirectionID dirID,
boolean hidden)
The edge type is written as follows: [ Hidden & System (2 bit) | Relation-Type-ID (1 bit) | Relation-Type-Count (variable) | Direction-ID (1 bit)]
Would only need 1 bit to store relation-type-id, but using two so we can upper bound.
|
static void |
writeInlineEdgeType(WriteBuffer out,
long etid) |
public static final StaticBuffer MIN_KEY
public static final StaticBuffer MAX_KEY
public static int edgeTypeLength(long etid)
public static void writeEdgeType(WriteBuffer out, long etid, IDHandler.DirectionID dirID, boolean hidden)
out - etid - dirID - public static StaticBuffer getEdgeType(long etid, IDHandler.DirectionID dirID, boolean hidden)
public static IDHandler.EdgeTypeParse readEdgeType(ReadBuffer in)
public static void writeInlineEdgeType(WriteBuffer out, long etid)
public static long readInlineEdgeType(ReadBuffer in)
public static StaticBuffer[] getBounds(RelationCategory type, boolean systemTypes)
Copyright © 2012–2014. All rights reserved.