com.thinkaurelius.titan.graphdb.database.cache

## Interface SchemaCache

- All Known Implementing Classes:
    MetricInstrumentedSchemaCache, StandardSchemaCache

      public interface SchemaCache

  This interface defines the methods that a SchemaCache must implement. A SchemaCache is maintained by the Titan graph database in order to make the frequent lookups of schema vertices and their attributes more efficient through a dedicated caching layer. Schema vertices are type vertices and related vertices. The SchemaCache speeds up two types of lookups:
  - Retrieving a type by its name (index lookup)
  - Retrieving the relations of a schema vertex for predefined `SystemRelationType`s
  Author:
    Matthias Broecheler (me@matthiasb.com)

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static interface` | `SchemaCache.StoreRetrieval`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `expireSchemaElement(long schemaId)`
    `Long` | `getSchemaId(String schemaName, StandardTitanTx tx)`
    `EntryList` | `getSchemaRelations(long schemaId, BaseRelationType type, com.tinkerpop.blueprints.Direction dir, StandardTitanTx tx)`

- - ### Method Detail

    - #### getSchemaId

          Long getSchemaId(String schemaName,
                         StandardTitanTx tx)

    - #### getSchemaRelations

          EntryList getSchemaRelations(long schemaId,
                                     BaseRelationType type,
                                     com.tinkerpop.blueprints.Direction dir,
                                     StandardTitanTx tx)

    - #### expireSchemaElement

          void expireSchemaElement(long schemaId)

Copyright © 2012–2014. All rights reserved.