public class LinearTypeOrderBuilderImpl extends Object implements LinearTypeOrderBuilder
LinearTypeOrderBuilder
interface.Modifier and Type | Class and Description |
---|---|
static class |
LinearTypeOrderBuilderImpl.TotalTypeOrder
An implementation of the
LinearTypeOrder
interface. |
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
LinearTypeOrderBuilder
add
in interface LinearTypeOrderBuilder
types
- types to addCASException
- When adding pairs would make order inconsistent.public LinearTypeOrder getOrder() throws CASException
LinearTypeOrderBuilder
getOrder
in interface LinearTypeOrderBuilder
CASException
- if any errorCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.