Package com.cxy.redisclient.integration.key

Examples of com.cxy.redisclient.integration.key.FindContainerKeysFactory


    command.execute();
    return command.getKeys();
  }
 
  public Set<Node> listContainerAllKeys(int id, int db, String container) {
    FindContainerKeys command = new FindContainerKeysFactory(id, db, container, "*").getListContainerAllKeys();
    command.execute();
    return command.getKeys();
  }
View Full Code Here


 
  public Set<String> renameContainer(int id, int db, String oldContainer, String newContainer, boolean overwritten, boolean renameSub) {
    Set<String> failContainer = new HashSet<String>();
   
    if(renameSub){
      FindContainerKeys command = new FindContainerKeysFactory(id, db, oldContainer, "*").getListContainerAllKeys();
      command.execute();
      Set<Node> nodes = command.getKeys();
     
      for(Node node: nodes) {
        renameKey(id, db, oldContainer, newContainer, overwritten,
View Full Code Here

      failContainer.add(newKey);
  }
 
  public void deleteContainer(int id, int db, String container, boolean deleteSub) {
    if(deleteSub){
      FindContainerKeys command = new FindContainerKeysFactory(id, db, container, "*").getListContainerAllKeys();
      command.execute();
      Set<Node> nodes = command.getKeys();
     
      for(Node node: nodes) {
        deleteKey(id, db, node.getKey());
View Full Code Here

    return nodes;
  }
 
 
  public Set<Node> findKeys(int id, int db, String container, List<NodeType> searchNodeType, String keyPattern, boolean forward) {
    FindContainerKeys command = new FindContainerKeysFactory(id, db, container, searchNodeType, keyPattern, forward).getListContainerAllKeys();
    command.execute();
    return command.getKeys();
  }
View Full Code Here

TOP

Related Classes of com.cxy.redisclient.integration.key.FindContainerKeysFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.