gr.uoa.di.madgik.searchlibrary.operatorlibrary.indexfuse
Class FilePosition

java.lang.Object
  extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.indexfuse.FilePosition

public class FilePosition
extends Object

Placeholder used to identify records written in a file

Author:
UoA

Constructor Summary
FilePosition()
          Creates a new FilePosition
FilePosition(long startOffset, long stopOffset)
          Creates a new FilePosition
 
Method Summary
 long getStartOffset()
          Retrieves the starting offset
 long getStopOffset()
          Retrieves the ending offset
 void setStartOffset(long startOffset)
          Sets the starting offset
 void setStopOffset(long stopOffset)
          Sets the ending offset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePosition

public FilePosition()
Creates a new FilePosition


FilePosition

public FilePosition(long startOffset,
                    long stopOffset)
Creates a new FilePosition

Parameters:
startOffset - The starting offset of the record
stopOffset - The ending offset of the record
Method Detail

getStartOffset

public long getStartOffset()
Retrieves the starting offset

Returns:
The starting offset

setStartOffset

public void setStartOffset(long startOffset)
Sets the starting offset

Parameters:
startOffset - The starting offset

getStopOffset

public long getStopOffset()
Retrieves the ending offset

Returns:
The ending offset

setStopOffset

public void setStopOffset(long stopOffset)
Sets the ending offset

Parameters:
stopOffset - The ending offset


Copyright © 2013. All Rights Reserved.