/// <summary>
            /// Copy compressed data.
            /// </summary>
            internal void CopyCompressedData(DataOutput @out)
            {
                Debug.Assert(OuterInstance.Version == CompressingStoredFieldsWriter.VERSION_CURRENT);
                long chunkEnd = DocBase + ChunkDocs == OuterInstance.NumDocs ? OuterInstance.MaxPointer : OuterInstance.IndexReader.GetStartPointer(DocBase + ChunkDocs);

                @out.CopyBytes(FieldsStream, chunkEnd - FieldsStream.FilePointer);
            }
Esempio n. 2
0
            /// <summary>
            /// Copy compressed data.
            /// </summary>
            internal void CopyCompressedData(DataOutput @out)
            {
                Debug.Assert(outerInstance.Version == CompressingStoredFieldsWriter.VERSION_CURRENT);
                long chunkEnd = docBase + chunkDocs == outerInstance.numDocs ? outerInstance.maxPointer : outerInstance.indexReader.GetStartPointer(docBase + chunkDocs);

                @out.CopyBytes(fieldsStream, chunkEnd - fieldsStream.GetFilePointer());
            }
Esempio n. 3
0
            /// <summary>
            /// Copy compressed data.
            /// </summary>
            internal void CopyCompressedData(DataOutput @out)
            {
                if (Debugging.AssertsEnabled)
                {
                    Debugging.Assert(outerInstance.Version == CompressingStoredFieldsWriter.VERSION_CURRENT);
                }
                long chunkEnd = docBase + chunkDocs == outerInstance.numDocs ? outerInstance.maxPointer : outerInstance.indexReader.GetStartPointer(docBase + chunkDocs);

                @out.CopyBytes(fieldsStream, chunkEnd - fieldsStream.Position); // LUCENENET specific: Renamed from getFilePointer() to match FileStream
            }
 /// <summary>
 /// Copy compressed data.
 /// </summary>
 internal void CopyCompressedData(DataOutput @out)
 {
     Debug.Assert(OuterInstance.Version == CompressingStoredFieldsWriter.VERSION_CURRENT);
     long chunkEnd = DocBase + ChunkDocs == OuterInstance.NumDocs ? OuterInstance.MaxPointer : OuterInstance.IndexReader.GetStartPointer(DocBase + ChunkDocs);
     @out.CopyBytes(FieldsStream, chunkEnd - FieldsStream.FilePointer);
 }