org.gcube.indexmanagement.featureindexlibrary.commons
Class HeapElement

java.lang.Object
  extended by org.gcube.indexmanagement.featureindexlibrary.commons.HeapElement

public class HeapElement
extends Object

Element used to store records in heap

Author:
UoA

Constructor Summary
HeapElement(long recNum, float lBound)
          Creates a new instance
 
Method Summary
 float getLBound()
          Retrieves the lower bound
 long getRecNum()
          Retrieves the record number
 void setLBound(float bound)
          Sets the lower bound
 void setRecNum(long recNum)
          Sets the record number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeapElement

public HeapElement(long recNum,
                   float lBound)
Creates a new instance

Parameters:
recNum - The record number
lBound - The lower bound
Method Detail

getLBound

public float getLBound()
Retrieves the lower bound

Returns:
The lower bound

setLBound

public void setLBound(float bound)
Sets the lower bound

Parameters:
bound - The lower bound

getRecNum

public long getRecNum()
Retrieves the record number

Returns:
The record number

setRecNum

public void setRecNum(long recNum)
Sets the record number

Parameters:
recNum - The record number


Copyright © 2012. All Rights Reserved.