public class MockSignalTrackingService extends Object implements SignalTrackingApi
Constructor and Description |
---|
MockSignalTrackingService() |
Modifier and Type | Method and Description |
---|---|
void |
addSignal(Signal signal)
Add a signal
|
void |
deleteSignals(String signalType)
Delete all signals for
signalType . |
List<String> |
getAllRelevancyModelNames()
Get the names of all relevancy models across all signals
|
Map<Long,Long> |
getModelHistogram(String relevancyModelName,
long relevancyModelVersion)
Get histogram data for a relevancy model
|
CloseableIterable<Signal> |
getSignals(String modelName,
Date startTime,
Date endTime,
Set<String> signalTypes)
Get all signals currently being tracked
|
List<String> |
getSignalTypes()
Get all available signal types.
|
void |
importSignals(Iterable<Signal> signals)
Import signals to be tracked
|
public List<String> getSignalTypes()
SignalTrackingApi
getSignalTypes
in interface SignalTrackingApi
public void deleteSignals(String signalType)
SignalTrackingApi
signalType
.
EXPERIMENTAL: the signature for this method may change/be removed in a future release without notice.
deleteSignals
in interface SignalTrackingApi
public List<String> getAllRelevancyModelNames()
SignalTrackingApi
getAllRelevancyModelNames
in interface SignalTrackingApi
public Map<Long,Long> getModelHistogram(String relevancyModelName, long relevancyModelVersion)
SignalTrackingApi
getModelHistogram
in interface SignalTrackingApi
public void addSignal(Signal signal) throws AttivioException
SignalTrackingApi
addSignal
in interface SignalTrackingApi
AttivioException
public CloseableIterable<Signal> getSignals(String modelName, Date startTime, Date endTime, Set<String> signalTypes)
SignalTrackingApi
getSignals
in interface SignalTrackingApi
modelName
- if not null, filter out signals not a part of this relevancy modelstartTime
- if not null, filter out signals for queries made earlier than thisendTime
- if not null, filter out signals for queries made later than thissignalTypes
- if not null, filter out signals of these typespublic void importSignals(Iterable<Signal> signals)
SignalTrackingApi
importSignals
in interface SignalTrackingApi
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.