box.system.cache.store.indexers.concurrent.Callable interface">
|
ColdBox Platform - WireBox Version 1.2.0 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
wirebox.system.cache.store.indexers.MetadataIndexer
public class MetadataIndexer
This is a utility object that helps object stores keep their items indexed and pretty
| Constructor Summary | |
|---|---|
init(any fields)
Constructor |
|
| Method Summary | |
|---|---|
void |
clear(any objectKey)
Clear a metadata key |
void |
clearAll()
Clear the entire metadata map |
any |
getFields()
Get the bounded fields list |
any<array> |
getKeys()
Returns an array of the keys stored in the index |
any |
getObjectMetadata(any objectKey)
Get a metadata entry for a specific entry |
any |
getObjectMetadataProperty(any objectKey, any property)
Get a specific metadata property for a specific entry |
any |
getPoolMetadata()
Get the entire pool reference |
any |
getSize()
Get the size of the indexer |
any |
getSortedKeys(any property, [any sortType='text'], [any sortOrder='asc'])
Get an array of sorted keys for this indexer according to parameters |
any |
objectExists(any objectKey)
Check if the metadata entry exists for an object |
void |
setFields(any fields)
Override the constructed metadata fields this index is binded to |
void |
setObjectMetadata(any objectKey, any metadata)
Set the metadata entry for a specific entry |
void |
setObjectMetadataProperty(any objectKey, any property, any value)
Set a metadata property for a specific entry |
private void |
validateField(any target)
Validate or thrown an exception on an invalid field |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(any fields)
fields - The list or array of fields to bind this index on| Method Detail |
|---|
public void clear(any objectKey)
objectKey - The key of the objectpublic void clearAll()
public any getFields()
public any<array> getKeys()
public any getObjectMetadata(any objectKey)
objectKey - The key of the objectpublic any getObjectMetadataProperty(any objectKey, any property)
objectKey - The key of the objectproperty - The property of the metadata to retrieve, must exist in the binded fields or exception is thrownpublic any getPoolMetadata()
public any getSize()
public any getSortedKeys(any property, [any sortType='text'], [any sortOrder='asc'])
property - The property field to sort the index on. It must exist in the binded fields or exceptionsortType - The sort ordering: numeric, text or textnocasesortOrder - The sort order: asc or descpublic any objectExists(any objectKey)
objectKey - The key of the objectpublic void setFields(any fields)
fields - The list or array of fields to bind this index onpublic void setObjectMetadata(any objectKey, any metadata)
objectKey - The key of the objectmetadata - The metadata structure to store for the cache entrypublic void setObjectMetadataProperty(any objectKey, any property, any value)
objectKey - The key of the objectproperty - The property of the metadata to retrievevalue - The value of the propertyprivate void validateField(any target)
target - The target field to validate
|
ColdBox Platform - WireBox Version 1.2.0 | ||||
| FRAMES | |||||