Package com.linkedin.venice.helix
Class HelixSchemaAccessor
java.lang.Object
com.linkedin.venice.helix.HelixSchemaAccessor
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHelixSchemaAccessor
(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer helixAdapterSerializer, String clusterName) HelixSchemaAccessor
(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer helixAdapterSerializer, String clusterName, int refreshAttemptsForZkReconnect, long refreshIntervalForZkReconnectInMs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDerivedSchema
(String storeName, DerivedSchemaEntry derivedSchemaEntry) void
addReplicationMetadataSchema
(String storeName, RmdSchemaEntry rmdSchemaEntry) void
addValueSchema
(String storeName, SchemaEntry schemaEntry) void
createKeySchema
(String storeName, SchemaEntry schemaEntry) getAllDerivedSchemas
(String storeName) getAllReplicationMetadataSchemas
(String storeName) getAllValueSchemas
(String storeName) getDerivedSchema
(String storeName, String derivedSchemaIdPair) getKeySchema
(String storeName) getReplicationMetadataSchema
(String storeName, String replicationMetadataVersionIdPair) protected StringBuilder
getStorePath
(String storeName) getValueSchema
(String storeName, String id) void
removeDerivedSchema
(String storeName, String derivedSchemaIdPair) void
removeValueSchema
(String storeName, int schemaID) void
subscribeDerivedSchemaCreationChange
(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) void
subscribeKeySchemaCreationChange
(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) void
subscribeReplicationMetadataSchemaCreationChange
(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) void
subscribeValueSchemaCreationChange
(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) void
unsubscribeDerivedSchemaCreationChanges
(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) void
unsubscribeKeySchemaCreationChange
(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) void
unsubscribeReplicationMetadataSchemaCreationChanges
(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) void
unsubscribeValueSchemaCreationChange
(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener)
-
Field Details
-
VALUE_SCHEMA_STARTING_ID
public static final int VALUE_SCHEMA_STARTING_ID- See Also:
-
-
Constructor Details
-
HelixSchemaAccessor
public HelixSchemaAccessor(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer helixAdapterSerializer, String clusterName) -
HelixSchemaAccessor
public HelixSchemaAccessor(org.apache.helix.zookeeper.impl.client.ZkClient zkClient, HelixAdapterSerializer helixAdapterSerializer, String clusterName, int refreshAttemptsForZkReconnect, long refreshIntervalForZkReconnectInMs)
-
-
Method Details
-
getKeySchema
-
getValueSchema
-
getAllValueSchemas
-
getDerivedSchema
-
getAllDerivedSchemas
-
createKeySchema
-
addValueSchema
-
addDerivedSchema
-
removeDerivedSchema
-
subscribeKeySchemaCreationChange
public void subscribeKeySchemaCreationChange(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) -
unsubscribeKeySchemaCreationChange
public void unsubscribeKeySchemaCreationChange(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) -
subscribeValueSchemaCreationChange
public void subscribeValueSchemaCreationChange(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) -
unsubscribeValueSchemaCreationChange
public void unsubscribeValueSchemaCreationChange(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) -
subscribeDerivedSchemaCreationChange
public void subscribeDerivedSchemaCreationChange(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) -
unsubscribeDerivedSchemaCreationChanges
public void unsubscribeDerivedSchemaCreationChanges(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) -
getStorePath
-
getReplicationMetadataSchema
public RmdSchemaEntry getReplicationMetadataSchema(String storeName, String replicationMetadataVersionIdPair) -
getAllReplicationMetadataSchemas
-
addReplicationMetadataSchema
-
subscribeReplicationMetadataSchemaCreationChange
public void subscribeReplicationMetadataSchemaCreationChange(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) -
unsubscribeReplicationMetadataSchemaCreationChanges
public void unsubscribeReplicationMetadataSchemaCreationChanges(String storeName, org.apache.helix.zookeeper.zkclient.IZkChildListener childListener) -
removeValueSchema
-