org.exist.storage.index
Class CollectionStore.DocumentKey

java.lang.Object
  extended by org.exist.storage.btree.Value
      extended by org.exist.storage.index.CollectionStore.DocumentKey
All Implemented Interfaces:
Comparable
Enclosing class:
CollectionStore

public static class CollectionStore.DocumentKey
extends Value


Field Summary
static int LENGTH_DOCUMENT_TYPE
           
static int LENGTH_TYPE
           
static int LENGTH_TYPE_DOCUMENT
           
static int OFFSET_COLLECTION_ID
           
static int OFFSET_DOCUMENT_ID
           
static int OFFSET_DOCUMENT_TYPE
           
static int OFFSET_TYPE
           
 
Fields inherited from class org.exist.storage.btree.Value
EMPTY_VALUE
 
Constructor Summary
CollectionStore.DocumentKey()
           
CollectionStore.DocumentKey(int collectionId)
           
CollectionStore.DocumentKey(int collectionId, byte type, int docId)
           
 
Method Summary
static int getCollectionId(Value key)
           
static int getDocumentId(Value key)
           
 
Methods inherited from class org.exist.storage.btree.Value
checkPrefix, commonPrefix, comparePrefix, comparePrefix, compareTo, compareTo, data, dump, endsWith, equals, equals, getAddress, getData, getLength, getSeparator, hashCode, setAddress, start, startsWith, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OFFSET_TYPE

public static int OFFSET_TYPE

LENGTH_TYPE

public static int LENGTH_TYPE

OFFSET_COLLECTION_ID

public static int OFFSET_COLLECTION_ID

LENGTH_TYPE_DOCUMENT

public static int LENGTH_TYPE_DOCUMENT

OFFSET_DOCUMENT_TYPE

public static int OFFSET_DOCUMENT_TYPE

LENGTH_DOCUMENT_TYPE

public static int LENGTH_DOCUMENT_TYPE

OFFSET_DOCUMENT_ID

public static int OFFSET_DOCUMENT_ID
Constructor Detail

CollectionStore.DocumentKey

public CollectionStore.DocumentKey()

CollectionStore.DocumentKey

public CollectionStore.DocumentKey(int collectionId)

CollectionStore.DocumentKey

public CollectionStore.DocumentKey(int collectionId,
                                   byte type,
                                   int docId)
Method Detail

getCollectionId

public static int getCollectionId(Value key)

getDocumentId

public static int getDocumentId(Value key)


Copyright (C) Wolfgang Meier. All rights reserved.