public final class BrowseIndex extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
generateMdBits()
Populate the internal array containing the bits of metadata, for
ease of use later
|
static BrowseIndex |
getBrowseIndex(SortOption so)
Get the configured browse index that is defined to use this sort option.
|
static BrowseIndex |
getBrowseIndex(String name)
Get the browse index from configuration with the specified name.
|
static BrowseIndex[] |
getBrowseIndices()
Get an array of all the browse indices for the current configuration
|
String |
getDataType() |
String |
getDefaultOrder() |
String |
getDisplayType() |
String |
getDistinctTableName()
Get the default name of the distinct table.
|
String |
getIndexColumn()
Get the name of the primary key index column
|
static BrowseIndex |
getItemBrowseIndex()
Get the internally defined browse index for archived items.
|
String |
getMapTableName()
Get the default name of the distinct map table.
|
String[] |
getMdBits(int idx) |
String |
getMetadata() |
String |
getMetadata(int idx) |
int |
getMetadataCount() |
String |
getName() |
static BrowseIndex |
getPrivateBrowseIndex() |
String |
getSequenceName(boolean isDistinct,
boolean isMap)
Get the name of the sequence that will be used in the given circumstances
|
static String |
getSequenceName(int number,
boolean isDistinct,
boolean isMap)
Get the name of the sequence that will be used in the given circumstances
|
String |
getSortField(boolean isSecondLevel)
Get the field for sorting associated with this index.
|
SortOption |
getSortOption()
Get the SortOption associated with this index.
|
String |
getTableName()
Get the default index table name.
|
String |
getTableName(boolean isCommunity,
boolean isCollection)
Deprecated.
1.5
|
String |
getTableName(boolean isDistinct,
boolean isCommunity,
boolean isCollection)
Deprecated.
1.5
|
String |
getTableName(boolean isCommunity,
boolean isCollection,
boolean isDistinct,
boolean isMap)
Deprecated.
1.5
|
static String |
getTableName(int number,
boolean isCommunity,
boolean isCollection,
boolean isDistinct,
boolean isMap)
Deprecated.
1.5
|
String |
getValueColumn()
Get the name of the column that is used to store the default value column
|
static BrowseIndex |
getWithdrawnBrowseIndex()
Get the internally defined browse index for withdrawn items.
|
String[] |
interpretField(String mfield,
String init)
Take a string representation of a metadata field, and return it as an array.
|
boolean |
isAuthorityIndex()
Is the browse index authority value?
|
boolean |
isDate()
Is the browse index type for a date?
|
boolean |
isDisplayFrequencies() |
boolean |
isInternalIndex()
Does this browse index represent one of the internal item indexes?
|
boolean |
isItemIndex()
Is the browse index of display type full?
|
boolean |
isMetadataIndex()
Is the browse index of display type single?
|
boolean |
isTagCloudEnabled() |
static String[] |
tables()
Deprecated.
|
public String getDefaultOrder()
public String getDataType()
public String getDisplayType()
public int getMetadataCount()
public String[] getMdBits(int idx)
public String getMetadata()
public String getMetadata(int idx)
public String getName()
public SortOption getSortOption()
public boolean isDisplayFrequencies()
public void generateMdBits()
public String getSequenceName(boolean isDistinct, boolean isMap)
isDistinct - is a distinct tableisMap - is a map tablepublic static String getSequenceName(int number, boolean isDistinct, boolean isMap)
number - the index configuration numberisDistinct - is a distinct tableisMap - is a map tablepublic static String getTableName(int number, boolean isCommunity, boolean isCollection, boolean isDistinct, boolean isMap)
number - the index configuration numberisCommunity - whether this is a community constrained index (view)isCollection - whether this is a collection constrained index (view)isDistinct - whether this is a distinct tableisMap - whether this is a distinct map tablepublic String getTableName(boolean isCommunity, boolean isCollection, boolean isDistinct, boolean isMap)
isCommunity - whether this is a community constrained index (view)isCollection - whether this is a collection constrained index (view)isDistinct - whether this is a distinct tableisMap - whether this is a distinct map tablepublic String getTableName(boolean isCommunity, boolean isCollection)
getTableName(isCommunity, isCollection, false, false);
isCommunity - whether this is a community constrained index (view)isCollection - whether this is a collection constrained index (view)public String getTableName()
getTableName(false, false, false, false);
public String getTableName(boolean isDistinct, boolean isCommunity, boolean isCollection)
getTableName(isCommunity, isCollection, isDistinct, false);
isDistinct - is this a distinct tableisCommunity - isCollection - public String getMapTableName()
getTableName(false, false, false, true);
public String getDistinctTableName()
getTableName(false, false, true, false);
public String getValueColumn()
public String getIndexColumn()
public boolean isDate()
public boolean isMetadataIndex()
public boolean isAuthorityIndex()
public boolean isItemIndex()
public String getSortField(boolean isSecondLevel) throws BrowseException
BrowseExceptionpublic static String[] tables() throws BrowseException
BrowseExceptionpublic static BrowseIndex[] getBrowseIndices() throws BrowseException
BrowseExceptionpublic static BrowseIndex getBrowseIndex(String name) throws BrowseException
name - the name to retrieveBrowseExceptionpublic static BrowseIndex getBrowseIndex(SortOption so) throws BrowseException
so - BrowseExceptionpublic static BrowseIndex getItemBrowseIndex()
public static BrowseIndex getWithdrawnBrowseIndex()
public static BrowseIndex getPrivateBrowseIndex()
public String[] interpretField(String mfield, String init) throws IOException
mfield - the string representation of the metadatainit - the default value of the array elementsIOExceptionpublic boolean isInternalIndex()
public boolean isTagCloudEnabled()
Copyright © 2014 DuraSpace. All Rights Reserved.