Class MappedAttributesIndex
A collection that contains meta-data per unique id, can be used to map meta-data to vertices or edges by their id's.
Inheritance
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class MappedAttributesIndex : IEnumerable<uint>
Constructors
MappedAttributesIndex(AttributesIndexMode)
Creates a new mapped attributes index.
Declaration
public MappedAttributesIndex(AttributesIndexMode mode = AttributesIndexMode.ReverseAll)
Parameters
|
AttributesIndexMode
mode
|
MappedAttributesIndex(MemoryMap, AttributesIndexMode)
Creates a new mapped attributes index.
Declaration
public MappedAttributesIndex(MemoryMap map, AttributesIndexMode mode = AttributesIndexMode.ReverseAll)
Parameters
|
MemoryMap
map
|
|
AttributesIndexMode
mode
|
Properties
IsOptimized
Returns true if this index is sorted and optimized.
Declaration
public bool IsOptimized { get; }
Property Value
|
System.Boolean
|
Item[UInt32]
Gets or sets attributes for the given id.
Declaration
public IAttributeCollection this[uint id] { get; set; }
Parameters
|
System.UInt32
id
|
Property Value
|
IAttributeCollection
|
Methods
Deserialize(Stream, MappedAttributesIndexProfile)
Deserializes from the given stream, returns an optimized index.
Declaration
public static MappedAttributesIndex Deserialize(Stream stream, MappedAttributesIndexProfile profile)
Parameters
|
Stream
stream
|
|
MappedAttributesIndexProfile
profile
|
Returns
|
MappedAttributesIndex
|
GetEnumerator()
Gets the enumerator.
Declaration
public IEnumerator<uint> GetEnumerator()
Returns
|
IEnumerator<System.UInt32>
|
MakeWriteable()
Makes this index writable again, once made writeable it will use more memory and be less efficient, use optimize again once the data is updated.
Declaration
public void MakeWriteable()
Optimize()
Optimizes this index once it's fully loaded.
Declaration
public void Optimize()
Serialize(Stream)
Serializes to the given stream, after optimizing the index, returns the # of bytes written.
Declaration
public long Serialize(Stream stream)
Parameters
|
Stream
stream
|
Returns
|
System.Int64
|
Switch(UInt32, UInt32)
Switches the two id's.
Declaration
public void Switch(uint id1, uint id2)
Parameters
|
System.UInt32
id1
|
|
System.UInt32
id2
|