Package com.cxy.redisclient.integration.key

Examples of com.cxy.redisclient.integration.key.FindContainerKeys.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();
  }
 
  public Set<String> renameContainer(int id, int db, String oldContainer, String newContainer, boolean overwritten, boolean renameSub) {
    Set<String> failContainer = new HashSet<String>();
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,
            failContainer, node);
View Full Code Here

  }
 
  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

  }
 
 
  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();
  }
 
  public long getSize(int id, int db, String key) {
    GetSize command = new GetSize(id, db, key);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.