com.bigdata.relation.rule
Class BindingSetSortKeyBuilder

java.lang.Object
  extended by com.bigdata.relation.rule.BindingSetSortKeyBuilder
All Implemented Interfaces:
ISortKeyBuilder<IBindingSet>

public class BindingSetSortKeyBuilder
extends Object
implements ISortKeyBuilder<IBindingSet>

Builds unsigned byte[] sort keys from IBindingSets.

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

Constructor Summary
BindingSetSortKeyBuilder(IKeyBuilder keyBuilder, IVariable[] vars)
           
 
Method Summary
 byte[] getSortKey(IBindingSet bindingSet)
          Return an unsigned byte[] sort key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingSetSortKeyBuilder

public BindingSetSortKeyBuilder(IKeyBuilder keyBuilder,
                                IVariable[] vars)
Parameters:
keyBuilder - Used to generate the unsigned byte[] key for each bound variable. In particular, the configuration for the IKeyBuilder governs how Unicode fields are handled.
vars - An array of IVariables, all of which MUST be bound.
Method Detail

getSortKey

public byte[] getSortKey(IBindingSet bindingSet)
Description copied from interface: ISortKeyBuilder
Return an unsigned byte[] sort key.

Specified by:
getSortKey in interface ISortKeyBuilder<IBindingSet>
Parameters:
bindingSet - Some object (required).
Returns:
The unsigned byte[] sort key.


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