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
Implements
System.IEquatable<RevisionFile>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Replicator
Assembly: Lucene.Net.Replicator.dll
Syntax
public class RevisionFile : IEquatable<RevisionFile>
Remarks
Note
This API is experimental and might change in incompatible ways in the next release.
This API is experimental and might change in incompatible ways in the next release.
Constructors
| Improve this Doc View SourceRevisionFile(String, Int64)
Constructor with the given file name and optionally length.
Declaration
public RevisionFile(string fileName, long length = -1L)
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 |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()
Implements
System.IEquatable<T>