Package com.microsoft.azure.kusto.data
Class KustoResultSetTable
- java.lang.Object
-
- com.microsoft.azure.kusto.data.KustoResultSetTable
-
public class KustoResultSetTable extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedKustoResultSetTable(org.json.JSONObject jsonTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeFirst()intcount()intfindColumn(String columnName)booleanfirst()ArraygetArray(int columnIndex)ArraygetArray(String columnName)InputStreamgetAsciiStream(String columnName)BigDecimalgetBigDecimal(int columnIndex)BigDecimalgetBigDecimal(String columnName)InputStreamgetBinaryStream(int columnIndex)InputStreamgetBinaryStream(String columnName)booleangetBoolean(int columnIndex)booleangetBoolean(String columnName)BooleangetBooleanObject(int columnIndex)BooleangetBooleanObject(String columnName)bytegetByte(int columnIndex)bytegetByte(String columnName)byte[]getBytes(int columnIndex)byte[]getBytes(String columnName)ReadergetCharacterStream(int columnIndex)ReadergetCharacterStream(String columnName)KustoResultColumn[]getColumns()List<Object>getCurrentRow()List<List<Object>>getData()DategetDate(int columnIndex)DategetDate(int columnIndex, Calendar calendar)This will cut the date up to yyyy-MM-dd'T'HH:mm:ss.SSSDategetDate(String columnName)DategetDate(String columnName, Calendar calendar)doublegetDouble(int columnIndex)doublegetDouble(String columnName)DoublegetDoubleObject(int columnIndex)DoublegetDoubleObject(String columnName)floatgetFloat(int columnIndex)floatgetFloat(String columnName)FloatgetFloatObject(int columnIndex)FloatgetFloatObject(String columnName)intgetInt(int columnIndex)intgetInt(String columnName)IntegergetIntegerObject(int columnIndex)IntegergetIntegerObject(String columnName)org.json.JSONObjectgetJSONObject(int columnIndex)org.json.JSONObjectgetJSONObject(String colName)LocalDateTimegetKustoDateTime(int columnIndex)LocalDateTimegetKustoDateTime(String columnName)LocalTimegetLocalTime(int columnIndex)LocalTimegetLocalTime(String columnName)longgetLong(int columnIndex)longgetLong(String columnName)LonggetLongObject(int columnIndex)LonggetLongObject(String columnName)ObjectgetObject(int columnIndex)ObjectgetObject(String columnName)shortgetShort(int columnIndex)shortgetShort(String columnName)ShortgetShortObject(int columnIndex)ShortgetShortObject(String columnName)StringgetString(int columnIndex)StringgetString(String columnName)StringgetTableId()WellKnownDataSetgetTableKind()StringgetTableName()TimegetTime(int columnIndex)TimegetTime(int columnIndex, Calendar calendar)TimegetTime(String columnName)TimegetTime(String columnName, Calendar calendar)TimestampgetTimestamp(int columnIndex)TimestampgetTimestamp(int columnIndex, Calendar calendar)TimestampgetTimestamp(String columnName)TimestampgetTimestamp(String columnName, Calendar calendar)URLgetURL(int columnIndex)URLgetURL(String columnName)UUIDgetUUID(int columnIndex)UUIDgetUUID(String columnName)booleanisAfterLast()booleanisBeforeFirst()booleanisLast()booleanisNull(int columnIndex)booleanlast()booleannext()booleanrelative(int columnIndex)voidsetTableName(String tableName)
-
-
-
Constructor Detail
-
KustoResultSetTable
protected KustoResultSetTable(org.json.JSONObject jsonTable) throws KustoServiceQueryError- Throws:
KustoServiceQueryError
-
-
Method Detail
-
getTableName
public String getTableName()
-
setTableName
public void setTableName(String tableName)
-
getTableId
public String getTableId()
-
getTableKind
public WellKnownDataSet getTableKind()
-
getColumns
public KustoResultColumn[] getColumns()
-
next
public boolean next()
-
getString
public String getString(int columnIndex)
-
getBoolean
public boolean getBoolean(int columnIndex)
-
getBooleanObject
public Boolean getBooleanObject(int columnIndex)
-
getByte
public byte getByte(int columnIndex)
-
getShort
public short getShort(int columnIndex)
-
getShortObject
public Short getShortObject(int columnIndex)
-
getInt
public int getInt(int columnIndex)
-
getIntegerObject
public Integer getIntegerObject(int columnIndex)
-
getLong
public long getLong(int columnIndex)
-
getLongObject
public Long getLongObject(int columnIndex)
-
getFloat
public float getFloat(int columnIndex)
-
getFloatObject
public Float getFloatObject(int columnIndex)
-
getDouble
public double getDouble(int columnIndex)
-
getDoubleObject
public Double getDoubleObject(int columnIndex)
-
getBytes
public byte[] getBytes(int columnIndex)
-
getDate
public Date getDate(int columnIndex) throws SQLException
- Throws:
SQLException
-
getTime
public Time getTime(int columnIndex)
-
getTimestamp
public Timestamp getTimestamp(int columnIndex) throws SQLException
- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream(int columnIndex) throws SQLFeatureNotSupportedException
- Throws:
SQLFeatureNotSupportedException
-
getBoolean
public boolean getBoolean(String columnName)
-
getByte
public byte getByte(String columnName)
-
getShort
public short getShort(String columnName)
-
getInt
public int getInt(String columnName)
-
getLong
public long getLong(String columnName)
-
getFloat
public float getFloat(String columnName)
-
getDouble
public double getDouble(String columnName)
-
getBytes
public byte[] getBytes(String columnName)
-
getDate
public Date getDate(String columnName) throws SQLException
- Throws:
SQLException
-
getTime
public Time getTime(String columnName) throws SQLException
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(String columnName) throws SQLException
- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream(String columnName)
-
getBinaryStream
public InputStream getBinaryStream(String columnName) throws SQLFeatureNotSupportedException
- Throws:
SQLFeatureNotSupportedException
-
getObject
public Object getObject(int columnIndex)
-
getJSONObject
public org.json.JSONObject getJSONObject(String colName)
-
getJSONObject
public org.json.JSONObject getJSONObject(int columnIndex)
-
getUUID
public UUID getUUID(int columnIndex)
-
findColumn
public int findColumn(String columnName)
-
getCharacterStream
public Reader getCharacterStream(int columnIndex)
-
getBigDecimal
public BigDecimal getBigDecimal(int columnIndex)
-
getBigDecimal
public BigDecimal getBigDecimal(String columnName)
-
isBeforeFirst
public boolean isBeforeFirst()
-
isAfterLast
public boolean isAfterLast()
-
isLast
public boolean isLast()
-
beforeFirst
public void beforeFirst()
-
first
public boolean first()
-
last
public boolean last()
-
relative
public boolean relative(int columnIndex)
-
getArray
public Array getArray(int columnIndex)
-
getKustoDateTime
public LocalDateTime getKustoDateTime(int columnIndex)
-
getKustoDateTime
public LocalDateTime getKustoDateTime(String columnName)
-
getDate
public Date getDate(int columnIndex, Calendar calendar) throws SQLException
This will cut the date up to yyyy-MM-dd'T'HH:mm:ss.SSS- Parameters:
columnIndex- Column index that contains the datecalendar- Calendar container appropriate timezone- Returns:
- Date
- Throws:
SQLException- throws SQLException if date can't be parsed
-
getDate
public Date getDate(String columnName, Calendar calendar) throws SQLException
- Throws:
SQLException
-
getTime
public Time getTime(int columnIndex, Calendar calendar) throws SQLException
- Throws:
SQLException
-
getTime
public Time getTime(String columnName, Calendar calendar) throws SQLException
- Throws:
SQLException
-
getLocalTime
public LocalTime getLocalTime(int columnIndex)
-
getTimestamp
public Timestamp getTimestamp(int columnIndex, Calendar calendar) throws SQLException
- Throws:
SQLException
-
getTimestamp
public Timestamp getTimestamp(String columnName, Calendar calendar) throws SQLException
- Throws:
SQLException
-
getURL
public URL getURL(int columnIndex) throws SQLException
- Throws:
SQLException
-
getURL
public URL getURL(String columnName) throws SQLException
- Throws:
SQLException
-
count
public int count()
-
isNull
public boolean isNull(int columnIndex)
-
-