Class ColumnVisibility.NodeComparator
java.lang.Object
org.apache.accumulo.core.security.ColumnVisibility.NodeComparator
- All Implemented Interfaces:
Serializable
,Comparator<ColumnVisibility.Node>
- Enclosing class:
- ColumnVisibility
public static class ColumnVisibility.NodeComparator
extends Object
implements Comparator<ColumnVisibility.Node>, Serializable
A node comparator. Nodes sort according to node type, terms sort lexicographically. AND and OR
nodes sort by number of children, or if the same by corresponding children.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
NodeComparator
public NodeComparator(byte[] text) Creates a new comparator.- Parameters:
text
- expression string, encoded in UTF-8
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<ColumnVisibility.Node>
-