WriteRecordSeparator() 공개 메소드

public WriteRecordSeparator ( ) : void
리턴 void
예제 #1
0
 /// <summary>
 /// Write the textual representation of the record schema to the writer.
 /// </summary>
 /// <remarks>If the header or records have already been written, this call is ignored.</remarks>
 public void WriteSchema()
 {
     if (isSchemaWritten)
     {
         return;
     }
     recordWriter.WriteSchema();
     recordWriter.WriteRecordSeparator();
     ++recordWriter.Metadata.PhysicalRecordNumber;
     isSchemaWritten = true;
 }
예제 #2
0
 /// <summary>
 /// Write the textual representation of the record schema to the writer.
 /// </summary>
 /// <remarks>If the header or records have already been written, this call is ignored.</remarks>
 public void WriteSchema()
 {
     if (isSchemaWritten)
     {
         return;
     }
     recordWriter.WriteSchema();
     recordWriter.WriteRecordSeparator();
     ++recordWriter.Metadata.RecordCount;
     isSchemaWritten = true;
 }
예제 #3
0
 /// <summary>
 /// Writes the textual representation of the given values to the writer.
 /// </summary>
 /// <param name="values">The values to write.</param>
 /// <exception cref="ArgumentNullException">The values array is null.</exception>
 public void Write(object[] values)
 {
     if (values == null)
     {
         throw new ArgumentNullException("values");
     }
     if (isFirstLine)
     {
         if (recordWriter.Options.IsFirstRecordHeader)
         {
             recordWriter.WriteSchema();
             recordWriter.WriteRecordSeparator();
         }
         isFirstLine = false;
     }
     recordWriter.WriteRecord(values);
     recordWriter.WriteRecordSeparator();
 }