krati.core.segment
Class WriteBufferSegmentFactory

java.lang.Object
  extended by krati.core.segment.WriteBufferSegmentFactory
All Implemented Interfaces:
SegmentFactory

public class WriteBufferSegmentFactory
extends Object
implements SegmentFactory

WriteBufferSegmentFactory

Author:
jwu

Constructor Summary
WriteBufferSegmentFactory(int segmentFileSizeMB)
           
 
Method Summary
 Segment createSegment(int segmentId, File segmentFile, int initialSizeMB, Segment.Mode mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteBufferSegmentFactory

public WriteBufferSegmentFactory(int segmentFileSizeMB)
Method Detail

createSegment

public Segment createSegment(int segmentId,
                             File segmentFile,
                             int initialSizeMB,
                             Segment.Mode mode)
                      throws IOException
Specified by:
createSegment in interface SegmentFactory
Throws:
IOException


Copyright © 2011. All Rights Reserved.