Class RevisionFile
Describes a file in a IRevision. A file has a source, which allows a single revision to contain files from multiple sources (e.g. multiple indexes).
Inheritance
System.Object
RevisionFile
Namespace: Lucene.Net.Replicator
Assembly: Lucene.Net.Replicator.dll
Syntax
public class RevisionFile : IEquatable<RevisionFile>
Remarks
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Constructors
| Improve this Doc View SourceRevisionFile(String, Int64)
Constructor with the given file name and optionally length.
Declaration
public RevisionFile(string fileName, long length = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | The name of the file |
System.Int64 | length | Optional, the length of the file. |
Properties
| Improve this Doc View SourceFileName
Gets the name of the file.
Declaration
public string FileName { get; }
Property Value
Type | Description |
---|---|
System.String |
Length
Gets or sets the length of the file denoted by FileName.
Declaration
public long Length { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
| Improve this Doc View SourceEquals(RevisionFile)
Declaration
public virtual bool Equals(RevisionFile other)
Parameters
Type | Name | Description |
---|---|---|
RevisionFile | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |