Example code

Some JSON ..

    {
    adqlschemas:
        [
            {
            jdbcsresource: "cheequ0A",
            jdbcschema: "ATLASDR1.dbo",
            adqlschema: "ATLASDR1",
            metadata {
                metadoc: "https://github.com/wfau/metadata/blob/master/metadocs/ATLASDR1_TablesSchema.xml",
                catalog: "ATLASDR1"
                }
            },
            {
            jdbcsresource: "xyz",
            jdbcschema: "ATLASDR2.dbo",
            adqlschema: "ATLASDR2",
            metadata {
                metadoc: "https://github.com/wfau/metadata/blob/master/metadocs/ATLASDR2_TablesSchema.xml",
                catalog: "ATLASDR2"
                }
            }
        ]
    }

Some Java ...

/**
 * Public interface for an Entity.
 *
 */
public interface Entity
extends Protected
    {

    /**
     * Access to our service instances.
     *
     */
    public interface EntityServices<EntityType extends Entity>
        {
        /**
         * Our {@link Entity.IdentFactory} instance.
         *
         */
        public Entity.IdentFactory<EntityType> idents();

        /**
         * Our {@link Entity.LinkFactory} instance.
         *
         */
        public LinkFactory<EntityType> links();

        /**
         * Our {@link Entity.EntityFactory} instance.
         *
         */
        public EntityFactory<EntityType> entities();

        }
    }

and some Python

def run_queries(threads, tasks):
    with concurrent.futures.ThreadPoolExecutor(threads) as executor:
        futures = {
            executor.submit(
                do_query,
                workspace,
                limit
                ): limit for limit in range(tasks)
            }
        for future in concurrent.futures.as_completed(futures):
            print(
                future.result()
                )

 

 

Comments