public class Sort
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
ascending |
static boolean |
DEFAULT_ASCENDING |
static boolean |
DEFAULT_HAS_INVALID_VALUE |
static int |
DEFAULT_L_S_B |
static int |
DEFAULT_M_S_B |
static boolean |
DEFAULT_SECONDARY_SORT_KEY |
boolean |
hasInvalidValue |
java.lang.String |
indexField |
long |
invalidValue |
int |
LSB |
int |
MSB |
boolean |
secondarySortKey |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Sort.
|
static Sort |
fromString(java.lang.String s)
String representation of this Sort.
|
java.lang.String |
getIndexField()
Index field on which we want to sort.
You can only sort on an unsigned index field. |
long |
getInvalidValue()
If hasInvalidValue is true, what is the invalid value?
|
int |
getLSB()
Least Significant Bit of the key inside the field.
|
int |
getMSB()
Most Significant Bit of the key inside the field.
|
boolean |
isAscending()
Inverse the total order relation.
|
boolean |
isHasInvalidValue()
Should one of the keys be considered as excluded from the set and
always put at the end |
boolean |
isSecondarySortKey()
Allows disambiguating documents having the same score, on a configurable key.
|
Sort |
makeCopy()
Creates and returns a deep copy of this Sort.
|
static Sort |
readFrom(java.io.InputStream is)
Read this Sort from an XML fragment.
|
void |
setAscending(boolean ascending)
Inverse the total order relation.
|
void |
setHasInvalidValue(boolean hasInvalidValue)
Should one of the keys be considered as excluded from the set and
always put at the end |
void |
setIndexField(java.lang.String indexField)
Index field on which we want to sort.
You can only sort on an unsigned index field. |
void |
setInvalidValue(long invalidValue)
If hasInvalidValue is true, what is the invalid value?
|
void |
setLSB(int LSB)
Least Significant Bit of the key inside the field.
|
void |
setMSB(int MSB)
Most Significant Bit of the key inside the field.
|
void |
setSecondarySortKey(boolean secondarySortKey)
Allows disambiguating documents having the same score, on a configurable key.
|
java.lang.String |
toString()
String representation of this Sort.
|
Sort |
withAscending(boolean ascending) |
Sort |
withAscending(java.lang.Boolean ascending) |
Sort |
withHasInvalidValue(boolean hasInvalidValue) |
Sort |
withHasInvalidValue(java.lang.Boolean hasInvalidValue) |
Sort |
withIndexField(java.lang.String indexField) |
Sort |
withInvalidValue(long invalidValue) |
Sort |
withInvalidValue(java.lang.Long invalidValue) |
Sort |
withLSB(int LSB) |
Sort |
withLSB(java.lang.Integer LSB) |
Sort |
withMSB(int MSB) |
Sort |
withMSB(java.lang.Integer MSB) |
Sort |
withSecondarySortKey(boolean secondarySortKey) |
Sort |
withSecondarySortKey(java.lang.Boolean secondarySortKey) |
void |
writeTo(java.io.OutputStream os)
Write this Sort as an XML fragment
|
public boolean secondarySortKey
public static final boolean DEFAULT_SECONDARY_SORT_KEY
public java.lang.String indexField
public boolean ascending
public static final boolean DEFAULT_ASCENDING
public int LSB
public static final int DEFAULT_L_S_B
public int MSB
public static final int DEFAULT_M_S_B
public boolean hasInvalidValue
public static final boolean DEFAULT_HAS_INVALID_VALUE
public long invalidValue
public Sort()
public Sort(Sort o)
public void setSecondarySortKey(boolean secondarySortKey)
public boolean isSecondarySortKey()
public Sort withSecondarySortKey(boolean secondarySortKey)
public Sort withSecondarySortKey(java.lang.Boolean secondarySortKey)
public void setIndexField(java.lang.String indexField)
public java.lang.String getIndexField()
public Sort withIndexField(java.lang.String indexField)
public void setAscending(boolean ascending)
public boolean isAscending()
public Sort withAscending(boolean ascending)
public Sort withAscending(java.lang.Boolean ascending)
public void setLSB(int LSB)
public int getLSB()
public Sort withLSB(int LSB)
public Sort withLSB(java.lang.Integer LSB)
public void setMSB(int MSB)
public int getMSB()
public Sort withMSB(int MSB)
public Sort withMSB(java.lang.Integer MSB)
public void setHasInvalidValue(boolean hasInvalidValue)
public boolean isHasInvalidValue()
public Sort withHasInvalidValue(boolean hasInvalidValue)
public Sort withHasInvalidValue(java.lang.Boolean hasInvalidValue)
public void setInvalidValue(long invalidValue)
public long getInvalidValue()
public Sort withInvalidValue(long invalidValue)
public Sort withInvalidValue(java.lang.Long invalidValue)
public Sort makeCopy()
public static Sort readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static Sort fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.