Package com.google.refine.commands.recon
Class GuessTypesOfColumnCommand
java.lang.Object
com.google.refine.commands.Command
com.google.refine.commands.recon.GuessTypesOfColumnCommand
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classprotected static classNested classes/interfaces inherited from class com.google.refine.commands.Command
Command.HistoryEntryResponse -
Field Summary
Fields inherited from class com.google.refine.commands.Command
csrfFactory, logger, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected List<GuessTypesOfColumnCommand.TypeGroup>guessTypes(Project project, Column column, String serviceUrl) Run relevance searches for the first n cells in the given column and count the types of the results.protected voidsetSampleSize(int sampleSize) Methods inherited from class com.google.refine.commands.Command
doDelete, doGet, doHead, doPut, getEngine, getEngineConfig, getIntegerParameter, getProject, getProjectMetadata, hasValidCSRFToken, hasValidCSRFTokenAsGET, init, logRequests, performProcessAndRespond, redirect, respond, respond, respondCSRFError, respondException, respondJSON, respondJSON, respondWithErrorPage
-
Constructor Details
-
GuessTypesOfColumnCommand
public GuessTypesOfColumnCommand()
-
-
Method Details
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Overrides:
doPostin classCommand- Throws:
javax.servlet.ServletExceptionIOException
-
guessTypes
protected List<GuessTypesOfColumnCommand.TypeGroup> guessTypes(Project project, Column column, 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:
project-column-- Returns:
- Throws:
IOException
-
setSampleSize
protected void setSampleSize(int sampleSize)
-