E
- The generic type of the elements materialized from that index.public class SampleIndex<E> extends AbstractAccessPathOp<E>
IAccessPath
implied by an
IPredicate
.Modifier and Type | Class and Description |
---|---|
static class |
SampleIndex.AcceptanceSetOffsetSampler
An implementation based on an acceptance set of offsets which have been
accepted.
|
static class |
SampleIndex.AccessPathSample<E>
A sample from an access path.
|
static interface |
SampleIndex.Annotations
Known annotations.
|
static class |
SampleIndex.BitVectorOffsetSampler
Return a randomly selected ordered array of offsets in the given
half-open range.
|
static class |
SampleIndex.EntireRangeOffsetSampler
Returns all offsets in the half-open range, but may only be used when
the limit GTE the range count.
|
static interface |
SampleIndex.IOffsetSampler
Interface for obtaining an array of tuple offsets to be sampled.
|
static class |
SampleIndex.SampleType
Typesafe enumeration of different kinds of index sampling strategies.
|
static class |
SampleIndex.SmartOffsetSampler
A smart implementation which uses whichever implementation is most
efficient for the limit and key range to be sampled.
|
DEFAULT_INITIAL_CAPACITY
Constructor and Description |
---|
SampleIndex(BOp[] args,
Map<String,Object> annotations) |
SampleIndex(SampleIndex<E> op) |
Modifier and Type | Method and Description |
---|---|
E[] |
eval(BOpContextBase context)
Return a sample from the access path associated with the
SampleIndex.Annotations.PREDICATE . |
IPredicate<E> |
getPredicate() |
SampleIndex.SampleType |
getSampleType() |
int |
limit() |
long |
seed() |
__replaceArg, _clearProperty, _set, _setProperty, annotations, annotationsCopy, annotationsEqual, annotationsRef, argIterator, args, argsCopy, arity, clearAnnotations, clearProperty, deepCopy, deepCopy, get, getProperty, setArg, setProperty, setUnboundProperty, toArray, toArray
annotationsEqual, annotationsToString, annotationsToString, annotationValueToString, checkArgs, clone, equals, getEvaluationContext, getId, getProperty, getRequiredProperty, hashCode, indent, isController, mutation, shortenName, toShortString, toString, toString
public SampleIndex(SampleIndex<E> op)
public int limit()
SampleIndex.Annotations.LIMIT
public long seed()
SampleIndex.Annotations.SEED
public SampleIndex.SampleType getSampleType()
SampleIndex.Annotations.SAMPLE_TYPE
public IPredicate<E> getPredicate()
public E[] eval(BOpContextBase context)
SampleIndex.Annotations.PREDICATE
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.