org.apache.hadoop.hbase.security.visibility
Interface VisibilityLabelOrdinalProvider

All Known Implementing Classes:
VisibilityLabelsCache

@InterfaceAudience.Private
public interface VisibilityLabelOrdinalProvider


Method Summary
 String getLabel(int ordinal)
          Returns the string associated with the ordinal.
 int getLabelOrdinal(String label)
           
 

Method Detail

getLabelOrdinal

int getLabelOrdinal(String label)
Parameters:
label - Not null label string
Returns:
The ordinal for the label. The ordinal starts from 1. Returns 0 when passed a non existing label.

getLabel

String getLabel(int ordinal)
Returns the string associated with the ordinal. Not be used in MR.

Parameters:
ordinal - representing the visibility label's ordinal
Returns:
label associated with the string, null if not found


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.