Show / Hide Table of Contents

    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 Source

    RevisionFile(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 Source

    FileName

    Gets the name of the file.

    Declaration
    public string FileName { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    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 Source

    Equals(RevisionFile)

    Declaration
    public virtual bool Equals(RevisionFile other)
    Parameters
    Type Name Description
    RevisionFile other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)