Package org.instancio.feed
Annotation Type Feed.DataAccess
- Enclosing interface:
Feed
Specifies the data access strategy to be used by a feed.
This annotation can be used on a Feed interface to override
the default data access mode set via Keys.FEED_DATA_ACCESS.
By using this annotation, the feed can explicitly declare whether
data should be accessed sequentially or randomly.
For example, the data access mode for the following
SampleFeed class will be random, regardless of
the Keys.FEED_DATA_ACCESS setting.
Example:
@Feed.DataAccess(FeedDataAccess.RANDOM)
@Feed.Source(name = "data/sample.csv")
interface SampleFeed extends Feed {
// ...
}
- Since:
- 5.0.0
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionSpecifies the data access strategy to be used by the annotated feed.
-
Element Details
-
value
Specifies the data access strategy to be used by the annotated feed.- Returns:
- the data access strategy
- Since:
- 5.0.0
-