java.lang.Object
io.xpipe.api.impl.DataSourceImpl
- All Implemented Interfaces:
DataSource
- Direct Known Subclasses:
DataRawImpl,DataStructureImpl,DataTableImpl,DataTextImpl
-
Constructor Summary
ConstructorsConstructorDescriptionDataSourceImpl(io.xpipe.core.source.DataSourceId sourceId, DataSourceConfig config, io.xpipe.core.source.DataSource<?> internalSource) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(DataSource target) static DataSourcecreate(io.xpipe.core.source.DataSourceId id, io.xpipe.core.source.DataSource<?> source) Creates a new data source from an input stream.static DataSourceCreates a new data source from an input stream.static DataSourcecreate(io.xpipe.core.source.DataSourceId id, String type, InputStream in) Creates a new data source from an input stream.voidforwardTo(DataSource target) static DataSourceget(io.xpipe.core.source.DataSourceReference ds) Retrieves the data source for a given reference.io.xpipe.core.source.DataSourceIdgetId()Returns the id of this data source.io.xpipe.core.source.DataSource<?>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.xpipe.api.DataSource
asRaw, asStructure, asTable, asText, getType
-
Constructor Details
-
DataSourceImpl
public DataSourceImpl(io.xpipe.core.source.DataSourceId sourceId, DataSourceConfig config, io.xpipe.core.source.DataSource<?> internalSource)
-
-
Method Details
-
get
Description copied from interface:DataSourceRetrieves the data source for a given reference.- Parameters:
ds- the data source reference
-
create
public static DataSource create(io.xpipe.core.source.DataSourceId id, io.xpipe.core.source.DataSource<?> source) Description copied from interface:DataSourceCreates a new data source from an input stream.- Parameters:
id- the data source id- Returns:
- a
DataSourceinstances that can be used to access the underlying data
-
create
public static DataSource create(io.xpipe.core.source.DataSourceId id, String type, io.xpipe.core.store.DataStore store) Description copied from interface:DataSourceCreates a new data source from an input stream. 1- Parameters:
id- the data source idtype- the data source typestore- the data store to add- Returns:
- a
DataSourceinstances that can be used to access the underlying data
-
create
Description copied from interface:DataSourceCreates a new data source from an input stream.- Parameters:
id- the data source idtype- the data source typein- the input stream to read- Returns:
- a
DataSourceinstances that can be used to access the underlying data
-
forwardTo
- Specified by:
forwardToin interfaceDataSource
-
appendTo
- Specified by:
appendToin interfaceDataSource
-
getInternalSource
public io.xpipe.core.source.DataSource<?> getInternalSource()- Specified by:
getInternalSourcein interfaceDataSource
-
getId
public io.xpipe.core.source.DataSourceId getId()Description copied from interface:DataSourceReturns the id of this data source.- Specified by:
getIdin interfaceDataSource
-
getConfig
- Specified by:
getConfigin interfaceDataSource
-