Beispiel #1
0
 /**
  * @param eventTypeIndexFile The {@link IndexFile} containing the main mapping data between event
  *     file indexes and the event types
  * @param eventIndicies A Map with the {@link EventIndex}es that should exist for corresponding
  *     event type (ids)
  * @param eventFieldIndicies A Map with the {@link EventFieldIndex}es that should exist for
  *     corresponding event fields
  * @param multiThreadedEnvironment <code>true</code> if this {@link Indexing} is living in a
  *     multithreaded environment (and thus must be thread safe)
  */
 public Indexing(
     EventIndexing eventIndexing,
     EventFieldIndexing eventFieldIndicies,
     boolean multiThreadedEnvironment) {
   this.eventIndexing = Objects.requireNonNull(eventIndexing);
   this.eventFieldIndexing = Objects.requireNonNull(eventFieldIndicies);
   this.indexUpdater =
       createIndexUpdater(eventIndexing, eventFieldIndicies, multiThreadedEnvironment);
 }
Beispiel #2
0
 public IndexUpdaterJob(long eventId, EventSerializer ed, Object event) {
   this.eventId = Objects.requireNonNull(eventId);
   this.ed = Objects.requireNonNull(ed);
   this.event = Objects.requireNonNull(event);
 }
 public EventFieldEntry(EventId eventId, Object fieldValue) {
   this.eventId = Objects.requireNonNull(eventId);
   this.fieldValue = Objects.requireNonNull(fieldValue);
 }
Beispiel #4
0
 public ThreadsafeIndexUpdater(
     EventIndexing eventIndexing, EventFieldIndexing eventFieldIndexing) {
   this.eventIndexing = Objects.requireNonNull(eventIndexing);
   this.eventFieldIndexing = Objects.requireNonNull(eventFieldIndexing);
 }
 public InMemoryEventFieldIndex(
     EventFieldId eventFieldId, TypedEventRepo typedEventRepo, Iterator<EventId> eventIndicies) {
   this.eventFieldId = Objects.requireNonNull(eventFieldId);
   this.eventIndicies = Objects.requireNonNull(eventIndicies);
   this.typedEventRepo = Objects.requireNonNull(typedEventRepo);
 }