Class/Object

akka.persistence.cassandra

EventsByTagMigration

Related Docs: object EventsByTagMigration | package cassandra

Permalink

class EventsByTagMigration extends CassandraStatements with TaggedPreparedStatements with CassandraTagRecovery

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventsByTagMigration
  2. CassandraTagRecovery
  3. TaggedPreparedStatements
  4. CassandraStatements
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EventsByTagMigration(system: ActorSystem, journalNamespace: String = "cassandra-journal", readJournalNamespace: String = CassandraReadJournal.Identifier)

    Permalink

    journalNamespace

    The config namespace where the journal is configured, default is cassandra-journal

    readJournalNamespace

    The config namespace where the query-journal is configured, default is the same as CassandraReadJournal.Identifier

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addTagsColumn(): Future[Done]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  7. def config: CassandraJournalConfig

    Permalink
  8. def createTables(): Future[Done]

    Permalink
  9. def createTagScanningTable: String

    Permalink
    Definition Classes
    CassandraStatements
  10. def createTagsProgressTable: String

    Permalink
    Definition Classes
    CassandraStatements
  11. implicit val ec: MessageDispatcher

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def migratePidsToTagViews(pids: Seq[PersistenceId], periodicFlush: Int = 1000, flushTimeout: Timeout = Timeout(30.seconds)): Future[Done]

    Permalink

    Migrates the given persistenceIds from the messages table to the new tags_view table.

    Migrates the given persistenceIds from the messages table to the new tags_view table. tag_view table must exist before calling this and can be created manually or via [createTagsTable]

    This is useful if there there is a more efficient way of getting all the persistenceIds than [CassandraReadJournal.currentPersistenceIds] which does a distinct query on the messages table.

    This can also be used to do partial migrations e.g. test a persistenceId in production before migrating everything.

    It is recommended you use this if the messages table is large.

    pids

    PersistenceIds to migrate

    returns

    A Future that completes when the migration is complete

  18. def migrateToTagViews(periodicFlush: Int = 1000, filter: (String) ⇒ Boolean = _ => true, flushTimeout: Timeout = Timeout(30.seconds)): Future[Done]

    Permalink

    Migrates the entire messages table to the the new tag_views table.

    Migrates the entire messages table to the the new tag_views table.

    Uses [CassandraReadJournal.currentPersistenceIds] to find all persistenceIds. Note that this is a very inefficient cassandra query so might timeout. If so the version of this method can be used where the persistenceIds are provided.

    Persistence ids can be excluded (e.g. useful if you know certain persistenceIds don't use tags

    returns

    A Future that completes when the migration is complete.

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. def preparedSelectTagProgress: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  23. def preparedSelectTagProgressForPersistenceId: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  24. def preparedSelectTagScanningForPersistenceId: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  25. def preparedWriteTagScanning: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  26. def preparedWriteToTagProgress: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  27. def preparedWriteToTagViewWithMeta: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  28. def preparedWriteToTagViewWithoutMeta: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  29. val session: CassandraSession

    Permalink
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def tableName: String

    Permalink
    Attributes
    protected
    Definition Classes
    CassandraStatements
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from CassandraTagRecovery

Inherited from TaggedPreparedStatements

Inherited from CassandraStatements

Inherited from AnyRef

Inherited from Any

Ungrouped