Examples of scan()


Examples of com.alibaba.wasp.storage.StorageActionManager.scan()

      LOG.info("rs begin " + type);
      // manager.scan(".META.", new Scan());
      // manager.scan(StorageTableNameBuilder.buildEntityTableName("TEST_TABLE"),
      // new Scan());
      // ResultScanner fmeters = manager.scan("_FMETA_", new Scan());
      ResultScanner indexrs = manager.scan(indexTableName, new Scan());
      ResultScanner rs = manager.scan(FConstants.WASP_TABLE_ENTITY_PREFIX
          + tablename, new Scan());
      // LOG.info("rs fmeta");
      // print(fmeters);
      LOG.info("rs table " + type);
View Full Code Here

Examples of com.amazonaws.services.dynamodb.AmazonDynamoDBClient.scan()

        scanFilter.put("time", rangeCondition);

        ScanRequest scanRequest = new ScanRequest(bandwidthTableName).withScanFilter(scanFilter);
        ScanResult scanResult;
        try {
            scanResult = dynamoDB.scan(scanRequest);
        } catch (Exception e) {
            log.error("Error scanning DynamoDB table: " + bandwidthTableName, e);
            return 0;
        }
View Full Code Here

Examples of com.amazonaws.services.dynamodb.datamodeling.DynamoDBMapper.scan()

    DynamoDBMapper mapper = new DynamoDBMapper(dynamoDBClient);
    List<T> objList = null;
    if (DynamoDBQuery.getType().equals(DynamoDBQuery.RANGE_QUERY))
      objList = mapper.query(persistentClass, (DynamoDBQueryExpression)dynamoDBQuery.getQueryExpression());
      if (DynamoDBQuery.getType().equals(DynamoDBQuery.SCAN_QUERY))
        objList = mapper.scan(persistentClass, (DynamoDBScanExpression)dynamoDBQuery.getQueryExpression());
        return new DynamoDBResult<K, T>(this, query, objList)
  }
 
  @Override
  public T get(K key, String[] fields) {
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.AmazonDynamoDB.scan()

    @Test
    public void testPropertyChange() throws Exception {
        AmazonDynamoDB mockBasicDbClient = mock(AmazonDynamoDB.class);

        //3 of the first config to cover: object creation, threadRun at 0 delay, load properties
        when(mockBasicDbClient.scan(any(ScanRequest.class))).thenReturn(DynamoDbMocks.basicScanResult1,
                DynamoDbMocks.basicScanResult1, DynamoDbMocks.basicScanResult1, DynamoDbMocks.basicScanResult2);
        DynamoDbConfigurationSource source = new DynamoDbConfigurationSource(mockBasicDbClient);

        FixedDelayPollingScheduler scheduler = new FixedDelayPollingScheduler(0, 500, false);
        DynamicConfiguration dynamicConfig = new DynamicConfiguration(source, scheduler);
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.document.Table.scan()

    }

    @Test
    public void howToUseScanFilters() {
        Table table = dynamo.getTable(TABLE_NAME);
        ItemCollection<?> col = table.scan(
                new ScanFilter(HASH_KEY_NAME).eq("foo"),
                new ScanFilter(RANGE_KEY_NAME).between(1, 10)
        );
        int count = 0;
        for (Item item: col) {
View Full Code Here

Examples of com.arjuna.ats.arjuna.recovery.ExpiryScanner.scan()

     
      while ( scanners.hasMoreElements() )
      {
    ExpiryScanner m = (ExpiryScanner)scanners.nextElement();

    m.scan();
     
    if (tsLogger.arjLogger.isDebugEnabled())
    {
        tsLogger.arjLogger.debug( DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC,
                FacilityCode.FAC_CRASH_RECOVERY,"  ");
View Full Code Here

Examples of com.arjuna.ats.arjuna.recovery.RecoveryManager.scan()

  System.setProperty("com.arjuna.ats.jta.xaRecoveryNode", "1");
  System.setProperty("XAResourceRecovery1", "com.hp.mwtests.ts.jta.recovery.DummyXARecoveryResource");

  RecoveryManager manager = RecoveryManager.manager(RecoveryManager.DIRECT_MANAGEMENT);

  manager.scan();
  manager.scan();
    }

}
View Full Code Here

Examples of com.atlassian.json.schema.scanner.InterfaceImplementationScanner.scan()

    private void runInterfaceScanner() throws MojoExecutionException
    {
        InterfaceImplementationScanner scanner = new InterfaceImplementationScanner();
        try
        {
            scanner.scan(basePackage,getClasspath(),new File(getDefaultInterfacesFile()));
        }
        catch (Exception e)
        {
            throw new MojoExecutionException("Error running interface scanner", e);
        }
View Full Code Here

Examples of com.buschmais.jqassistant.core.scanner.api.Scanner.scan()

        List mainFiles = new ArrayList<>();
        mainFiles.add(mock(FileDescriptor.class));
        List testFiles = new ArrayList<>();
        testFiles.add(mock(FileDescriptor.class));

        when(scanner.scan(Mockito.any(ClassesDirectory.class), Mockito.any(String.class), Mockito.eq(CLASSPATH))).thenReturn(mainFiles, testFiles);

        scannerPlugin.scan(project, null, null, scanner);

        verify(scanner).scan(Mockito.any(ClassesDirectory.class), Mockito.eq("target/classes"), Mockito.eq(CLASSPATH));
        verify(scanner).scan(Mockito.any(ClassesDirectory.class), Mockito.eq("target/test-classes"), Mockito.eq(CLASSPATH));
View Full Code Here

Examples of com.buschmais.jqassistant.core.scanner.impl.ScannerImpl.scan()

            store.beginTransaction();
            try {
                final ArtifactDirectoryDescriptor artifactDescriptor = getOrCreateArtifactDescriptor(store);
                final Scanner scanner = new ScannerImpl(scannerPlugins);
                try {
                    consume(scanner.scan(new ClassesDirectory(directory, artifactDescriptor), CLASSPATH));
                } catch (IOException e) {
                    throw new RuntimeException("Cannot scan directory '" + directory.getAbsolutePath() + "'", e);
                }
            } finally {
                store.commitTransaction();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.