Class CategoryPath
Holds a sequence of string components, specifying the hierarchical name of a category.
@lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.Facet.dll
Syntax
public class CategoryPath : IComparable<CategoryPath>
Constructors
Name | Description |
---|---|
CategoryPath(String, Char) | Construct from a given path, separating path components with |
CategoryPath(String[]) | Construct from the given path |
Fields
Name | Description |
---|---|
EMPTY | An empty CategoryPath |
Properties
Name | Description |
---|---|
Components | The components of this CategoryPath. Note that this array may be shared with other CategoryPath instances, e.g. as a result of Subpath(Int32), therefore you should traverse the array up to Length for this path's components. |
Length | The number of components of this CategoryPath. |
Methods
Name | Description |
---|---|
CompareTo(CategoryPath) | Compares this path with another CategoryPath for lexicographic order. |
CopyFullPath(Char[], Int32, Char) | Copies the path components to the given char[], starting at index
NOTE: this method relies on the array being large enough to hold the components and separators - the amount of needed space can be calculated with FullPathLength(). |
Equals(Object) | |
FullPathLength() | Returns the number of characters needed to represent the path, including delimiter characters, for using with CopyFullPath(Char[], Int32, Char). |
GetHashCode() | |
Int64HashCode() | Calculate a 64-bit hash function for this path. NOTE: This was longHashCode() in Lucene |
Subpath(Int32) | Returns a sub-path of this path up to |
ToString() | Returns a string representation of the path, separating components with '/'. |
ToString(Char) | Returns a string representation of the path, separating components with the given delimiter. |