Searched defs:context (Results 1 - 25 of 109) sorted by relevance

12345

/lucene-3.6.0/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/
H A DCachePropertyUtil.java21 public static String getAttributeValueAsString(Context context, String attr) { argument
22 Object o = context.getSessionAttribute(attr, Context.SCOPE_ENTITY);
24 o = context.getResolvedEntityAttribute(attr);
26 if (o == null && context.getRequestParameters() != null) {
27 o = context.getRequestParameters().get(attr);
35 public static Object getAttributeValue(Context context, String attr) { argument
36 Object o = context.getSessionAttribute(attr, Context.SCOPE_ENTITY);
38 o = context.getResolvedEntityAttribute(attr);
40 if (o == null && context.getRequestParameters() != null) {
41 o = context
[all...]
H A DCachedSqlEntityProcessor.java38 protected void initCache(Context context) { argument
39 cacheSupport = new DIHCacheSupport(context, "SortedMapBackedCache");
H A DEvaluator.java43 * @param context instance
46 public abstract String evaluate(String expression, Context context); argument
H A DTransformer.java45 * @param context The current context
51 public abstract Object transformRow(Map<String, Object> row, Context context); argument
H A DBinContentStreamDataSource.java37 private ContextImpl context; field in class:BinContentStreamDataSource
43 public void init(Context context, Properties initProps) { argument
44 this.context = (ContextImpl) context;
49 contentStream = context.getDocBuilder().requestParameters.contentStream;
H A DBinFileDataSource.java47 public void init(Context context, Properties initProps) { argument
H A DClobTransformer.java41 public Object transformRow(Map<String, Object> aRow, Context context) { argument
42 for (Map<String, String> map : context.getAllEntityFields()) {
H A DContentStreamDataSource.java38 private ContextImpl context; field in class:ContentStreamDataSource
43 public void init(Context context, Properties initProps) { argument
44 this.context = (ContextImpl) context;
49 contentStream = context.getDocBuilder().requestParameters.contentStream;
H A DDataSource.java51 * @param context
54 public abstract void init(Context context, Properties initProps); argument
H A DDateFormatTransformer.java50 public Object transformRow(Map<String, Object> aRow, Context context) { argument
52 for (Map<String, String> map : context.getAllEntityFields()) {
H A DEntityProcessor.java50 * @param context The current context
52 public abstract void init(Context context); argument
H A DFieldStreamDataSource.java56 public void init(Context context, Properties initProps) { argument
57 dataField = context.getEntityAttribute("dataField");
58 wrapper = (EntityProcessorWrapper) context.getEntityProcessor();
H A DHTMLStripTransformer.java41 public Object transformRow(Map<String, Object> row, Context context) { argument
42 List<Map<String, String>> fields = context.getAllEntityFields();
45 String splitHTML = context.replaceTokens(field.get(STRIP_HTML));
H A DPlainTextEntityProcessor.java44 public void init(Context context) { argument
45 super.init(context);
52 DataSource<Reader> ds = context.getDataSource();
53 String url = context.replaceTokens(context.getEntityAttribute(URL));
H A DScriptTransformer.java51 public Object transformRow(Map<String, Object> row, Context context) { argument
54 initEngine(context);
58 row, context});
66 + context.getScript()
69 wrapAndThrow(SEVERE,e, "Error invoking script for entity " + context.getEntityAttribute("name"));
75 private void initEngine(Context context) { argument
76 String scriptText = context.getScript();
77 String scriptLang = context.getScriptLanguage();
H A DTemplateTransformer.java56 public Object transformRow(Map<String, Object> row, Context context) { argument
58 VariableResolverImpl resolver = (VariableResolverImpl) context
63 for (Map<String, String> map : context.getAllEntityFields()) {
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DSolrFilter.java30 * weight context info for function queries.
36 /** Implementations should propagate createWeight to sub-ValueSources which can store weight info in the context.
37 * The context object will be passed to getDocIdSet() where this info can be retrieved. */
38 public abstract void createWeight(Map context, Searcher searcher) throws IOException; argument
40 public abstract DocIdSet getDocIdSet(Map context, IndexReader reader) throws IOException; argument
/lucene-3.6.0/lucene/contrib/queries/src/java/org/apache/lucene/search/
H A DBoostingQuery.java46 private Query context; // boost when matches too field in class:BoostingQuery
48 public BoostingQuery(Query match, Query context, float boost) { argument
50 this.context = (Query)context.clone(); // clone before boost
53 this.context.setBoost(0.0f); // ignore context-only matches
84 result.add(context, BooleanClause.Occur.SHOULD);
94 result = prime * result + ((context == null) ? 0 : context.hashCode());
110 if (context
[all...]
/lucene-3.6.0/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/
H A DMockInitialContextFactory.java33 private final javax.naming.Context context; field in class:MockInitialContextFactory
37 context = mockControl.createMock(javax.naming.Context.class);
40 EasyMock.expect(context.lookup((String) EasyMock.anyObject())).andAnswer(
56 return context;
H A DTestEntityProcessorBase.java45 Context context = getContext(null, null, new MockDataSource(), Context.FULL_DUMP,
51 sep.init(context);
61 public Object transformRow(Map<String, Object> aRow, Context context) { argument
71 public Object transformRow(Map<String, Object> aRow, Context context) { argument
H A DTestPlainTextEntityProcessor.java46 public void init(Context context, Properties initProps) { argument
H A DTestURLDataSource.java31 private Context context = AbstractDataImportHandlerTestCase.getContext(null, variableResolver, field in class:TestURLDataSource
42 dataSource.init(context, initProps);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/
H A DStrFieldSource.java40 public DocValues getValues(Map context, IndexReader reader) throws IOException { argument
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/
H A DByteFieldSource.java51 public DocValues getValues(Map context, IndexReader reader) throws IOException { argument
H A DDoubleFieldSource.java52 public DocValues getValues(Map context, IndexReader reader) throws IOException { argument

Completed in 74 milliseconds

12345