code: private ByteBuffer getPartitionKey(List<Pair<String, Serializable>> equalsList, Serializable inValue) {
  
          assert (equalsList.size() + 1) == ((CompositeType) keyValidator).componentsCount();
  
          ByteBuffer[] serialized = new ByteBuffer[equalsList.size() + 1];
          for (int i = 0; i < equalsList.size(); i++) {
              ByteBuffer buffer = ((AbstractType) keyValidator.getComponents().get(i)).decompose(equalsList.get(i).right);
              serialized[i] = buffer;
          }
          serialized[serialized.length - 1] = ((AbstractType) keyValidator.getComponents().get(serialized.length - 1))
                  .decompose(inValue);
  
          return CompositeType.build(serialized);
      }
docs: Builds the partition key in {@link ByteBuffer} format for the given values.
  
  @param equalsList List of equals field and value pairs.
  @param inValue    Value for the operator in.
  @return with the partition key.