- All Known Implementing Classes:
DataSourceReference.Id,DataSourceReference.Latest,DataSourceReference.Name
public interface DataSourceReference
Represents a reference to an XPipe data source.
Using
DataSourceReference instances instead of DataStoreId
instances is mainly done for user convenience purposes.
While a DataStoreId represents a unique and canonical identifier for an XPipe data source,
there also exist easier and shorter ways to address a data source.
This convenience comes at the price of ambiguity and instability for other types of references.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA wrapper class forDataStoreIdinstances.static classSpecifying the latest reference allows the user to always address the latest data source.static classUsing only the data source name allows for a shorthand way of referring to data sources.static enum -
Method Summary
Modifier and TypeMethodDescriptiongetId()getName()getType()static DataSourceReferenceid(DataStoreId id) Creates a reference by using a canonical data source id.static DataSourceReferenceConvenience method forid(DataStoreId)static DataSourceReferencelatest()Creates a reference that always refers to the latest data source.static DataSourceReferenceCreates a reference using only the data source name.static DataSourceReferenceReturns the internal string representation of this reference.toString()
-
Method Details
-
latest
Creates a reference that always refers to the latest data source.- See Also:
-
name
Creates a reference using only the data source name.- See Also:
-
id
Convenience method forid(DataStoreId)- See Also:
-
id
Creates a reference by using a canonical data source id.- See Also:
-
parse
-
getType
DataSourceReference.Type getType() -
getId
DataStoreId getId() -
getName
String getName() -
toRefString
String toRefString()Returns the internal string representation of this reference. -
toString
String toString()
-