Class AllIndexesSelector

  • All Implemented Interfaces:
    FieldSelector, java.lang.Cloneable

    public class AllIndexesSelector
    extends java.lang.Object
    implements FieldSelector
    A FieldSelector that selects all indexes of a record.
    See Also:
    FieldSelector
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()
      Clones this field selector.
      java.lang.String describe()
      Returns a string that represents the current field selection
      int[] getFieldIndexes​(NormalizedString[] headers)
      Returns the indexes of any selected fields that are part of a sequence of headers.
      int[] getFieldIndexes​(java.lang.String[] headers)
      Returns the indexes of any selected fields that are part of a sequence of headers.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AllIndexesSelector

        public AllIndexesSelector()
    • Method Detail

      • getFieldIndexes

        public int[] getFieldIndexes​(NormalizedString[] headers)
        Description copied from interface: FieldSelector
        Returns the indexes of any selected fields that are part of a sequence of headers.
        Specified by:
        getFieldIndexes in interface FieldSelector
        Parameters:
        headers - the sequence of headers that might have some elements selected by this FieldSelector
        Returns:
        the positions of all selected elements in the given headers sequence.
      • describe

        public java.lang.String describe()
        Description copied from interface: FieldSelector
        Returns a string that represents the current field selection
        Specified by:
        describe in interface FieldSelector
        Returns:
        a string that represents the current field selection
      • clone

        public java.lang.Object clone()
        Description copied from interface: FieldSelector
        Clones this field selector. Changes to the selection on the clone won't be reflected on the original
        Specified by:
        clone in interface FieldSelector
        Overrides:
        clone in class java.lang.Object
        Returns:
        a copy of the current field selector.
      • getFieldIndexes

        public int[] getFieldIndexes​(java.lang.String[] headers)
        Description copied from interface: FieldSelector
        Returns the indexes of any selected fields that are part of a sequence of headers.
        Specified by:
        getFieldIndexes in interface FieldSelector
        Parameters:
        headers - the sequence of headers that might have some elements selected by this FieldSelector
        Returns:
        the positions of all selected elements in the given headers sequence.