Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Public Member Functions | Protected Member Functions | Properties | List of all members
Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexOutput Class Reference

Inherits Lucene.Net.Store.BufferedIndexOutput.

Public Member Functions

 SimpleFSIndexOutput (System.IO.FileInfo path)
 
override void FlushBuffer (byte[] b, int offset, int size)
 output methods:
 
override void Seek (long pos)
 Random-access methods
 
override void SetLength (long length)
 Set the file length. By default, this method does nothing (it's optional for a Directory to implement it). But, certain Directory implementations (for
 
- Public Member Functions inherited from Lucene.Net.Store.BufferedIndexOutput
override void WriteByte (byte b)
 Writes a single byte.
 
override void WriteBytes (byte[] b, int offset, int length)
 Writes an array of bytes.
 
override void Flush ()
 Forces any buffered output to be written.
 
- Public Member Functions inherited from Lucene.Net.Store.IndexOutput
virtual void WriteBytes (byte[] b, int length)
 Writes an array of bytes.
 
virtual void WriteInt (int i)
 Writes an int as four bytes.
 
virtual void WriteVInt (int i)
 Writes an int in a variable-length format. Writes between one and five bytes. Smaller values take fewer bytes. Negative numbers are not supported.
 
virtual void WriteLong (long i)
 Writes a long as eight bytes.
 
virtual void WriteVLong (long i)
 Writes an long in a variable-length format. Writes between one and five bytes. Smaller values take fewer bytes. Negative numbers are not supported.
 
virtual void WriteString (System.String s)
 Writes a string.
 
virtual void WriteChars (System.String s, int start, int length)
 Writes a sub sequence of characters from s as the old format (modified UTF-8 encoded bytes).
 
virtual void WriteChars (char[] s, int start, int length)
 Writes a sub sequence of characters from char[] as the old format (modified UTF-8 encoded bytes).
 
virtual void CopyBytes (IndexInput input, long numBytes)
 Copy numBytes bytes from input to ourself.
 
void Close ()
 Closes this stream to further operations.
 
void Dispose ()
 Closes this stream to further operations.
 
virtual void WriteStringStringMap (System.Collections.Generic.IDictionary< string, string > map)
 

Protected Member Functions

override void Dispose (bool disposing)
 Closes this stream to further operations.
 

Properties

override long Length [get]
 
- Properties inherited from Lucene.Net.Store.BufferedIndexOutput
override long FilePointer [get]
 Returns the current position in this file, where the next write will occur.
 
abstract override long Length [get]
 The number of bytes in the file.
 
- Properties inherited from Lucene.Net.Store.IndexOutput
abstract long FilePointer [get]
 Returns the current position in this file, where the next write will occur.
 
abstract long Length [get]
 The number of bytes in the file.
 

Detailed Description

Definition at line 239 of file SimpleFSDirectory.cs.

Constructor & Destructor Documentation

Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexOutput.SimpleFSIndexOutput ( System.IO.FileInfo  path)

Definition at line 247 of file SimpleFSDirectory.cs.

Member Function Documentation

override void Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexOutput.Dispose ( bool  disposing)
protectedvirtual

Closes this stream to further operations.

Reimplemented from Lucene.Net.Store.BufferedIndexOutput.

Definition at line 270 of file SimpleFSDirectory.cs.

override void Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexOutput.FlushBuffer ( byte[]  b,
int  offset,
int  size 
)
virtual

output methods:

Implements Lucene.Net.Store.BufferedIndexOutput.

Definition at line 254 of file SimpleFSDirectory.cs.

override void Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexOutput.Seek ( long  pos)
virtual

Random-access methods

Reimplemented from Lucene.Net.Store.BufferedIndexOutput.

Definition at line 302 of file SimpleFSDirectory.cs.

override void Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexOutput.SetLength ( long  length)
virtual

Set the file length. By default, this method does nothing (it's optional for a Directory to implement it). But, certain Directory implementations (for

See Also
FSDirectory

can use this to inform the underlying IO system to pre-allocate the file to the specified size. If the length is longer than the current file length, the bytes added to the file are undefined. Otherwise the file is truncated.

Parameters
lengthfile length

Reimplemented from Lucene.Net.Store.IndexOutput.

Definition at line 313 of file SimpleFSDirectory.cs.

Property Documentation

override long Lucene.Net.Store.SimpleFSDirectory.SimpleFSIndexOutput.Length
get

Definition at line 309 of file SimpleFSDirectory.cs.


The documentation for this class was generated from the following file: