01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.search.rdmgr;
07:
08: import com.sun.portal.search.soif.*;
09: import com.sun.portal.search.db.*;
10: import com.sun.portal.search.util.*;
11: import com.sun.portal.search.rdm.RDM;
12: import java.util.*;
13:
14: // XXX should probably be merged with RDMRequest
15:
16: // Configuration parameters
17: public class RDSubmitRequest {
18:
19: /**
20: * max retrieve size (default maxhits in retrieval mode)
21: */
22: public static final int MAX_HITS = 10000000; // XXX how to set to no limit?
23:
24: /**
25: * max query size (default maxhits in query mode)
26: */
27: public static final int MAX_QUERY_HITS = 20;
28:
29: public static final int RDM_CSDB = 0x01; // Search Database
30: public static final int RDM_SAGE = 0x02; // Search engine indexer
31: public static final int RDM_UNKNOWN = 0;
32:
33: // from request (cli option, rdm header, etc)
34: public String dbname; // XXX currently only one db for entire submission - should be per request
35: public RDMDb db;
36: public int which_pass = RDM_SAGE | RDM_CSDB;
37: public boolean do_create = true;
38: public boolean is_rootdb = false;
39: public boolean is_taxonomy = false;
40: public boolean skip_alias_conf = false;
41: public boolean schema_check = true;
42: public boolean do_reindex = false;
43: public int maxhits = MAX_HITS;
44: public int max_rd_batch;
45: public Alias alias = null;
46:
47: public boolean do_response = false;
48: public boolean response_hdr_sent = false;
49: public int log_interval = 500;
50: public RDMProgress progress = new RDMProgress();
51:
52: public String query; // query input stream
53: public SOIFInputStream sis; // SOIF input stream
54: public SOIFOutputStream sos; // SOIF output stream
55: public String icharset = "UTF-8";
56: public String ocharset = "UTF-8";
57:
58: // operations on input stream
59: public String oper = RDM.SUBMIT_INSERT;
60: public String type = RDM.SUBMIT_NONPERSISTENT;
61: public String view;
62: public String csid;
63: public Set view_attr;
64:
65: }
|