|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.browse.BrowseIndex
public final class BrowseIndex
This class holds all the information about a specifically configured BrowseIndex. It is responsible for parsing the configuration, understanding about what sort options are available, and what the names of the database tables that hold all the information are actually called.
| Method Summary | |
|---|---|
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? |
static String[] |
tables()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 table
public static String getSequenceName(int number,
boolean isDistinct,
boolean isMap)
number - the index configuration numberisDistinct - is a distinct tableisMap - is a map table
public 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 table
public 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 table
public 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
BrowseException
public static String[] tables()
throws BrowseException
BrowseException
public static BrowseIndex[] getBrowseIndices()
throws BrowseException
BrowseException
public static BrowseIndex getBrowseIndex(String name)
throws BrowseException
name - the name to retrieve
BrowseException
public 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 elements
IOExceptionpublic boolean isInternalIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||