test_class.file: cim-common/src/test/java/com/crossoverjie/cim/common/route/algorithm/consistenthash/SortArrayMapConsistentHashTest.java
test_class.identifier: SortArrayMapConsistentHashTest
test_case.body: @Test
      public void getFirstNodeValue() {
          AbstractConsistentHash map = new SortArrayMapConsistentHash() ;
  
          List<String> strings = new ArrayList<String>();
          for (int i = 0; i < 10; i++) {
              strings.add("127.0.0." + i) ;
          }
          String process = map.process(strings,"zhangsan");
          System.out.println(process);
          Assert.assertEquals("127.0.0.2",process);
  
      }
test_case.class_method_signature: SortArrayMapConsistentHashTest.getFirstNodeValue()
test_case.full_signature: @Test public void getFirstNodeValue()
test_case.identifier: getFirstNodeValue
test_case.invocations: add process println assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getFirstNodeValue()
focal_class.declarator: sortArrayMap = new SortArrayMap()
focal_class.modifier: private
focal_class.original_string: private SortArrayMap sortArrayMap = new SortArrayMap();
focal_class.type: SortArrayMap
focal_class.var_name: sortArrayMap
focal_class.declarator: VIRTUAL_NODE_SIZE = 2
focal_class.modifier: private static final
focal_class.original_string: private static final int VIRTUAL_NODE_SIZE = 2 ;
focal_class.type: int
focal_class.var_name: VIRTUAL_NODE_SIZE
focal_class.file: cim-common/src/main/java/com/crossoverjie/cim/common/route/algorithm/consistenthash/SortArrayMapConsistentHash.java
focal_class.identifier: SortArrayMapConsistentHash
focal_class.class_method_signature: SortArrayMapConsistentHash.add(long key, String value)
focal_class.full_signature: @Override public void add(long key, String value)
focal_class.identifier: add
focal_class.modifiers: @Override public
focal_class.parameters: (long key, String value)
focal_class.return: void
focal_class.signature: void add(long key, String value)
focal_class.class_method_signature: SortArrayMapConsistentHash.sort()
focal_class.full_signature: @Override public void sort()
focal_class.identifier: sort
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void sort()
focal_class.class_method_signature: SortArrayMapConsistentHash.getFirstNodeValue(String value)
focal_class.full_signature: @Override public String getFirstNodeValue(String value)
focal_class.identifier: getFirstNodeValue
focal_class.modifiers: @Override public
focal_class.parameters: (String value)
focal_class.return: String
focal_class.signature: String getFirstNodeValue(String value)
focal_class.superclass: extends AbstractConsistentHash
focal_method.body: @Override
      public String getFirstNodeValue(String value) {
          long hash = super.hash(value);
          System.out.println("value=" + value + " hash = " + hash);
          return sortArrayMap.firstNodeValue(hash);
      }
focal_method.class_method_signature: SortArrayMapConsistentHash.getFirstNodeValue(String value)
focal_method.full_signature: @Override public String getFirstNodeValue(String value)
focal_method.identifier: getFirstNodeValue
focal_method.invocations: hash println firstNodeValue
focal_method.modifiers: @Override public
focal_method.parameters: (String value)
focal_method.return: String
focal_method.signature: String getFirstNodeValue(String value)