18 lines
368 B
Ruby
18 lines
368 B
Ruby
module CartoDB
|
|
module Datasources
|
|
# Performs streaming from the datasource to a file
|
|
class BaseFileStream < Base
|
|
|
|
# @param id string
|
|
# @param stream Stream
|
|
# @return Integer bytes streamed
|
|
def stream_resource(id, stream)
|
|
raise 'To be implemented in child classes'
|
|
end
|
|
|
|
private_class_method :new
|
|
|
|
end
|
|
end
|
|
end
|