Class SQLSource

java.lang.Object
org.gorpipe.driver.SQLSource
All Implemented Interfaces:
AutoCloseable, org.gorpipe.gor.driver.DataSource, org.gorpipe.gor.driver.providers.stream.sources.StreamSource

public class SQLSource extends Object implements org.gorpipe.gor.driver.providers.stream.sources.StreamSource
Represents an table in SQL database Created by villi on 22/08/15.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SQLSource(org.gorpipe.gor.driver.meta.SourceReference sourceReference)
    Create source
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
     
    org.gorpipe.gor.driver.meta.DataType
     
     
    getOutputStream(boolean append)
     
    org.gorpipe.gor.driver.providers.stream.sources.StreamSourceMetadata
     
    org.gorpipe.gor.driver.meta.SourceReference
     
    org.gorpipe.gor.driver.meta.SourceType
     
     
    open(long start)
     
    open(long start, long minLength)
     
    boolean
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gorpipe.gor.driver.DataSource

    createDirectories, createDirectory, createDirectoryIfNotExists, delete, fileExists, forceLink, getAccessValidationPath, getFullPath, getPath, getProjectLinkFile, getProjectLinkFileContent, isDirectory, list, move, useIndex, walk

    Methods inherited from interface org.gorpipe.gor.driver.providers.stream.sources.StreamSource

    copy, getOutputStream, getOutputStream, openClosable
  • Constructor Details

    • SQLSource

      public SQLSource(org.gorpipe.gor.driver.meta.SourceReference sourceReference)
      Create source
      Parameters:
      sourceReference - contains sql url of the form sql://table
  • Method Details

    • open

      public InputStream open()
      Specified by:
      open in interface org.gorpipe.gor.driver.providers.stream.sources.StreamSource
    • open

      public InputStream open(long start)
      Specified by:
      open in interface org.gorpipe.gor.driver.providers.stream.sources.StreamSource
    • open

      public InputStream open(long start, long minLength)
      Specified by:
      open in interface org.gorpipe.gor.driver.providers.stream.sources.StreamSource
    • getName

      public String getName()
      Specified by:
      getName in interface org.gorpipe.gor.driver.DataSource
    • getSourceMetadata

      public org.gorpipe.gor.driver.providers.stream.sources.StreamSourceMetadata getSourceMetadata()
      Specified by:
      getSourceMetadata in interface org.gorpipe.gor.driver.DataSource
      Specified by:
      getSourceMetadata in interface org.gorpipe.gor.driver.providers.stream.sources.StreamSource
    • getOutputStream

      public OutputStream getOutputStream(boolean append)
      Specified by:
      getOutputStream in interface org.gorpipe.gor.driver.providers.stream.sources.StreamSource
    • supportsWriting

      public boolean supportsWriting()
      Specified by:
      supportsWriting in interface org.gorpipe.gor.driver.DataSource
    • supportsLinks

      public boolean supportsLinks()
      Specified by:
      supportsLinks in interface org.gorpipe.gor.driver.DataSource
    • getSourceReference

      public org.gorpipe.gor.driver.meta.SourceReference getSourceReference()
      Specified by:
      getSourceReference in interface org.gorpipe.gor.driver.DataSource
    • getDataType

      public org.gorpipe.gor.driver.meta.DataType getDataType()
      Specified by:
      getDataType in interface org.gorpipe.gor.driver.DataSource
    • exists

      public boolean exists()
      Specified by:
      exists in interface org.gorpipe.gor.driver.DataSource
    • getSourceType

      public org.gorpipe.gor.driver.meta.SourceType getSourceType()
      Specified by:
      getSourceType in interface org.gorpipe.gor.driver.DataSource
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.gorpipe.gor.driver.DataSource
      Throws:
      IOException