Class HelixStoreVersionAccessor

java.lang.Object
com.linkedin.venice.helix.HelixStoreVersionAccessor

public class HelixStoreVersionAccessor extends Object
Accessor for individual version znodes that live as children of a store znode: /<cluster>/Stores/<storeName>/versions/<versionNumber>. The accessor is the controller-side write path and the reader-side read path for per-version data. The legacy "embedded versions list inside the store JSON" representation is handled by the store repository; this accessor deals only with the new layout.
  • Constructor Details

    • HelixStoreVersionAccessor

      public HelixStoreVersionAccessor(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, String clusterName)
    • HelixStoreVersionAccessor

      public HelixStoreVersionAccessor(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, String clusterName, int refreshAttemptsForZkReconnect)
  • Method Details

    • getVersionsContainerPath

      public String getVersionsContainerPath(String storeName)
    • getVersionZkPath

      public String getVersionZkPath(String storeName, int versionNumber)
    • hasVersionsContainer

      public boolean hasVersionsContainer(String storeName)
    • getVersion

      public Version getVersion(String storeName, int versionNumber)
    • getVersionsForStore

      public List<Version> getVersionsForStore(String storeName)
    • getVersionNumbersForStore

      public List<String> getVersionNumbersForStore(String storeName)
    • putVersion

      public void putVersion(String storeName, Version version)
    • removeVersion

      public void removeVersion(String storeName, int versionNumber)
    • removeAllVersionsForStore

      public void removeAllVersionsForStore(String storeName)