Class GuessTypesOfColumnCommand


  • public class GuessTypesOfColumnCommand
    extends Command
    • Constructor Detail

      • GuessTypesOfColumnCommand

        public GuessTypesOfColumnCommand()
    • Method Detail

      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws javax.servlet.ServletException,
                           IOException
        Overrides:
        doPost in class Command
        Throws:
        javax.servlet.ServletException
        IOException
      • guessTypes

        protected List<GuessTypesOfColumnCommand.TypeGroup> guessTypes​(Grid grid,
                                                                       int cellIndex,
                                                                       String serviceUrl)
                                                                throws IOException
        Run relevance searches for the first n cells in the given column and count the types of the results. Return a sorted list of types, from most frequent to least.
        Parameters:
        grid -
        cellIndex -
        Returns:
        Throws:
        IOException
      • setSampleSize

        protected void setSampleSize​(int sampleSize)