public class LinearTypeOrderBuilderImpl extends Object implements LinearTypeOrderBuilder
LinearTypeOrderBuilder interface.| Modifier and Type | Class and Description | 
|---|---|
| static class  | LinearTypeOrderBuilderImpl.TotalTypeOrderAn implementation of the  LinearTypeOrderinterface. | 
| Constructor and Description | 
|---|
| LinearTypeOrderBuilderImpl(TypeSystem ts) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(String[] types)Add pairs types[i] < types[i+1], for each i < (types.length-1), to the partial sort
 order. | 
| static LinearTypeOrder | createTypeOrder(int[] typeList,
               TypeSystem ts)The constructor for the total type order, called by the other constructor and also when doing a
 cas complete deserialization, or just deserializing the type system/index defs | 
| LinearTypeOrder | getOrder()Return a total order of the type names added earlier that is consistent with the pre-order
 defined through calls to add(). | 
public LinearTypeOrderBuilderImpl(TypeSystem ts)
public static LinearTypeOrder createTypeOrder(int[] typeList, TypeSystem ts)
typeList - -ts - -public void add(String[] types) throws CASException
LinearTypeOrderBuilderadd in interface LinearTypeOrderBuildertypes - types to addCASException - When adding pairs would make order inconsistent.public LinearTypeOrder getOrder() throws CASException
LinearTypeOrderBuildergetOrder in interface LinearTypeOrderBuilderCASException - if any errorCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.