public static SelectResults createResultCollection(boolean distinct, ObjectType elementType, ExecutionContext context) { return distinct ? new ResultsSet(elementType) : new ResultsBag(elementType, context.getCachePerfStats()); }
public static SelectResults createStructCollection(boolean distinct, StructType elementType, ExecutionContext context) { return distinct ? new StructSet(elementType) : new StructBag(elementType, context.getCachePerfStats()); }
public static SelectResults createResultCollection(ExecutionContext context, ObjectType elementType) { return context.isDistinct() ? new ResultsSet(elementType) : new ResultsBag(elementType, context.getCachePerfStats()); }
public static SelectResults createStructCollection(ExecutionContext context, StructType elementType) { return context.isDistinct() ? new StructSet(elementType) : new StructBag(elementType, context.getCachePerfStats()); }
if (contextOrNull != null) { rs = contextOrNull.isDistinct() ? new ResultsSet(small) : new ResultsBag(small, contextOrNull.getCachePerfStats()); } else { rs = new ResultsBag(small, null);
if (result == null || result == QueryService.UNDEFINED) return new ResultsBag(intermediateResults.getCollectionType().getElementType(), 0, context.getCachePerfStats()); if (!(result instanceof Boolean)) throw new TypeMismatchException( ObjectType elementType = ((RuntimeIterator) iterators.get(0)).getElementType(); emptySet = context.isDistinct() ? new ResultsSet(elementType) : new ResultsBag(elementType, 0, context.getCachePerfStats()); } else { String fieldNames[] = new String[len]; context.getCachePerfStats());
if (contextOrNull != null) { rs = contextOrNull.isDistinct() ? new ResultsSet(large) : new ResultsBag(large, contextOrNull.getCachePerfStats()); } else { rs = new ResultsBag(large, null);
results = new ResultsBag(new ObjectTypeImpl(Integer.class), 1, context.getCachePerfStats()); countStartQueryResult = 0; return results; return new ResultsSet(elementType); case UNORDERED_INDISTINCT_STRUCT: return new StructBag((StructType) elementType, context.getCachePerfStats()); case UNORDERED_INDISTINCT_RESULTS: return new ResultsBag(elementType, context.getCachePerfStats());
new ResultsBag(new ObjectTypeImpl(Integer.class), context.getCachePerfStats()); countResult.addAndGetOccurence(resultCount); result = countResult;