30 INVALID, // TODO: This is kinda a kludgy workaround for the fact enums can't be null
31
32 /// <summary> Load this <see cref="Field" /> every time the <see cref="Document" /> is loaded, reading in the data as it is encountered.
33 /// <see cref="Document.GetField(String)" /> and <see cref="Document.GetFieldable(String)" /> should not return null.
34 /// <p/>
35 /// <see cref="Document.Add(IFieldable)" /> should be called by the Reader.
36 /// </summary>
37 LOAD,
38
39 /// <summary> Lazily load this <see cref="Field" />. This means the <see cref="Field" /> is valid, but it may not actually contain its data until
40 /// invoked. <see cref="Document.GetField(String)" /> SHOULD NOT BE USED. <see cref="Document.GetFieldable(String)" /> is safe to use and should
41 /// return a valid instance of a <see cref="IFieldable" />.
42 /// <p/>
43 /// <see cref="Document.Add(IFieldable)" /> should be called by the Reader.
44 /// </summary>
45 LAZY_LOAD,
46
47 /// <summary> Do not load the <see cref="Field" />. <see cref="Document.GetField(String)" /> and <see cref="Document.GetFieldable(String)" /> should return null.
48 /// <see cref="Document.Add(IFieldable)" /> is not called.
49 /// <p/>
50 /// <see cref="Document.Add(IFieldable)" /> should not be called by the Reader.
51 /// </summary>
52 NO_LOAD,
53
54 /// <summary> Load this field as in the <see cref="LOAD" /> case, but immediately return from <see cref="Field" /> loading for the <see cref="Document" />. Thus, the
55 /// Document may not have its complete set of Fields. <see cref="Document.GetField(String)" /> and <see cref="Document.GetFieldable(String)" /> should
56 /// both be valid for this <see cref="Field" />
57 /// <p/>
58 /// <see cref="Document.Add(IFieldable)" /> should be called by the Reader.
59 /// </summary>
60 LOAD_AND_BREAK,
61
62 /// <summary>Expert: Load the size of this <see cref="Field" /> rather than its value.
63 /// Size is measured as number of bytes required to store the field == bytes for a binary or any compressed value, and 2*chars for a String value.
64 /// The size is stored as a binary value, represented as an int in a byte[], with the higher order byte first in [0]
65 /// </summary>
66 SIZE,
67
68 /// <summary>Expert: Like <see cref="SIZE" /> but immediately break from the field loading loop, i.e., stop loading further fields, after the size is loaded </summary>
69 SIZE_AND_BREAK
70 }
71 }
Generated on Thu Jan 3 2013 02:34:11 for Lucene.Net by 1.8.3