Exemple #1
0
            public PreFlexTermsWriter(PreFlexRWFieldsWriter outerInstance, FieldInfo fieldInfo)
            {
                this.outerInstance = outerInstance;

                InitializeInstanceFields();
                this.fieldInfo = fieldInfo;
                omitTF         = fieldInfo.IndexOptions == IndexOptions.DOCS_ONLY;
                storePayloads  = fieldInfo.HasPayloads;
            }
Exemple #2
0
            private readonly PostingsWriter postingsWriter; // LUCENENET: marked readonly

            public PreFlexTermsWriter(PreFlexRWFieldsWriter outerInstance, FieldInfo fieldInfo)
            {
                this.outerInstance = outerInstance;

                postingsWriter = new PostingsWriter(this);
                this.fieldInfo = fieldInfo;
                omitTF         = fieldInfo.IndexOptions == IndexOptions.DOCS_ONLY;
                storePayloads  = fieldInfo.HasPayloads;
            }
            public PreFlexTermsWriter(PreFlexRWFieldsWriter outerInstance, FieldInfo fieldInfo)
            {
                this.OuterInstance = outerInstance;

                if (!InstanceFieldsInitialized)
                {
                    InitializeInstanceFields();
                    InstanceFieldsInitialized = true;
                }
                this.FieldInfo = fieldInfo;
                OmitTF         = fieldInfo.FieldIndexOptions == FieldInfo.IndexOptions.DOCS_ONLY;
                StorePayloads  = fieldInfo.HasPayloads();
            }
 public PostingsWriter(PreFlexRWFieldsWriter.PreFlexTermsWriter outerInstance)
 {
     this.OuterInstance = outerInstance;
 }
            public PreFlexTermsWriter(PreFlexRWFieldsWriter outerInstance, FieldInfo fieldInfo)
            {
                this.OuterInstance = outerInstance;

                if (!InstanceFieldsInitialized)
                {
                    InitializeInstanceFields();
                    InstanceFieldsInitialized = true;
                }
                this.FieldInfo = fieldInfo;
                OmitTF = fieldInfo.FieldIndexOptions == FieldInfo.IndexOptions.DOCS_ONLY;
                StorePayloads = fieldInfo.HasPayloads();
            }