org.apache.hadoop.hbase.regionserver.compactions
Interface StripeCompactionPolicy.StripeInformationProvider

All Known Implementing Classes:
StripeStoreFileManager
Enclosing class:
StripeCompactionPolicy

public static interface StripeCompactionPolicy.StripeInformationProvider

The information about stripes that the policy needs to do its stuff


Method Summary
 byte[] getEndRow(int stripeIndex)
          Gets the end row for a given stripe.
 List<StoreFile> getLevel0Files()
           
 byte[] getStartRow(int stripeIndex)
          Gets the start row for a given stripe.
 Collection<StoreFile> getStorefiles()
           
 List<byte[]> getStripeBoundaries()
           
 int getStripeCount()
           
 ArrayList<com.google.common.collect.ImmutableList<StoreFile>> getStripes()
           
 

Method Detail

getStorefiles

Collection<StoreFile> getStorefiles()

getStartRow

byte[] getStartRow(int stripeIndex)
Gets the start row for a given stripe.

Parameters:
stripeIndex - Stripe index.
Returns:
Start row. May be an open key.

getEndRow

byte[] getEndRow(int stripeIndex)
Gets the end row for a given stripe.

Parameters:
stripeIndex - Stripe index.
Returns:
End row. May be an open key.

getLevel0Files

List<StoreFile> getLevel0Files()
Returns:
Level 0 files.

getStripeBoundaries

List<byte[]> getStripeBoundaries()
Returns:
All stripe boundaries; including the open ones on both ends.

getStripes

ArrayList<com.google.common.collect.ImmutableList<StoreFile>> getStripes()
Returns:
The stripes.

getStripeCount

int getStripeCount()
Returns:
Stripe count.


Copyright © 2015 The Apache Software Foundation. All rights reserved.