com.bigdata.btree.proc
Interface IKeyArrayIndexProcedure

All Superinterfaces:
IIndexProcedure, Serializable
All Known Implementing Classes:
AbstractKeyArrayIndexProcedure, BatchContains, BatchInsert, BatchLookup, BatchRemove, Id2TermWriteProc, JustIndexWriteProc, MagicIndexWriteProc, SPOIndexWriteProc, Term2IdWriteProc, TextIndexWriteProc

public interface IKeyArrayIndexProcedure
extends IIndexProcedure

Interface for procedures that are mapped across one or more index partitions based on an array of keys. The keys are interpreted as variable length unsigned byte[]s and MUST be in sorted order. The ClientIndexView will transparently break down the procedure into one procedure per index partition based on the index partitions spanned by the keys.

Note: Implementations of this interface MUST declare an AbstractKeyArrayIndexProcedureConstructor that will be used to create the instances of the procedure mapped onto the index partitions.

Version:
$Id: IKeyArrayIndexProcedure.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 byte[] getKey(int i)
          Deprecated. by getKeys()
 int getKeyCount()
          Deprecated. by getKeys()
 IRaba getKeys()
          The keys.
 byte[] getValue(int i)
          Deprecated. by getValues()
 IRaba getValues()
          The values.
 
Methods inherited from interface com.bigdata.btree.proc.IIndexProcedure
apply, isReadOnly
 

Method Detail

getKeyCount

int getKeyCount()
Deprecated. by getKeys()

The #of keys/tuples


getKey

byte[] getKey(int i)
Deprecated. by getKeys()

Return the key at the given index.

Parameters:
i - The index (origin zero).
Returns:
The key at that index.

getValue

byte[] getValue(int i)
Deprecated. by getValues()

Return the value at the given index.

Parameters:
i - The index (origin zero).
Returns:
The value at that index.

getKeys

IRaba getKeys()
The keys.

Returns:
The keys and never null.

getValues

IRaba getValues()
The values.

Returns:
The values -or- null if no values were associated with the IIndexProcedure.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.