Examples of deleteRequest()


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

      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.deleteRequest()

    @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.deleteRequest()

      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.deleteRequest()

      IndexRequest index = mapping.indexRequest(indexName, entity);

      if (index != null) {
        bulk.add(index);
      } else {
        DeleteRequest delete = mapping.deleteRequest(indexName, entity);
        if (delete != null) {
          bulk.add(delete);
        }
      }
    }
View Full Code Here

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

    } else {
      mapping = context.findTypeMapping(entity);
      id = mapping.getIdString(entity);
    }

    bulk.add(mapping.deleteRequest(indexName, id, null));
  }

}
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.