auto-complete, spell-checkers and others. In order to create a new prefix index, use this class by providing the following arguments in the constructor: - An instance ofHollowReadStateEngine- A type on which the
@HollowPrimaryKey(fields="id")publicclassMovie{longid;Stringtitle;intreleaseYear;publicMovie(longid,Stringtitle,intreleaseYear){this.id=id;this.title=title;this.releaseYear=releaseYear;}} And that manyMovies exist which comprise a dataset that needs to be disseminated: ...
Create a new string value namedDefaultPasswordby right-clicking, selectingNew, thenString Value, and naming itDefaultPassword. Double-click theDefaultPasswordstring and enter your account password in theValue datafield. ClickOK. Locate theAutoAdminLogonstring. If it's not present, create it by right...
and cache a POJO implementation for each ordinal, which can be used by consumers in tight inner loops. This is accomplished by simply passing aSet<String>as the second constructor argument when instantiating a custom-generated Hollow API. The elements in the Set should be the types to cache. ...
HollowConsumer consumer = /// or your HollowReadStateEngine HollowExplorerUI ui = new HollowExplorerUI("", consumer); Incoming requests should be sent to the handle method in your HollowExplorerUI instance: public boolean handle(String target, HttpServletRequest req, HttpServletResponse resp) ...
InputTestDatainput=newInputTestData();input.Movie().id(1L).title("foo").countries()// is a set.String("US").String("CA").up()// to parent.tags()// is a map.entry(TYPE,"Movie").entry(GENRE,"action"); And aHollowConsumercan be initialized with the data state like- ...
public class Movie { long id; String title; int releaseYear; public Movie(long id, String title, int releaseYear) { this.id = id; this.title = title; this.releaseYear = releaseYear; } } In order to create a new data state and write it to disk, we can use a HollowWriteStateEngin...
Now that our producer is writing data into S3, we need our consumers to read that data. Open up the Consumer class in the Hollow reference implementation project. Modify the main method: swap the BlobRetriever and AnnouncementWatcher implementations as follows, replacing zzz-hollow-reference-...