Class RocksDbWindowBytesStoreSupplier

    • Constructor Detail

      • RocksDbWindowBytesStoreSupplier

        public RocksDbWindowBytesStoreSupplier​(String name,
                                               long retentionPeriod,
                                               long segmentInterval,
                                               long windowSize,
                                               boolean retainDuplicates,
                                               boolean returnTimestampedStore)
    • Method Detail

      • name

        public String name()
        Description copied from interface: StoreSupplier
        Return the name of this state store supplier. This must be a valid Kafka topic name; valid characters are ASCII alphanumerics, '.', '_' and '-'.
        Specified by:
        name in interface StoreSupplier<WindowStore<org.apache.kafka.common.utils.Bytes,​byte[]>>
        Returns:
        the name of this state store supplier
      • metricsScope

        public String metricsScope()
        Description copied from interface: StoreSupplier
        Return a String that is used as the scope for metrics recorded by Metered stores.
        Specified by:
        metricsScope in interface StoreSupplier<WindowStore<org.apache.kafka.common.utils.Bytes,​byte[]>>
        Returns:
        metricsScope
      • segments

        @Deprecated
        public int segments()
        Deprecated.
        Description copied from interface: WindowBytesStoreSupplier
        The number of segments the store has. If your store is segmented then this should be the number of segments in the underlying store. It is also used to reduce the amount of data that is scanned when caching is enabled.
        Specified by:
        segments in interface WindowBytesStoreSupplier
        Returns:
        number of segments
      • segmentIntervalMs

        public long segmentIntervalMs()
        Description copied from interface: WindowBytesStoreSupplier
        The size of the segments (in milliseconds) the store has. If your store is segmented then this should be the size of segments in the underlying store. It is also used to reduce the amount of data that is scanned when caching is enabled.
        Specified by:
        segmentIntervalMs in interface WindowBytesStoreSupplier
        Returns:
        size of the segments (in milliseconds)
      • retainDuplicates

        public boolean retainDuplicates()
        Description copied from interface: WindowBytesStoreSupplier
        Whether or not this store is retaining duplicate keys. Usually only true if the store is being used for joins. Note this should return false if caching is enabled.
        Specified by:
        retainDuplicates in interface WindowBytesStoreSupplier
        Returns:
        true if duplicates should be retained