@@ -828,6 +828,7 @@ public class TAPMetadata implements Iterable<TAPSchema>, VOSIResource, TAPResour
...
@@ -828,6 +828,7 @@ public class TAPMetadata implements Iterable<TAPSchema>, VOSIResource, TAPResour
caseSCHEMAS:
caseSCHEMAS:
TAPTableschemas=newTAPTable(STDSchema.TAPSCHEMA+"."+STDTable.SCHEMAS,TableType.table,"List of schemas published in this TAP service.",null);
TAPTableschemas=newTAPTable(STDSchema.TAPSCHEMA+"."+STDTable.SCHEMAS,TableType.table,"List of schemas published in this TAP service.",null);
schemas.addColumn("schema_index",newDBType(DBDatatype.INTEGER),"this index is used to recommend schema ordering for clients",null,null,null,false,false,true);
@@ -75,6 +75,11 @@ public class TAPSchema implements Iterable<TAPTable> {
...
@@ -75,6 +75,11 @@ public class TAPSchema implements Iterable<TAPTable> {
* <i>Note: Standard TAP schema field ; MAY be NULL.</i> */
* <i>Note: Standard TAP schema field ; MAY be NULL.</i> */
privateStringutype=null;
privateStringutype=null;
/** Ordering index of this schema inside its whole schema set.
* <i>Note: SHOULD be a standard TAP schema field in TAP 1.1, as table_index and column_index are resp. in TAP_SCHEMA.tables and TAP_SCHEMA.columns.</i>
* @since 2.1 */
privateintindex=-1;
/** Let add some information in addition of the ones of the TAP protocol.
/** Let add some information in addition of the ones of the TAP protocol.
* <i>Note: This object can be anything: an {@link Integer}, a {@link String}, a {@link Map}, a {@link List}, ...
* <i>Note: This object can be anything: an {@link Integer}, a {@link String}, a {@link Map}, a {@link List}, ...
* Its content is totally free and never used or checked.</i> */
* Its content is totally free and never used or checked.</i> */
...
@@ -319,6 +324,28 @@ public class TAPSchema implements Iterable<TAPTable> {
...
@@ -319,6 +324,28 @@ public class TAPSchema implements Iterable<TAPTable> {
this.utype=utype;
this.utype=utype;
}
}
/**
* Get the ordering index of this schema inside its whole schema set.
*
* @return Its ordering index.
*
* @since 2.1
*/
publicfinalintgetIndex(){
returnindex;
}
/**
* Set the ordering index of this schema inside its whole schema set.
*
* @param schemaIndex Its new ordering index.
*
* @since 2.1
*/
publicfinalvoidsetIndex(intschemaIndex){
this.index=schemaIndex;
}
/**
/**
* <p>Get the other (piece of) information associated with this schema.</p>
* <p>Get the other (piece of) information associated with this schema.</p>