Package com.linkedin.venice.helix
Class HelixStoreVersionAccessor
java.lang.Object
com.linkedin.venice.helix.HelixStoreVersionAccessor
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 Summary
ConstructorsConstructorDescriptionHelixStoreVersionAccessor(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, String clusterName) HelixStoreVersionAccessor(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer adapterSerializer, String clusterName, int refreshAttemptsForZkReconnect) -
Method Summary
Modifier and TypeMethodDescriptiongetVersion(String storeName, int versionNumber) getVersionNumbersForStore(String storeName) getVersionsContainerPath(String storeName) getVersionsForStore(String storeName) getVersionZkPath(String storeName, int versionNumber) booleanhasVersionsContainer(String storeName) voidputVersion(String storeName, Version version) voidremoveAllVersionsForStore(String storeName) voidremoveVersion(String storeName, int versionNumber)
-
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
-
getVersionZkPath
-
hasVersionsContainer
-
getVersion
-
getVersionsForStore
-
getVersionNumbersForStore
-
putVersion
-
removeVersion
-
removeAllVersionsForStore
-