gpt4 book ai didi

org.apache.helix.store.zk.ZkHelixPropertyStore.remove()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 09:02:49 25 4
gpt4 key购买 nike

本文整理了Java中org.apache.helix.store.zk.ZkHelixPropertyStore.remove()方法的一些代码示例,展示了ZkHelixPropertyStore.remove()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZkHelixPropertyStore.remove()方法的具体详情如下:
包路径:org.apache.helix.store.zk.ZkHelixPropertyStore
类名称:ZkHelixPropertyStore
方法名:remove

ZkHelixPropertyStore.remove介绍

暂无

代码示例

代码示例来源:origin: apache/incubator-pinot

public static void removeResourceConfigFromPropertyStore(ZkHelixPropertyStore<ZNRecord> propertyStore,
  String resourceName) {
 String propertyStorePath = constructPropertyStorePathForResourceConfig(resourceName);
 if (propertyStore.exists(propertyStorePath, AccessOption.PERSISTENT)) {
  propertyStore.remove(propertyStorePath, AccessOption.PERSISTENT);
 }
}

代码示例来源:origin: apache/incubator-pinot

public static void removeResourceSegmentsFromPropertyStore(ZkHelixPropertyStore<ZNRecord> propertyStore,
  String resourceName) {
 String propertyStorePath = constructPropertyStorePathForResource(resourceName);
 if (propertyStore.exists(propertyStorePath, AccessOption.PERSISTENT)) {
  propertyStore.remove(propertyStorePath, AccessOption.PERSISTENT);
 }
}

代码示例来源:origin: apache/incubator-pinot

public static void removeInstancePartitionAssignmentFromPropertyStore(ZkHelixPropertyStore<ZNRecord> propertyStore,
  String offlineTableName) {
 String propertyStorePath = constructPropertyStorePathForInstancePartitions(offlineTableName);
 if (propertyStore.exists(propertyStorePath, AccessOption.PERSISTENT)) {
  propertyStore.remove(propertyStorePath, AccessOption.PERSISTENT);
 }
}

代码示例来源:origin: apache/incubator-pinot

boolean[] deleteSuccessful = _propertyStore.remove(propStorePathList, AccessOption.PERSISTENT);
List<String> propStoreFailedSegs = new ArrayList<>(segmentsToDelete.size());
for (int i = 0; i < deleteSuccessful.length; i++) {

代码示例来源:origin: apache/incubator-pinot

/**
 * Delete the given schema.
 * @param schema The schema to be deleted.
 * @return True on success, false otherwise.
 */
public boolean deleteSchema(Schema schema) {
 if (schema != null) {
  String propertyStorePath = ZKMetadataProvider.constructPropertyStorePathForSchema(schema.getSchemaName());
  if (_propertyStore.exists(propertyStorePath, AccessOption.PERSISTENT)) {
   _propertyStore.remove(propertyStorePath, AccessOption.PERSISTENT);
   return true;
  }
 }
 return false;
}

代码示例来源:origin: apache/incubator-pinot

when(store.remove(anyList(), anyInt())).thenAnswer(new Answer<boolean[]>() {
 @Override
 public boolean[] answer(InvocationOnMock invocationOnMock)

代码示例来源:origin: apache/helix

@Override
public boolean[] remove(List<String> paths, int options) {
 if (_fallbackStore != null) {
  _fallbackStore.remove(paths, options);
 }
 return super.remove(paths, options);
}

代码示例来源:origin: org.apache.helix/helix-core

@Override
public boolean[] remove(List<String> paths, int options) {
 if (_fallbackStore != null) {
  _fallbackStore.remove(paths, options);
 }
 return super.remove(paths, options);
}

代码示例来源:origin: org.apache.helix/helix-core

@Override
public boolean remove(String path, int options) {
 if (_fallbackStore != null) {
  _fallbackStore.remove(path, options);
 }
 return super.remove(path, options);
}

代码示例来源:origin: apache/helix

@Override
public boolean remove(String path, int options) {
 if (_fallbackStore != null) {
  _fallbackStore.remove(path, options);
 }
 return super.remove(path, options);
}

代码示例来源:origin: apache/helix

store.remove("/", 0);

代码示例来源:origin: org.apache.helix/helix-core

mgr.getHelixPropertyStore().remove(propStoreKey, AccessOption.PERSISTENT);
 if (!mgr.getHelixPropertyStore().remove(workflowPropStoreKey, AccessOption.PERSISTENT)) {
  throw new RuntimeException(
    String

代码示例来源:origin: apache/helix

mgr.getHelixPropertyStore().remove(propStoreKey, AccessOption.PERSISTENT);
 if (!mgr.getHelixPropertyStore().remove(workflowPropStoreKey, AccessOption.PERSISTENT)) {
  throw new RuntimeException(
    String

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com