ValueExtractor .FilterFactory.createExtractor(String s).This example does the same operations as the QueryExample in the contacts example. The purpose of this example is to show how to create Extractors and Filters by using the Coherence QueryHelper interface indirectly through a FilterFactory. Object .aggregate(Filter arg0, EntryAggregator arg1)ĥ) QueryLanguageExample: runs sample queries for contacts..GreaterFilter.GreaterFilter(String sMethod, int iValue)..LikeFilter.LikeFilter(String sMethod, String sPattern)..NotEqualsFilter.NotEqualsFilter(String sMethod, Object oValue)..AndFilter.AndFilter(Filter filterLeft, Filter filterRight)..EqualsFilter.EqualsFilter(String sMethod, Object oValue)..ChainedExtractor.ChainedExtractor(String sName)..KeyExtractor.KeyExtractor(ValueExtractor extractor)..ReflectionExtractor.ReflectionExtractor(String sMethod).It also illustrates how to use the indexes to filter the dataset in order to efficiently create a matching set.įinally the example demonstrates how to use some of the built-in cache aggregators to do simple computational tasks on the cache data. The purpose of this example is to show how to create Extractors on cache data and how to create a KeyExtractor for the cache keys. Load contacts from a CSV file, then populate the cache with the data.Ĥ) QueryExample: runs sample queries for contacts. The data can may then be loaded with the LoaderExample.ģ) LoaderExample: Loading example data into the Coherence Data Grid. Generates random Contact information and store the result in a CSV file. Object .CacheMap.put(Object oKey, Object oValue).The example project includes the most important features code which separated from some example classes.Įach example class could be run as one application and if you want to run them as one suite,you need run the Drive class which makes all the examples as one chain.ġ) BasicExample: “Getting”, “putting” and “removing” data from the Coherence Data Grid The code includes most features list in Tutorial documentation. The Coherence office site provides some examples and you could download them from the URL .Īnd HOW-TO build and run them is given in the link.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |