Uses of Class
org.apache.druid.java.util.common.Either
-
Packages that use Either Package Description org.apache.druid.common.guava org.apache.druid.java.util.common org.apache.druid.java.util.http.client.response -
-
Uses of Either in org.apache.druid.common.guava
Methods in org.apache.druid.common.guava that return types with arguments of type Either Modifier and Type Method Description static <T> com.google.common.util.concurrent.ListenableFuture<List<Either<Throwable,T>>>FutureUtils. coalesce(List<com.google.common.util.concurrent.ListenableFuture<T>> futures)LikeFutures.successfulAsList(com.google.common.util.concurrent.ListenableFuture<? extends V>...), but returnsEitherinstead of usingnullin case of error. -
Uses of Either in org.apache.druid.java.util.common
Methods in org.apache.druid.java.util.common that return Either Modifier and Type Method Description static <L,R>
Either<L,R>Either. error(L error)<T> Either<L,T>Either. map(Function<R,T> fn)Applies a function to this value, if present.static <L,R>
Either<L,R>Either. value(R value) -
Uses of Either in org.apache.druid.java.util.http.client.response
Methods in org.apache.druid.java.util.http.client.response that return types with arguments of type Either Modifier and Type Method Description ClientResponse<Either<StringFullResponseHolder,FinalType>>ObjectOrErrorResponseHandler. done(ClientResponse<Either<StringFullResponseHolder,IntermediateType>> clientResponse)ClientResponse<Either<StringFullResponseHolder,IntermediateType>>ObjectOrErrorResponseHandler. handleChunk(ClientResponse<Either<StringFullResponseHolder,IntermediateType>> clientResponse, org.jboss.netty.handler.codec.http.HttpChunk chunk, long chunkNum)ClientResponse<Either<StringFullResponseHolder,IntermediateType>>ObjectOrErrorResponseHandler. handleResponse(org.jboss.netty.handler.codec.http.HttpResponse response, HttpResponseHandler.TrafficCop trafficCop)Method parameters in org.apache.druid.java.util.http.client.response with type arguments of type Either Modifier and Type Method Description ClientResponse<Either<StringFullResponseHolder,FinalType>>ObjectOrErrorResponseHandler. done(ClientResponse<Either<StringFullResponseHolder,IntermediateType>> clientResponse)voidObjectOrErrorResponseHandler. exceptionCaught(ClientResponse<Either<StringFullResponseHolder,IntermediateType>> clientResponse, Throwable e)ClientResponse<Either<StringFullResponseHolder,IntermediateType>>ObjectOrErrorResponseHandler. handleChunk(ClientResponse<Either<StringFullResponseHolder,IntermediateType>> clientResponse, org.jboss.netty.handler.codec.http.HttpChunk chunk, long chunkNum)
-