Tabnine Logo
ProtocolHandlers
Code IndexAdd Tabnine to your IDE (free)

How to use
ProtocolHandlers
in
cascading.bind.catalog.handler

Best Java code snippets using cascading.bind.catalog.handler.ProtocolHandlers (Showing top 6 results out of 315)

origin: cascading/cascading-bind

public ProtocolHandlers<Protocol, Format> getProtocolHandlers( Object context )
 {
 if( !this.protocolHandlers.containsKey( context ) )
  this.protocolHandlers.put( context, new ProtocolHandlers<Protocol, Format>() );
 return this.protocolHandlers.get( context );
 }
origin: cascading/cascading-bind

ProtocolHandler getProtocolHandler( Object context, Protocol protocol )
 {
 return getProtocolHandlers( context ).findHandlerFor( protocol );
 }
origin: cascading/cascading-bind

public void addProtocolHandlers( Object context, List<ProtocolHandler<Protocol, Format>> protocolHandlers )
 {
 getProtocolHandlers( context ).addAll( protocolHandlers );
 }
origin: cascading/lingual-core

public Tap createTapFor( TableDef tableDef, SinkMode sinkMode )
 {
 Protocol protocol = tableDef.getActualProtocol();
 Format format = tableDef.getActualFormat();
 ProtocolHandler<Protocol, Format> protocolHandler = getProtocolHandlers( tableDef.getParentSchema() ).findHandlerFor( protocol );
 FormatHandler<Protocol, Format> formatHandler = getFormatHandlersFor( tableDef.getParentSchema() ).findHandlerFor( protocol, format );
 if( protocolHandler == null )
  throw new IllegalArgumentException( "no protocol handler for protocol: " + protocol );
 if( formatHandler == null )
  throw new IllegalArgumentException( "no format handler for format: " + format );
 // do not make loadable, tap loadable will handle dynamic classloader issues
 Scheme scheme = formatHandler.createScheme( tableDef.getStereotype(), protocol, format );
 Resource<Protocol, Format, SinkMode> resource = tableDef.getResourceWith( sinkMode );
 return ( (LingualProtocolHandler) protocolHandler ).createLoadableTap( scheme, resource );
 }
origin: cascading/lingual-core

public ProtocolHandlers<Protocol, Format> getProtocolHandlers( SchemaDef schemaDef )
 {
 if( schemaDef == null )
  schemaDef = schemaCatalog.getRootSchemaDef();
 return new ProtocolHandlers<Protocol, Format>( createProtocolHandlers( schemaDef ) );
 }
origin: cascading/lingual-core

private Tap createTapFor( SchemaDef schemaDef, Stereotype<Protocol, Format> stereotype, Resource<Protocol, Format, SinkMode> resource )
 {
 ProtocolHandler<Protocol, Format> protocolHandler = getProtocolHandlers( schemaDef ).findHandlerFor( resource.getProtocol() );
 FormatHandler<Protocol, Format> formatHandler = getFormatHandlersFor( schemaDef ).findHandlerFor( resource.getProtocol(), resource.getFormat() );
 if( protocolHandler == null || formatHandler == null )
  return null;
 // do not make loadable, tap loadable will handle dynamic classloader issues
 Scheme scheme = formatHandler.createScheme( stereotype, resource.getProtocol(), resource.getFormat() );
 return ( (LingualProtocolHandler) protocolHandler ).createLoadableTap( scheme, resource );
 }
cascading.bind.catalog.handlerProtocolHandlers

Most used methods

  • <init>
  • findHandlerFor
  • addAll

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Path (java.nio.file)
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now