Documentation ¶
Index ¶
- Constants
- func RegisterStorage(addr string, metadataAddrs []string) (string, error)
- func ServeStorage(storageConfig *StorageConfig) error
- type DiskStorage
- type EdgeIndex
- type IOMapper
- type InMemoryIOMapper
- func (self *InMemoryIOMapper) GetEdgeById(edgeId uuid.UUID, edge *graph.Edge) error
- func (self *InMemoryIOMapper) GetInEdges(vertexId uuid.UUID, edges *[]graph.Edge) error
- func (self *InMemoryIOMapper) GetOutEdges(vertexId uuid.UUID, edges *[]graph.Edge) error
- func (self *InMemoryIOMapper) GetVertexById(vertexId uuid.UUID, vertex *graph.Vertex) error
- func (self *InMemoryIOMapper) RegisterToHostPartition(ids []uuid.UUID, succ *bool) error
- func (self *InMemoryIOMapper) RemoveEdge(edge uuid.UUID, succ *bool) error
- func (self *InMemoryIOMapper) RemoveVertex(vertexId uuid.UUID, success *bool) error
- func (self *InMemoryIOMapper) StoreEdge(edge *graph.Edge, success *bool) error
- func (self *InMemoryIOMapper) StoreVertex(vertex *graph.Vertex, success *bool) error
- func (self *InMemoryIOMapper) UpdateProperties(element *graph.Element, success *bool) error
- func (self *InMemoryIOMapper) UpdateReplica(data interface{}, succ *bool) error
- type Index
- type KVStore
- type KeyValue
- type MemKVStore
- func (self *MemKVStore) Clock(atLeast uint64) uint64
- func (self *MemKVStore) Get(key string) string
- func (self *MemKVStore) Keys(p Pattern) []string
- func (self *MemKVStore) ListAppend(key string, value string) error
- func (self *MemKVStore) ListGet(key string) []string
- func (self *MemKVStore) ListKeys(p Pattern) []string
- func (self *MemKVStore) ListRemove(key string, value string) int
- func (self *MemKVStore) Set(key string, value string) error
- type MemoryStorage
- func (self *MemoryStorage) GetEdgeById(elementId uuid.UUID, edge *graph.Edge) error
- func (self *MemoryStorage) GetVertexById(elementId uuid.UUID, vertex *graph.Vertex) error
- func (self *MemoryStorage) RemoveElement(elementId uuid.UUID, elemType string) error
- func (self *MemoryStorage) StoreElement(element graph.ElementInterface) error
- type Pattern
- type Storage
- type StorageClient
- func (self *StorageClient) Call(method string, args interface{}, reply interface{}) error
- func (self *StorageClient) Connect(force bool) error
- func (self *StorageClient) GetEdgeById(edgeId uuid.UUID, edge *graph.Edge) error
- func (self *StorageClient) GetInEdges(vertexId uuid.UUID, edges *[]graph.Edge) error
- func (self *StorageClient) GetOutEdges(vertexId uuid.UUID, edges *[]graph.Edge) error
- func (self *StorageClient) GetVertexById(vertexId uuid.UUID, vertex *graph.Vertex) error
- func (self *StorageClient) RegisterToHostPartition(ids []uuid.UUID, succ *bool) error
- func (self *StorageClient) RemoveEdge(edge uuid.UUID, succ *bool) error
- func (self *StorageClient) RemoveVertex(vertex uuid.UUID, succ *bool) error
- func (self *StorageClient) StoreEdge(edge *graph.Edge, succ *bool) error
- func (self *StorageClient) StoreVertex(vertex *graph.Vertex, succ *bool) error
- func (self *StorageClient) UpdateProperties(element *graph.Element, success *bool) error
- func (self *StorageClient) UpdateReplica(data interface{}, succ *bool) error
- type StorageConfig
Constants ¶
View Source
const ( SRC_PREFIX = "SRC" DEST_PREFIX = "DST" )
Variables ¶
This section is empty.
Functions ¶
func ServeStorage ¶
func ServeStorage(storageConfig *StorageConfig) error
Types ¶
type DiskStorage ¶
type DiskStorage struct { }
func NewDiskStorage ¶
func NewDiskStorage() *DiskStorage
func (*DiskStorage) StoreElement ¶
func (self *DiskStorage) StoreElement(element graph.ElementInterface) error
type IOMapper ¶
type IOMapper interface { StoreVertex(vertex *graph.Vertex, success *bool) error StoreEdge(edge *graph.Edge, success *bool) error GetVertexById(vertexId uuid.UUID, vertex *graph.Vertex) error GetEdgeById(edgeId uuid.UUID, edge *graph.Edge) error GetOutEdges(vertexId uuid.UUID, edges *[]graph.Edge) error GetInEdges(vertexId uuid.UUID, edges *[]graph.Edge) error UpdateProperties(element *graph.Element, success *bool) error RemoveVertex(vertex uuid.UUID, succ *bool) error RemoveEdge(edge uuid.UUID, succ *bool) error RegisterToHostPartition(ids []uuid.UUID, succ *bool) error UpdateReplica(data interface{}, succ *bool) error }
IO Mapper is the Storage Backend Interface
type InMemoryIOMapper ¶
type InMemoryIOMapper struct { BackendId string Metadata metadata.Metadata Memory *MemoryStorage }
func NewInMemoryIOMapper ¶
func NewInMemoryIOMapper(backendId string, metadataAddrs []string) *InMemoryIOMapper
func (*InMemoryIOMapper) GetEdgeById ¶
func (*InMemoryIOMapper) GetInEdges ¶
func (*InMemoryIOMapper) GetOutEdges ¶
func (*InMemoryIOMapper) GetVertexById ¶
func (*InMemoryIOMapper) RegisterToHostPartition ¶
func (self *InMemoryIOMapper) RegisterToHostPartition(ids []uuid.UUID, succ *bool) error
func (*InMemoryIOMapper) RemoveEdge ¶
func (self *InMemoryIOMapper) RemoveEdge(edge uuid.UUID, succ *bool) error
func (*InMemoryIOMapper) RemoveVertex ¶
func (self *InMemoryIOMapper) RemoveVertex(vertexId uuid.UUID, success *bool) error
func (*InMemoryIOMapper) StoreEdge ¶
func (self *InMemoryIOMapper) StoreEdge(edge *graph.Edge, success *bool) error
func (*InMemoryIOMapper) StoreVertex ¶
func (self *InMemoryIOMapper) StoreVertex(vertex *graph.Vertex, success *bool) error
func (*InMemoryIOMapper) UpdateProperties ¶
func (self *InMemoryIOMapper) UpdateProperties(element *graph.Element, success *bool) error
func (*InMemoryIOMapper) UpdateReplica ¶
func (self *InMemoryIOMapper) UpdateReplica(data interface{}, succ *bool) error
type Index ¶
type MemKVStore ¶
type MemKVStore struct {
// contains filtered or unexported fields
}
func NewMemKVStore ¶
func NewMemKVStore() *MemKVStore
func (*MemKVStore) Clock ¶
func (self *MemKVStore) Clock(atLeast uint64) uint64
func (*MemKVStore) Get ¶
func (self *MemKVStore) Get(key string) string
func (*MemKVStore) Keys ¶
func (self *MemKVStore) Keys(p Pattern) []string
func (*MemKVStore) ListAppend ¶
func (self *MemKVStore) ListAppend(key string, value string) error
func (*MemKVStore) ListGet ¶
func (self *MemKVStore) ListGet(key string) []string
func (*MemKVStore) ListKeys ¶
func (self *MemKVStore) ListKeys(p Pattern) []string
func (*MemKVStore) ListRemove ¶
func (self *MemKVStore) ListRemove(key string, value string) int
type MemoryStorage ¶
type MemoryStorage struct { Index *Index // contains filtered or unexported fields }
func NewMemoryStorage ¶
func NewMemoryStorage() *MemoryStorage
func (*MemoryStorage) GetEdgeById ¶
func (*MemoryStorage) GetVertexById ¶
func (*MemoryStorage) RemoveElement ¶
func (self *MemoryStorage) RemoveElement(elementId uuid.UUID, elemType string) error
func (*MemoryStorage) StoreElement ¶
func (self *MemoryStorage) StoreElement(element graph.ElementInterface) error
type Storage ¶
type Storage interface {
StoreElement(element graph.ElementInterface) error
}
type StorageClient ¶
func NewStorageClient ¶
func NewStorageClient(addr string) *StorageClient
func (*StorageClient) Call ¶
func (self *StorageClient) Call(method string, args interface{}, reply interface{}) error
func (*StorageClient) Connect ¶
func (self *StorageClient) Connect(force bool) error
func (*StorageClient) GetEdgeById ¶
func (*StorageClient) GetInEdges ¶
func (*StorageClient) GetOutEdges ¶
func (*StorageClient) GetVertexById ¶
func (*StorageClient) RegisterToHostPartition ¶
func (self *StorageClient) RegisterToHostPartition(ids []uuid.UUID, succ *bool) error
func (*StorageClient) RemoveEdge ¶
func (self *StorageClient) RemoveEdge(edge uuid.UUID, succ *bool) error
func (*StorageClient) RemoveVertex ¶
func (self *StorageClient) RemoveVertex(vertex uuid.UUID, succ *bool) error
func (*StorageClient) StoreEdge ¶
func (self *StorageClient) StoreEdge(edge *graph.Edge, succ *bool) error
func (*StorageClient) StoreVertex ¶
func (self *StorageClient) StoreVertex(vertex *graph.Vertex, succ *bool) error
func (*StorageClient) UpdateProperties ¶
func (self *StorageClient) UpdateProperties(element *graph.Element, success *bool) error
func (*StorageClient) UpdateReplica ¶
func (self *StorageClient) UpdateReplica(data interface{}, succ *bool) error
Click to show internal directories.
Click to hide internal directories.