public static enum IndexDirectoryFactory.Name extends Enum<IndexDirectoryFactory.Name>
Enum Constant and Description |
---|
CHANGE_HISTORY
Change history documents don't have their own versions - they share versions with the issue they refer to
|
COMMENT |
ISSUE |
WORKLOG |
Modifier and Type | Method and Description |
---|---|
static IndexDirectoryFactory.Name |
from(AffectedIndex affectedIndex) |
static Optional<IndexDirectoryFactory.Name> |
fromSafe(AffectedIndex affectedIndex) |
String |
getEntityIdFieldName() |
Optional<String> |
getEntityIdFromDocument(org.apache.lucene.document.Document document) |
String |
getEntityIdFromDocumentOrThrow(org.apache.lucene.document.Document document) |
String |
getEntityVersionFieldName() |
Optional<Long> |
getEntityVersionFromDocument(org.apache.lucene.document.Document document) |
Long |
getEntityVersionFromDocumentOrThrow(org.apache.lucene.document.Document document) |
Optional<String> |
getParentEntityIdFieldName() |
Optional<String> |
getParentEntityIdFromDocument(org.apache.lucene.document.Document document) |
AffectedIndex |
toAffectedIndex() |
static IndexDirectoryFactory.Name |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndexDirectoryFactory.Name[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexDirectoryFactory.Name COMMENT
public static final IndexDirectoryFactory.Name ISSUE
public static final IndexDirectoryFactory.Name CHANGE_HISTORY
public static final IndexDirectoryFactory.Name WORKLOG
public static IndexDirectoryFactory.Name[] values()
for (IndexDirectoryFactory.Name c : IndexDirectoryFactory.Name.values()) System.out.println(c);
public static IndexDirectoryFactory.Name valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getEntityIdFieldName()
public String getEntityVersionFieldName()
public Optional<String> getEntityIdFromDocument(org.apache.lucene.document.Document document)
public String getEntityIdFromDocumentOrThrow(org.apache.lucene.document.Document document)
public Optional<Long> getEntityVersionFromDocument(org.apache.lucene.document.Document document)
public Long getEntityVersionFromDocumentOrThrow(org.apache.lucene.document.Document document)
public Optional<String> getParentEntityIdFromDocument(org.apache.lucene.document.Document document)
public AffectedIndex toAffectedIndex()
public static IndexDirectoryFactory.Name from(AffectedIndex affectedIndex)
public static Optional<IndexDirectoryFactory.Name> fromSafe(AffectedIndex affectedIndex)
Copyright © 2002-2024 Atlassian. All Rights Reserved.