public StructuredRetrieval(StructuredIndex index, Parameters factoryParameters) { this.index = index; Parameters featureParameters = factoryParameters.clone(); featureParameters.add("collectionLength", Long.toString(index.getCollectionLength())); featureParameters.add("documentCount", Long.toString(index.getDocumentCount())); featureFactory = new FeatureFactory(featureParameters); }
public DocumentIndexWriter(TupleFlowParameters parameters) throws FileNotFoundException, IOException { Parameters p = new Parameters(); p.add("isCompressed", "true"); writer = new IndexWriter(parameters.getXML().get("filename"), p); documentsWritten = parameters.getCounter("Documents Written"); }
public Node(String operator, String argument, ArrayList<Node> internalNodes, int position) { Parameters p = new Parameters(); if (argument != null) { p.add("default", argument); } this.operator = operator; this.internalNodes = internalNodes; this.position = position; this.parameters = p; }