kudu-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Devender Yadav <devender.ya...@impetus.co.in>
Subject Fetch row on the basis of composite primary key from table using Java API
Date Wed, 15 Feb 2017 10:44:25 GMT
Hi All,

I am using Kudu Java API.

I have a table metrics.

CREATE TABLE metrics (
    metric STRING NOT NULL,
    time INT64 NOT NULL,
    value DOUBLE NOT NULL,
    PRIMARY KEY (host, metric, time),

I need to fetch row on the basis of primary key from metrics table.

Do I need to create 3 comparison? predicates for all the primary key columns  KuduPredicate.newComparisonPredicate?()



NOTE: This message may contain information that is confidential, proprietary, privileged or
otherwise protected by law. The message is intended solely for the named addressee. If received
in error, please destroy and notify the sender. Any use of this email is prohibited when received
in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this
communication has been maintained nor that the communication is free of errors, virus, interception
or interference.

View raw message