Class DelegatingCompletionHandler

  • All Implemented Interfaces:
    CompletionHandler

    public class DelegatingCompletionHandler
    extends java.lang.Object
    implements CompletionHandler
    Allows you to join multiple completion handlers together, and coalesce the final results. In the future, we will better log which handlers provided which completions. We may also simply call the different handlers in a different manner, when the v2 implementation api changes to better support the ChunkerDocument model (and pushing results to client directly), rendering this class obsolete. NOTE: This class is not currently in use, since the coalesced results wound up causing ugly duplications with different whitespace. We will delete it after merging, to have it in git history, in case we decide to revive it later.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<io.deephaven.proto.backplane.script.grpc.CompletionItem.Builder> runCompletion​(io.deephaven.lang.parse.ParsedDocument doc, io.deephaven.proto.backplane.script.grpc.Position pos, int offset)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelegatingCompletionHandler

        public DelegatingCompletionHandler​(CompletionHandler... handlers)
    • Method Detail

      • runCompletion

        public java.util.Collection<io.deephaven.proto.backplane.script.grpc.CompletionItem.Builder> runCompletion​(io.deephaven.lang.parse.ParsedDocument doc,
                                                                                                                   io.deephaven.proto.backplane.script.grpc.Position pos,
                                                                                                                   int offset)
        Specified by:
        runCompletion in interface CompletionHandler