code: @Override
      public void index(Class entityClazz, EntityMetadata m, Map<String, Object> values, Object parentId,
              Class parentClazz)
      {
          Set<String> indexNames = values.keySet();
          for (String idx_Name : indexNames)
          {
              Double value = (Double) values.get(idx_Name);
              Pipeline pipeLine = null;
              try
              {
                  if (this.pipeLineOrConnection.getClass().isAssignableFrom(Jedis.class))
                  {
                      pipeLine = ((Jedis) this.pipeLineOrConnection).pipelined();
                      pipeLine.zadd(idx_Name, value, parentId.toString());
                      // pipeLine.sync();
                  }
                  else
                  {
                      ((Transaction) this.pipeLineOrConnection).zadd(idx_Name, value, parentId.toString());
                  }
              }
              finally
              {
                  if (pipeLine != null)
                  {
                      pipeLine.sync();
                  }
              }
          }
  
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.index.Indexer#index(java.lang.Class,
  java.util.Map, java.lang.Object, java.lang.Class)