krati.store.index
Interface Index

All Superinterfaces:
Iterable<Map.Entry<byte[],byte[]>>
All Known Implementing Classes:
HashIndex

public interface Index
extends Iterable<Map.Entry<byte[],byte[]>>

Index.

Author:
jwu

Method Summary
 void clear()
           
 Iterator<Map.Entry<byte[],byte[]>> iterator()
           
 Iterator<byte[]> keyIterator()
           
 byte[] lookup(byte[] keyBytes)
           
 void persist()
           
 void sync()
           
 void update(byte[] keyBytes, byte[] metaBytes)
           
 

Method Detail

lookup

byte[] lookup(byte[] keyBytes)

update

void update(byte[] keyBytes,
            byte[] metaBytes)
            throws Exception
Throws:
Exception

keyIterator

Iterator<byte[]> keyIterator()

iterator

Iterator<Map.Entry<byte[],byte[]>> iterator()
Specified by:
iterator in interface Iterable<Map.Entry<byte[],byte[]>>

persist

void persist()
             throws IOException
Throws:
IOException

sync

void sync()
          throws IOException
Throws:
IOException

clear

void clear()
           throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.