Examples of toIdString()


Examples of at.molindo.esi4j.mapping.TypeMapping.toIdString()

      return this;
    }

    private DeleteRequestBuilder toDeleteRequest(Class<?> type, Object id, Long version) {
      TypeMapping mapping = _context.findTypeMapping(type);
      return mapping.deleteRequest(_client, _indexName, mapping.toIdString(id), version);
    }

    private void add(ActionRequestBuilder<?, ?, ?> request) {
      _requests.add(request);
      if (_requests.size() == _batchSize) {
View Full Code Here

Examples of at.molindo.esi4j.mapping.TypeMapping.toIdString()

      return this;
    }

    private DeleteRequestBuilder toDeleteRequest(Class<?> type, Object id, Long version) {
      TypeMapping mapping = _context.findTypeMapping(type);
      return mapping.deleteRequest(_client, _indexName, mapping.toIdString(id), version);
    }

    private void add(ActionRequestBuilder<?, ?, ?> request) {
      _requests.add(request);
      if (_requests.size() == _batchSize) {
View Full Code Here

Examples of at.molindo.esi4j.mapping.TypeMapping.toIdString()

    @Override
    public ListenableActionFuture<GetResponse> execute(Client client, String indexName, OperationContext helper) {
      final TypeMapping typeMapping = helper.findTypeMapping(_type);

      final String type = typeMapping.getTypeAlias();
      final String id = typeMapping.toIdString(_id);

      return client.prepareGet(indexName, type, id).execute();
    }
  }
View Full Code Here

Examples of at.molindo.esi4j.mapping.TypeMapping.toIdString()

    @Override
    @SuppressWarnings(value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE", justification = "_id not null at this point")
    public ListenableActionFuture<DeleteResponse> execute(Client client, String indexName, OperationContext helper) {
      final TypeMapping typeMapping = helper.findTypeMapping(_type);
      return typeMapping.deleteRequest(client, indexName, typeMapping.toIdString(_id), null).execute();
    }
  }

}
View Full Code Here

Examples of at.molindo.esi4j.mapping.TypeMapping.toIdString()

      final String type = typeMapping.getTypeAlias();

      MultiGetRequestBuilder builder = client.prepareMultiGet();
      for (Object id : _ids) {
        // ignore indexName as it may be a multi-index
        builder.add(helper.findIndexName(_type), type, typeMapping.toIdString(id));
      }

      return builder.execute();
    }
View Full Code Here

Examples of at.molindo.esi4j.mapping.TypeMapping.toIdString()

    String id;
    if (entity instanceof ObjectKey) {
      ObjectKey key = (ObjectKey) entity;
      mapping = context.findTypeMapping(key.getType());
      id = mapping.toIdString(key.getId());
    } else {
      mapping = context.findTypeMapping(entity);
      id = mapping.getIdString(entity);
    }
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.