@ThreadSafe public interface CostCalculator { /** * Calculates non-cumulative cost of a node. * * @param node The node to compute cost for. * @param stats The stats provider for node's stats and child nodes' stats, to be used if stats are needed to compute cost for the {@code node} */ PlanNodeCostEstimate calculateCost( PlanNode node, StatsProvider stats, Session session, TypeProvider types); @BindingAnnotation @Target(PARAMETER) @Retention(RUNTIME) @interface EstimatedExchanges {} }
@BindingAnnotation @interface Internal { int value();
@BindingAnnotation @Target({FIELD, PARAMETER, METHOD}) @Retention(RUNTIME)
@BindingAnnotation @interface SanDiego @BindingAnnotation @interface SanJose
@BindingAnnotation @Target({FIELD, PARAMETER, METHOD}) @Retention(RUNTIME)
static class InRequest {} @BindingAnnotation @Retention(RUNTIME) @Target({PARAMETER, METHOD, FIELD})
public interface PlanLinkIdentifier { @Retention( RetentionPolicy.RUNTIME ) @BindingAnnotation @Target( { ElementType.FIELD, ElementType.LOCAL_VARIABLE, ElementType.PARAMETER } ) @interface Strong {} @Retention( RetentionPolicy.RUNTIME ) @BindingAnnotation @Target( { ElementType.FIELD, ElementType.LOCAL_VARIABLE, ElementType.PARAMETER } ) @interface Weak {} boolean areLinked( Plan p1, Plan p2 ); }
/** * Binding annotations related to the ApiCallScope. * * <p>Important: This class may only be used in implementing plugins (e.g. functions, directives). * */ public class ApiCallScopeBindingAnnotations { private ApiCallScopeBindingAnnotations() {} /** Annotation for a GuiceSimpleScope parameter that should receive the ApiCallScope. */ @BindingAnnotation @Target({FIELD, PARAMETER, METHOD}) @Retention(RUNTIME) public @interface ApiCall {} /** Annotation for the localeString parameter in the ApiCallScope. */ @BindingAnnotation @Target({FIELD, PARAMETER, METHOD}) @Retention(RUNTIME) public @interface LocaleString {} }
public class CallsCompletionModule extends AbstractModule { public static final String MODEL_VERSION = "0.5"; public static TypeLiteral<IModelArchiveStore<IType, IObjectMethodCallsNet>> STORE = new TypeLiteral<IModelArchiveStore<IType, IObjectMethodCallsNet>>() { }; public static TypeLiteral<DefaultModelArchiveStore<IType, IObjectMethodCallsNet>> STORE_IMPL = new TypeLiteral<DefaultModelArchiveStore<IType, IObjectMethodCallsNet>>() { }; @Override protected void configure() { final IPath stateLocation = Platform.getStateLocation(FrameworkUtil.getBundle(getClass())); final File index = new File(stateLocation.toFile(), format("call-models-%s.json", MODEL_VERSION)); bind(File.class).annotatedWith(CallCompletion.class).toInstance(index); bind(STORE).to(CallModelArchiveStore.class).in(Scopes.SINGLETON); final IPreferenceStore prefStore = CallsCompletionPlugin.getDefault().getPreferenceStore(); bind(IPreferenceStore.class).annotatedWith(CallCompletion.class).toInstance(prefStore); } @BindingAnnotation @Target({ PARAMETER, METHOD }) @Retention(RUNTIME) public static @interface CallCompletion { } }
@ThreadSafe public interface CostCalculator { /** * Calculates non-cumulative cost of a node. * * @param node The node to compute cost for. * @param stats The stats provider for node's stats and child nodes' stats, to be used if stats are needed to compute cost for the {@code node} */ PlanNodeCostEstimate calculateCost( PlanNode node, StatsProvider stats, Session session, TypeProvider types); @BindingAnnotation @Target(PARAMETER) @Retention(RUNTIME) @interface EstimatedExchanges {} }
@ThreadSafe public interface CostCalculator { /** * Calculates non-cumulative cost of a node. * * @param node The node to compute cost for. * @param stats The stats provider for node's stats and child nodes' stats, to be used if stats are needed to compute cost for the {@code node} */ PlanNodeCostEstimate calculateCost( PlanNode node, StatsProvider stats, Session session, TypeProvider types); @BindingAnnotation @Target(PARAMETER) @Retention(RUNTIME) @interface EstimatedExchanges {} }
/** * DatasetManager service configuration. */ public static final class Manager { /** for the address (hostname) of the dataset server. */ public static final String PORT = "dataset.service.bind.port"; public static final String ANNOUNCE_PORT = "dataset.service.announce.port"; public static final String BACKLOG_CONNECTIONS = "dataset.service.connection.backlog"; public static final String EXEC_THREADS = "dataset.service.exec.threads"; public static final String BOSS_THREADS = "dataset.service.boss.threads"; public static final String WORKER_THREADS = "dataset.service.worker.threads"; public static final String OUTPUT_DIR = "dataset.service.output.dir"; // Configuration key for publishing CUD (create, update, delete) operations on dataset instance // It is used in remote runtime, hence not present in the cdap-default.xml, but // rather set dynamically via the DistributedProgramRunner public static final String PUBLISH_CUD = "dataset.service.publish.crud"; /** * Annotation for binding default dataset modules for the dataset service */ @Retention(RUNTIME) @Target({ ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD }) @BindingAnnotation public @interface DefaultDatasetModules { } }
/** * DatasetManager service configuration. */ public static final class Manager { /** for the address (hostname) of the dataset server. */ public static final String PORT = "dataset.service.bind.port"; public static final String ANNOUNCE_PORT = "dataset.service.announce.port"; public static final String BACKLOG_CONNECTIONS = "dataset.service.connection.backlog"; public static final String EXEC_THREADS = "dataset.service.exec.threads"; public static final String BOSS_THREADS = "dataset.service.boss.threads"; public static final String WORKER_THREADS = "dataset.service.worker.threads"; public static final String OUTPUT_DIR = "dataset.service.output.dir"; // Configuration key for publishing CUD (create, update, delete) operations on dataset instance // It is used in remote runtime, hence not present in the cdap-default.xml, but // rather set dynamically via the DistributedProgramRunner public static final String PUBLISH_CUD = "dataset.service.publish.crud"; /** * Annotation for binding default dataset modules for the dataset service */ @Retention(RUNTIME) @Target({ ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD }) @BindingAnnotation public @interface DefaultDatasetModules { } }
@Retention(RUNTIME) @BindingAnnotation @interface Internal { int value();
@BindingAnnotation public @interface Runtime { @BindingAnnotation public @interface Ui {
@BindingAnnotation public @interface Benchmark {} @BindingAnnotation public @interface BenchmarkMethod {} @BindingAnnotation public @interface BenchmarkClass {} @BindingAnnotation public @interface BeforeExperimentMethods {} @BindingAnnotation public @interface AfterExperimentMethods {}
@BindingAnnotation public @interface Benchmark {} @BindingAnnotation public @interface BenchmarkMethod {} @BindingAnnotation public @interface BenchmarkClass {} @BindingAnnotation public @interface BeforeExperimentMethods {} @BindingAnnotation public @interface AfterExperimentMethods {}
@Retention(RUNTIME) @BindingAnnotation @interface Internal { int value();
@Retention(RUNTIME) @BindingAnnotation @interface Internal { int value();
@BindingAnnotation @interface Internal { int value();