• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!-- NewPage -->
3<html lang="en">
4<head>
5<!-- Generated by javadoc (version 1.7.0_25) on Thu Jan 01 17:43:55 PST 2015 -->
6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7<title>ObjectWriter.Prefetch (jackson-databind 2.5.0 API)</title>
8<meta name="date" content="2015-01-01">
9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
10</head>
11<body>
12<script type="text/javascript"><!--
13    if (location.href.indexOf('is-external=true') == -1) {
14        parent.document.title="ObjectWriter.Prefetch (jackson-databind 2.5.0 API)";
15    }
16//-->
17</script>
18<noscript>
19<div>JavaScript is disabled on your browser.</div>
20</noscript>
21<!-- ========= START OF TOP NAVBAR ======= -->
22<div class="topNav"><a name="navbar_top">
23<!--   -->
24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
25<!--   -->
26</a>
27<ul class="navList" title="Navigation">
28<li><a href="../../../../overview-summary.html">Overview</a></li>
29<li><a href="package-summary.html">Package</a></li>
30<li class="navBarCell1Rev">Class</li>
31<li><a href="class-use/ObjectWriter.Prefetch.html">Use</a></li>
32<li><a href="package-tree.html">Tree</a></li>
33<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
34<li><a href="../../../../index-all.html">Index</a></li>
35<li><a href="../../../../help-doc.html">Help</a></li>
36</ul>
37</div>
38<div class="subNav">
39<ul class="navList">
40<li><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.GeneratorSettings.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li>
41<li><a href="../../../../com/fasterxml/jackson/databind/PropertyMetadata.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li>
42</ul>
43<ul class="navList">
44<li><a href="../../../../index.html?com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" target="_top">Frames</a></li>
45<li><a href="ObjectWriter.Prefetch.html" target="_top">No Frames</a></li>
46</ul>
47<ul class="navList" id="allclasses_navbar_top">
48<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
49</ul>
50<div>
51<script type="text/javascript"><!--
52  allClassesLink = document.getElementById("allclasses_navbar_top");
53  if(window==top) {
54    allClassesLink.style.display = "block";
55  }
56  else {
57    allClassesLink.style.display = "none";
58  }
59  //-->
60</script>
61</div>
62<div>
63<ul class="subNavList">
64<li>Summary:&nbsp;</li>
65<li>Nested&nbsp;|&nbsp;</li>
66<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
67<li>Constr&nbsp;|&nbsp;</li>
68<li><a href="#method_summary">Method</a></li>
69</ul>
70<ul class="subNavList">
71<li>Detail:&nbsp;</li>
72<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
73<li>Constr&nbsp;|&nbsp;</li>
74<li><a href="#method_detail">Method</a></li>
75</ul>
76</div>
77<a name="skip-navbar_top">
78<!--   -->
79</a></div>
80<!-- ========= END OF TOP NAVBAR ========= -->
81<!-- ======== START OF CLASS DATA ======== -->
82<div class="header">
83<div class="subTitle">com.fasterxml.jackson.databind</div>
84<h2 title="Class ObjectWriter.Prefetch" class="title">Class ObjectWriter.Prefetch</h2>
85</div>
86<div class="contentContainer">
87<ul class="inheritance">
88<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
89<li>
90<ul class="inheritance">
91<li>com.fasterxml.jackson.databind.ObjectWriter.Prefetch</li>
92</ul>
93</li>
94</ul>
95<div class="description">
96<ul class="blockList">
97<li class="blockList">
98<dl>
99<dt>All Implemented Interfaces:</dt>
100<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd>
101</dl>
102<dl>
103<dt>Enclosing class:</dt>
104<dd><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind">ObjectWriter</a></dd>
105</dl>
106<hr>
107<br>
108<pre>public static final class <span class="strong">ObjectWriter.Prefetch</span>
109extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
110implements <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre>
111<div class="block">As a minor optimization, we will make an effort to pre-fetch a serializer,
112 or at least relevant <code>TypeSerializer</code>, if given enough
113 information.</div>
114<dl><dt><span class="strong">Since:</span></dt>
115  <dd>2.5</dd>
116<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#com.fasterxml.jackson.databind.ObjectWriter.Prefetch">Serialized Form</a></dd></dl>
117</li>
118</ul>
119</div>
120<div class="summary">
121<ul class="blockList">
122<li class="blockList">
123<!-- =========== FIELD SUMMARY =========== -->
124<ul class="blockList">
125<li class="blockList"><a name="field_summary">
126<!--   -->
127</a>
128<h3>Field Summary</h3>
129<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
130<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
131<tr>
132<th class="colFirst" scope="col">Modifier and Type</th>
133<th class="colLast" scope="col">Field and Description</th>
134</tr>
135<tr class="altColor">
136<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a></code></td>
137<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#empty">empty</a></strong></code>&nbsp;</td>
138</tr>
139<tr class="rowColor">
140<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a></code></td>
141<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#rootType">rootType</a></strong></code>
142<div class="block">Specified root serialization type to use; can be same
143 as runtime type, but usually one of its super types</div>
144</td>
145</tr>
146<tr class="altColor">
147<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a></code></td>
148<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#typeSerializer">typeSerializer</a></strong></code>
149<div class="block">When dealing with polymorphic types, we can not pre-fetch
150 serializer, but we can pre-fetch <a href="../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a>.</div>
151</td>
152</tr>
153<tr class="rowColor">
154<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;</code></td>
155<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#valueSerializer">valueSerializer</a></strong></code>
156<div class="block">We may pre-fetch serializer if <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#rootType"><code>rootType</code></a>
157 is known, and if so, reuse it afterwards.</div>
158</td>
159</tr>
160</table>
161</li>
162</ul>
163<!-- ========== METHOD SUMMARY =========== -->
164<ul class="blockList">
165<li class="blockList"><a name="method_summary">
166<!--   -->
167</a>
168<h3>Method Summary</h3>
169<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
170<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
171<tr>
172<th class="colFirst" scope="col">Modifier and Type</th>
173<th class="colLast" scope="col">Method and Description</th>
174</tr>
175<tr class="altColor">
176<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a></code></td>
177<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#construct(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer)">construct</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>&nbsp;type,
178         <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;ser)</code>&nbsp;</td>
179</tr>
180<tr class="rowColor">
181<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a></code></td>
182<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#construct(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.jsontype.TypeSerializer)">construct</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>&nbsp;type,
183         <a href="../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a>&nbsp;typeSer)</code>&nbsp;</td>
184</tr>
185<tr class="altColor">
186<td class="colFirst"><code>boolean</code></td>
187<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#hasSerializer()">hasSerializer</a></strong>()</code>&nbsp;</td>
188</tr>
189</table>
190<ul class="blockList">
191<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
192<!--   -->
193</a>
194<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
195<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
196</ul>
197</li>
198</ul>
199</li>
200</ul>
201</div>
202<div class="details">
203<ul class="blockList">
204<li class="blockList">
205<!-- ============ FIELD DETAIL =========== -->
206<ul class="blockList">
207<li class="blockList"><a name="field_detail">
208<!--   -->
209</a>
210<h3>Field Detail</h3>
211<a name="empty">
212<!--   -->
213</a>
214<ul class="blockList">
215<li class="blockList">
216<h4>empty</h4>
217<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a> empty</pre>
218</li>
219</ul>
220<a name="rootType">
221<!--   -->
222</a>
223<ul class="blockList">
224<li class="blockList">
225<h4>rootType</h4>
226<pre>public final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType</pre>
227<div class="block">Specified root serialization type to use; can be same
228 as runtime type, but usually one of its super types</div>
229</li>
230</ul>
231<a name="valueSerializer">
232<!--   -->
233</a>
234<ul class="blockList">
235<li class="blockList">
236<h4>valueSerializer</h4>
237<pre>public final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt; valueSerializer</pre>
238<div class="block">We may pre-fetch serializer if <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html#rootType"><code>rootType</code></a>
239 is known, and if so, reuse it afterwards.
240 This allows avoiding further serializer lookups and increases
241 performance a bit on cases where readers are reused.</div>
242</li>
243</ul>
244<a name="typeSerializer">
245<!--   -->
246</a>
247<ul class="blockListLast">
248<li class="blockList">
249<h4>typeSerializer</h4>
250<pre>public final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> typeSerializer</pre>
251<div class="block">When dealing with polymorphic types, we can not pre-fetch
252 serializer, but we can pre-fetch <a href="../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a>.</div>
253</li>
254</ul>
255</li>
256</ul>
257<!-- ============ METHOD DETAIL ========== -->
258<ul class="blockList">
259<li class="blockList"><a name="method_detail">
260<!--   -->
261</a>
262<h3>Method Detail</h3>
263<a name="construct(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer)">
264<!--   -->
265</a>
266<ul class="blockList">
267<li class="blockList">
268<h4>construct</h4>
269<pre>public static&nbsp;<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a>&nbsp;construct(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>&nbsp;type,
270                              <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&lt;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;ser)</pre>
271</li>
272</ul>
273<a name="construct(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.jsontype.TypeSerializer)">
274<!--   -->
275</a>
276<ul class="blockList">
277<li class="blockList">
278<h4>construct</h4>
279<pre>public static&nbsp;<a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" title="class in com.fasterxml.jackson.databind">ObjectWriter.Prefetch</a>&nbsp;construct(<a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>&nbsp;type,
280                              <a href="../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a>&nbsp;typeSer)</pre>
281</li>
282</ul>
283<a name="hasSerializer()">
284<!--   -->
285</a>
286<ul class="blockListLast">
287<li class="blockList">
288<h4>hasSerializer</h4>
289<pre>public&nbsp;boolean&nbsp;hasSerializer()</pre>
290</li>
291</ul>
292</li>
293</ul>
294</li>
295</ul>
296</div>
297</div>
298<!-- ========= END OF CLASS DATA ========= -->
299<!-- ======= START OF BOTTOM NAVBAR ====== -->
300<div class="bottomNav"><a name="navbar_bottom">
301<!--   -->
302</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
303<!--   -->
304</a>
305<ul class="navList" title="Navigation">
306<li><a href="../../../../overview-summary.html">Overview</a></li>
307<li><a href="package-summary.html">Package</a></li>
308<li class="navBarCell1Rev">Class</li>
309<li><a href="class-use/ObjectWriter.Prefetch.html">Use</a></li>
310<li><a href="package-tree.html">Tree</a></li>
311<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
312<li><a href="../../../../index-all.html">Index</a></li>
313<li><a href="../../../../help-doc.html">Help</a></li>
314</ul>
315</div>
316<div class="subNav">
317<ul class="navList">
318<li><a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.GeneratorSettings.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li>
319<li><a href="../../../../com/fasterxml/jackson/databind/PropertyMetadata.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li>
320</ul>
321<ul class="navList">
322<li><a href="../../../../index.html?com/fasterxml/jackson/databind/ObjectWriter.Prefetch.html" target="_top">Frames</a></li>
323<li><a href="ObjectWriter.Prefetch.html" target="_top">No Frames</a></li>
324</ul>
325<ul class="navList" id="allclasses_navbar_bottom">
326<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
327</ul>
328<div>
329<script type="text/javascript"><!--
330  allClassesLink = document.getElementById("allclasses_navbar_bottom");
331  if(window==top) {
332    allClassesLink.style.display = "block";
333  }
334  else {
335    allClassesLink.style.display = "none";
336  }
337  //-->
338</script>
339</div>
340<div>
341<ul class="subNavList">
342<li>Summary:&nbsp;</li>
343<li>Nested&nbsp;|&nbsp;</li>
344<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
345<li>Constr&nbsp;|&nbsp;</li>
346<li><a href="#method_summary">Method</a></li>
347</ul>
348<ul class="subNavList">
349<li>Detail:&nbsp;</li>
350<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
351<li>Constr&nbsp;|&nbsp;</li>
352<li><a href="#method_detail">Method</a></li>
353</ul>
354</div>
355<a name="skip-navbar_bottom">
356<!--   -->
357</a></div>
358<!-- ======== END OF BOTTOM NAVBAR ======= -->
359<p class="legalCopy"><small>Copyright &#169; 2014-2015 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p>
360</body>
361</html>
362