public final class ReferenceData extends Object
TOP_20_HOLDERS_PUBLIC_FILINGS
will return a List with 20 Maps of the form (for example):
{Amount Held=1634951.0, Percent Outstanding=0.19, etc. }
.
this
. That would not scale very well under high contention but that is an
unlikely use case.Modifier and Type | Class and Description |
---|---|
class |
ReferenceData.ResultForField |
class |
ReferenceData.ResultForSecurity |
Constructor and Description |
---|
ReferenceData() |
Modifier and Type | Method and Description |
---|---|
ReferenceData.ResultForField |
forField(String field)
Adds a filter on a specific field (column)
|
ReferenceData.ResultForSecurity |
forSecurity(String security)
Adds a filter on a specific security (row)
|
com.google.common.collect.Table<String,String,TypedObject> |
get()
The table contains one security per row, one field per column and the objects are the values of each combination
of security ID / field.
|
Set<String> |
getFieldErrors() |
Set<String> |
getSecurityErrors() |
boolean |
hasErrors()
Even if this method returns true, the request might have returned valid data.
|
boolean |
isEmpty()
The main reasons why this might return true:
the structure has not been populated yet
all the information requested returned errors (none of the tickers and/or fields was valid)
the date range was invalid
no data was returned because there was no data available for that ticker/field/date range combination
|
String |
toString() |
public boolean isEmpty()
RequestResult
public ReferenceData.ResultForField forField(String field)
public ReferenceData.ResultForSecurity forSecurity(String security)
public com.google.common.collect.Table<String,String,TypedObject> get()
public boolean hasErrors()
RequestResult
hasErrors
in interface RequestResult
public Set<String> getFieldErrors()
getFieldErrors
in interface RequestResult
public Set<String> getSecurityErrors()
getSecurityErrors
in interface RequestResult
Copyright © 2013. All Rights Reserved.