Class

com.twitter.finatra.kafkastreams.transformer.stores.internal

FinatraKeyValueStoreImpl

Related Doc: package internal

Permalink

class FinatraKeyValueStoreImpl[K, V] extends FinatraKeyValueStore[K, V] with Logging

Linear Supertypes
Logging, Logging, FinatraKeyValueStore[K, V], FinatraReadOnlyKeyValueStore[K, V], KeyValueStore[K, V], ReadOnlyKeyValueStore[K, V], StateStore, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FinatraKeyValueStoreImpl
  2. Logging
  3. Logging
  4. FinatraKeyValueStore
  5. FinatraReadOnlyKeyValueStore
  6. KeyValueStore
  7. ReadOnlyKeyValueStore
  8. StateStore
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FinatraKeyValueStoreImpl(_rocksDBStore: RocksDBStore, inner: KeyValueStore[Bytes, Array[Byte]], keySerde: Serde[K], valueSerde: Serde[V])

    Permalink

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 all(): KeyValueIterator[K, V]

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → ReadOnlyKeyValueStore
  5. def approximateNumEntries(): Long

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → ReadOnlyKeyValueStore
  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(): Unit

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → StateStore
  9. def debug(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  10. def debug(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  11. def debug(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  12. def debug(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  13. def debugFutureResult[T](msg: String)(func: ⇒ Future[T]): Future[T]

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  14. def debugResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  15. def delete(key: K): V

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → KeyValueStore
  16. def deleteRange(from: K, to: K): Unit

    Permalink

    Removes the database entries in the range ["from", "to"), i.e., including "from" and excluding "to".

    Removes the database entries in the range ["from", "to"), i.e., including "from" and excluding "to". It is not an error if no keys exist in the range ["from", "to").

    Definition Classes
    FinatraKeyValueStoreImplFinatraKeyValueStore
    Exceptions thrown

    InvalidStateStoreException if the store is not initialized

  17. def deleteRangeExperimentalWithNoChangelogUpdates(beginKeyInclusive: Array[Byte], endKeyExclusive: Array[Byte]): Unit

    Permalink

    Removes the database entries in the range ["begin_key", "end_key"), i.e., including "begin_key" and excluding "end_key".

    Removes the database entries in the range ["begin_key", "end_key"), i.e., including "begin_key" and excluding "end_key". Returns OK on success, and a non-OK status on error. It is not an error if no keys exist in the range ["begin_key", "end_key").

    This feature is currently an experimental performance optimization for deleting very large ranges of contiguous keys. Invoking it many times or on small ranges may severely degrade read performance; in particular, the resulting performance can be worse than calling Delete() for each key in the range. Note also the degraded read performance affects keys outside the deleted ranges, and affects database operations involving scans, like flush and compaction.

    Consider setting ReadOptions::ignore_range_deletions = true to speed up reads for key(s) that are known to be unaffected by range deletions.

    Note: Changelog entries will not be deleted, so this method is best used when relying on retention.ms to delete entries from the changelog

    Definition Classes
    FinatraKeyValueStoreImplFinatraKeyValueStore
  18. final def deleteWithoutGettingPriorValue(key: K): Unit

    Permalink

    Delete the value from the store (if there is one) Note: This version of delete avoids getting the prior value which keyValueStore.delete does

    Delete the value from the store (if there is one) Note: This version of delete avoids getting the prior value which keyValueStore.delete does

    key

    The key

    returns

    The old value or null if there is no such key.

    Definition Classes
    FinatraKeyValueStoreImplFinatraKeyValueStore
    Exceptions thrown

    NullPointerException If null is used for key.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def error(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  22. def error(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  23. def error(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  24. def error(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  25. def errorResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def flush(): Unit

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → StateStore
  28. def get(key: K): V

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → ReadOnlyKeyValueStore
  29. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def getOrDefault(key: K, default: ⇒ V): V

    Permalink

    Get the value corresponding to this key or return the specified default value if no key is found

    Get the value corresponding to this key or return the specified default value if no key is found

    key

    The key to fetch

    default

    The default value to return if key is not found in the store

    returns

    The value associated with the key or the default value if the key is not found

    Definition Classes
    FinatraKeyValueStoreImplFinatraKeyValueStore
    Exceptions thrown

    InvalidStateStoreException if the store is not initialized

    NullPointerException If null is used for key.

  31. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  32. def info(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  33. def info(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  34. def info(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  35. def info(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  36. def infoResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  37. def init(processorContext: ProcessorContext, root: StateStore): Unit

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → StateStore
  38. def isDebugEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  39. def isDebugEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  40. def isErrorEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  41. def isErrorEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  42. def isInfoEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  43. def isInfoEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  44. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  45. def isOpen(): Boolean

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → StateStore
  46. def isTraceEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  47. def isTraceEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  48. def isWarnEnabled(marker: Marker): Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  49. def isWarnEnabled: Boolean

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  50. final def logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  51. final def loggerName: String

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  52. def name(): String

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → StateStore
  53. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
  55. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  56. def persistent(): Boolean

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → StateStore
  57. def put(key: K, value: V): Unit

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → KeyValueStore
  58. def putAll(entries: List[KeyValue[K, V]]): Unit

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → KeyValueStore
  59. def putIfAbsent(key: K, value: V): V

    Permalink
    Definition Classes
    FinatraKeyValueStoreImpl → KeyValueStore
  60. def range(fromBytes: Array[Byte]): KeyValueIterator[K, V]

    Permalink

    A range scan starting from bytes.

    A range scan starting from bytes. If RocksDB "prefix seek mode" is not enabled, than the iteration will NOT end when fromBytes is no longer the prefix

    Note 1: This is an API for Advanced users only

    Note 2: If this RocksDB instance is configured in "prefix seek mode", than fromBytes will be used as a "prefix" and the iteration will end when the prefix is no longer part of the next element. Enabling "prefix seek mode" can be done by calling options.useFixedLengthPrefixExtractor. When enabled, prefix scans can take advantage of a prefix based bloom filter for better seek performance See: https://github.com/facebook/rocksdb/wiki/Prefix-Seek-API-Changes

    TODO: Save off iterators to make sure they are all closed

    Definition Classes
    FinatraKeyValueStoreImplFinatraKeyValueStore
  61. def range(fromBytesInclusive: Array[Byte], toBytesExclusive: Array[Byte]): KeyValueIterator[K, V]

    Permalink

    Get an iterator over a given range of keys.

    Get an iterator over a given range of keys. This iterator must be closed after use. The returned iterator must be safe from java.util.ConcurrentModificationExceptions and must not return null values. No ordering guarantees are provided.

    fromBytesInclusive

    Inclusive bytes to start the range scan

    toBytesExclusive

    Exclusive bytes to end the range scan

    returns

    The iterator for this range.

    Definition Classes
    FinatraKeyValueStoreImplFinatraKeyValueStore
    Exceptions thrown

    InvalidStateStoreException if the store is not initialized

    NullPointerException If null is used for from or to.

  62. def range(from: K, to: K): KeyValueIterator[K, V]

    Permalink

    Get an iterator over a given range of keys.

    Get an iterator over a given range of keys. This iterator must be closed after use. The returned iterator must be safe from java.util.ConcurrentModificationExceptions and must not return null values. No ordering guarantees are provided.

    from

    The first key that could be in the range

    to

    The last key that could be in the range (inclusive)

    returns

    The iterator for this range.

    Definition Classes
    FinatraKeyValueStoreImpl → ReadOnlyKeyValueStore
    Exceptions thrown

    InvalidStateStoreException if the store is not initialized

    NullPointerException If null is used for from or to.

  63. def range(from: K, to: K, allowStaleReads: Boolean): KeyValueIterator[K, V]

    Permalink

    Get an iterator over a given range of keys.

    Get an iterator over a given range of keys. This iterator must be closed after use. The returned iterator must be safe from java.util.ConcurrentModificationExceptions and must not return null values. No ordering guarantees are provided.

    from

    The first key that could be in the range

    to

    The last key that could be in the range

    allowStaleReads

    Allow stale reads when querying (Stale reads can occur when querying key value stores with caching enabled).

    returns

    The iterator for this range.

    Definition Classes
    FinatraKeyValueStoreImplFinatraReadOnlyKeyValueStore
    Exceptions thrown

    InvalidStateStoreException if the store is not initialized

    NullPointerException If null is used for from or to.

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

    Permalink
    Definition Classes
    AnyRef
  65. def taskId: TaskId

    Permalink

    Returns the task id of this tore

    Returns the task id of this tore

    returns

    the task id of this store

    Definition Classes
    FinatraKeyValueStoreImplFinatraReadOnlyKeyValueStore
  66. def time[T](formatStr: String)(func: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  67. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  68. def trace(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  69. def trace(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  70. def trace(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  71. def trace(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  72. def traceResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  73. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. def warn(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  77. def warn(message: ⇒ Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  78. def warn(marker: Marker, message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  79. def warn(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  80. def warnResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging

Inherited from Logging

Inherited from Logging

Inherited from FinatraKeyValueStore[K, V]

Inherited from FinatraReadOnlyKeyValueStore[K, V]

Inherited from KeyValueStore[K, V]

Inherited from ReadOnlyKeyValueStore[K, V]

Inherited from StateStore

Inherited from AnyRef

Inherited from Any

Ungrouped