API Reference
Class
InMemoryRawArtifactStore
Thread-safe in-memory raw-artifact store for incremental imports.
Inheritance
- Object
- InMemoryRawArtifactStore
Constructors
public InMemoryRawArtifactStore() #Methods
public IReadOnlyList<RawArtifactDescriptor> GetAll() #Returns:
IReadOnlyList<RawArtifactDescriptor>Returns all tracked raw artifacts.
public IReadOnlyDictionary<String, RawArtifactDescriptor> GetBySourceRootAdapter(String sourceRootId, String adapterId) #Returns:
IReadOnlyDictionary<String, RawArtifactDescriptor>Returns tracked raw artifacts for one source root and adapter keyed by normalized artifact path.
Parameters
- sourceRootId System.String
- adapterId System.String
public IReadOnlyList<RawArtifactDescriptor> GetRecentPerSourceRoot(Int32 limitPerSourceRoot) #Returns:
IReadOnlyList<RawArtifactDescriptor>Returns the most recently imported raw artifacts per source root and adapter.
Parameters
- limitPerSourceRoot System.Int32
public Boolean TryGet(String sourceRootId, String adapterId, String path, out RawArtifactDescriptor artifact) #Returns:
BooleanLooks up a raw artifact by source root, adapter, and normalized path.
Parameters
- sourceRootId System.String
- adapterId System.String
- path System.String
- artifact IntelligenceX.Telemetry.Usage.RawArtifactDescriptor
public Void Upsert(RawArtifactDescriptor artifact) #Returns:
VoidInserts or replaces a raw-artifact descriptor.
Parameters
- artifact IntelligenceX.Telemetry.Usage.RawArtifactDescriptor
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?