Author: dmagda
Date: Tue Nov 14 00:28:44 2017
New Revision: 1815162
URL: http://svn.apache.org/viewvc?rev=1815162&view=rev
Log:
fixed 404 errors
Modified:
ignite/site/trunk/features/streaming.html
ignite/site/trunk/use-cases/caching/database-caching.html
Modified: ignite/site/trunk/features/streaming.html
URL:
http://svn.apache.org/viewvc/ignite/site/trunk/features/streaming.html?rev=1815162&r1=1815161&r2=1815162&view=diff
==============================================================================
--- ignite/site/trunk/features/streaming.html (original)
+++ ignite/site/trunk/features/streaming.html Tue Nov 14 00:28:44 2017
@@ -96,7 +96,7 @@ under the License.
<ul id="datagrid-examples" class="nav nav-tabs">
<li class="active"><a href="#streaming-data" role="tab"
data-toggle="tab">Stream Data</a></li>
<li><a href="#streaming-transformer" role="tab"
data-toggle="tab">Transform Data</a></li>
- <li><a href="#streaming-query" role="tab"
data-toggle="tab">Query Sliding Windows</a></li>
+ <!--<li><a href="#streaming-query" role="tab"
data-toggle="tab">Query Sliding Windows</a></li>-->
</ul>
<!-- Tab panes -->
@@ -138,30 +138,30 @@ under the License.
}
</pre>
</div>
- <div role="tabpanel" class="tab-pane" id="streaming-query">
- <pre class="brush:java">
- CacheConfiguration<String, Instrument> cfg =
new CacheConfiguration<>("instCache");
-
- // LRU window holding 1,000,000 entries.
- cfg.setEvictionPolicyFactory(new
LruEvictionPolicy(1_000_000));
-
- // Index some fields for querying portfolio
positions.
- cfg.setIndexedTypes(String.class,
Instrument.class);
-
- // Get a handle on the cache (create it if
necessary).
- IgniteCache<String, Instrument< instCache =
ignite.getOrCreateCache(cfg);
-
- // Select top 3 best performing instruments from
the sliding window.
- SqlFieldsQuery top3qry = new SqlFieldsQuery(
- "select symbol, (latestPrice - openPrice) as
change "
- + "from Instrument "
- + "order by change "
- + "desc limit 3"
- );
-
- // List of rows. Every row is represented as a
List as well.
- List<List<?>> top3 =
instCache.query(top3qry).getAll(); </pre>
- </div>
+ <!--<div role="tabpanel" class="tab-pane"
id="streaming-query">-->
+ <!--<pre class="brush:java">-->
+ <!--CacheConfiguration<String, Instrument>
cfg = new CacheConfiguration<>("instCache");-->
+
+ <!--// LRU window holding 1,000,000 entries.-->
+ <!--cfg.setEvictionPolicyFactory(new
LruEvictionPolicy(1_000_000));-->
+
+ <!--// Index some fields for querying portfolio
positions.-->
+ <!--cfg.setIndexedTypes(String.class,
Instrument.class);-->
+
+ <!--// Get a handle on the cache (create it if
necessary).-->
+ <!--IgniteCache<String, Instrument<
instCache = ignite.getOrCreateCache(cfg);-->
+
+ <!--// Select top 3 best performing instruments
from the sliding window.-->
+ <!--SqlFieldsQuery top3qry = new SqlFieldsQuery(-->
+ <!--"select symbol, (latestPrice - openPrice) as
change "-->
+ <!--+ "from Instrument "-->
+ <!--+ "order by change "-->
+ <!--+ "desc limit 3"-->
+ <!--);-->
+
+ <!--// List of rows. Every row is represented as a
List as well.-->
+ <!--List<List<?>> top3 =
instCache.query(top3qry).getAll(); </pre>-->
+ <!--</div>-->
</div>
</div>
<div class="page-heading">GitHub Examples:</div>
Modified: ignite/site/trunk/use-cases/caching/database-caching.html
URL:
http://svn.apache.org/viewvc/ignite/site/trunk/use-cases/caching/database-caching.html?rev=1815162&r1=1815161&r2=1815162&view=diff
==============================================================================
--- ignite/site/trunk/use-cases/caching/database-caching.html (original)
+++ ignite/site/trunk/use-cases/caching/database-caching.html Tue Nov 14
00:28:44 2017
@@ -54,7 +54,7 @@ under the License.
<div class="col-sm-12 col-md-12 col-xs-12" style="padding:0 0 20px
0;">
<div class="col-sm-6 col-md-6 col-xs-12"
style="padding-left:0;">
<p>
- Ignite <code>database caching</code> is implemented in
the <nobr><a href="features/datagrid.html">data grid</a></nobr>
+ Ignite <code>database caching</code> is implemented in
the <nobr><a href="/features/datagrid.html">data grid</a></nobr>
component. It enables users to keep the most
frequently accessed data in memory, by either
partitioning or replicating it across a cluster of
computers.
</p>